Kunena 6.4.8 Released

The Kunena team has announce the arrival of Kunena 6.4.8 [K 6.4.8] in stable which is now available for download as a native Joomla extension for J! 5.0.x/5.1.x/5.2.x/5.3.x/5.4.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 6.4
Important note: Go to the Kunena Dashboard after an upgrade so that the Kunena database tables are also updated. This is particularly necessary for major version jumps so that the table changes are adapted.

This category contains miscellaneous, uncategorised user contributions, (templates, modules, plugins and hacks) relating to older versions of Kunena that are no longer supported.

The topics in this category are for historical interest only. Owing to the structural changes that occurred in K 1.7, many of the ideas in these topics will not work with later versions and, for that reason, the topics are locked.

Question How detect wich kunena version is running ?

More
15 years 1 month ago #76341 by alikon
There is a smiple php way to detect wich kunena version is running ?
I'm interested on distinguish the 1.5 from 1.6

Please Log in or Create an account to join the conversation.

More
15 years 1 month ago #76353 by xillibit
Hello,

You have two ways :

-You can read in the database in the table jos_kunena_version by taking the most recent entries
-Read the xml file which is generally in administrator/components/com_kunena/ and extract the version

I don't provide support by PM, because this can be useful for someone else.
The following user(s) said Thank You: alikon

Please Log in or Create an account to join the conversation.

More
15 years 1 month ago #76465 by alikon
Ipotize that we choose the table option
if i run the 1.5.* the tablename is jos_fb_version
if i run the 1.6.* the tablename is jos_junena_version
so checking what table name exist i can detect the current kunena running version
but if i upgrade from 1.5.* to 1.6.*
if i'm not wrong the table name is jos_fb_version ? is correct ??

For the xml manifest option
i've tryied the upgrade from the previuos 1.5.* to the 1.6.*
the update goes wrong cause of my old PHP version,
but the manifest xml file was changend like
Code:
<name>Kunena</name> <version>1.6.1</version> <versionname>Timu</versionname> <creationDate>2010-11-06</creationDate> <build>3858</build>

so i think that a more robust way is table do you agree?

i'm trying to develop a joomla system plugin that will be able to work for both Kunena version...

Please Log in or Create an account to join the conversation.

More
15 years 1 month ago #76471 by xillibit
Yes table is more reliable, you need to have two checks one for k1.5 and one another for k1.6

I don't provide support by PM, because this can be useful for someone else.

Please Log in or Create an account to join the conversation.

More
15 years 1 month ago #76517 by alikon
something like this snippet of code
Code:
} //Get the DB $db=JFactory::getDBO(); $cfg = new JConfig(); $table16=$cfg->dbprefix.'kunena_version'; //the query for table existence $sql = "SHOW TABLES LIKE ".$db->Quote($table16); $db->setQuery($sql) ; $version16 = $db->loadResult(); if ($version16==$table16) { // we are running k1.6 }


thanks

Please Log in or Create an account to join the conversation.

More
14 years 11 months ago #84391 by Matias

Please Log in or Create an account to join the conversation.

Time to create page: 0.331 seconds