- Posts: 4
- Thank you received: 0
Kunena 7.0.2 Released
The Kunena team has announce the arrival of Kunena 7.0.2 [K 7.0.2] in stable which is now available for download as a native Joomla extension for J! 5.3.x/5.4.x/6.0.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 7.0
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.
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 ?
15 years 3 months ago #76341
by alikon
How detect wich kunena version is running ? was created 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
I'm interested on distinguish the 1.5 from 1.6
Please Log in or Create an account to join the conversation.
15 years 3 months ago #76353
by xillibit
I don't provide support by PM, because this can be useful for someone else.
Replied by xillibit on topic Re: How detect wich kunena version is running ?
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
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.
15 years 3 months ago #76465
by alikon
Replied by alikon on topic Re: How detect wich kunena version is running ?
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
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...
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.
15 years 3 months ago #76471
by xillibit
I don't provide support by PM, because this can be useful for someone else.
Replied by xillibit on topic Re: How detect wich kunena version is running ?
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.
15 years 3 months ago #76517
by alikon
Replied by alikon on topic Re: How detect wich kunena version is running ?
something like this snippet of code
thanks
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.
15 years 1 month ago #84391
by Matias
Replied by Matias on topic Re: How detect wich kunena version is running ?
Please Log in or Create an account to join the conversation.
Time to create page: 0.283 seconds