Kunena 6.3.0 released

The Kunena team has announce the arrival of Kunena 6.3.0 [K 6.3.0] in stable which is now available for download as a native Joomla extension for J! 4.4.x/5.0.x/5.1.x. This version addresses most of the issues that were discovered in K 6.2 and issues discovered during the last development stages of K 6.3

Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.

Important [Resolved] Total user count wrong

More
12 years 9 months ago - 12 years 9 months ago #31 by jaybuzzard
Frontpage index STATS FIXED AND WORKING ;) - No more incorrect total user count!!

If you are using Kunena 1.6.4 and would like to fix the issue with the incorrect stats (Total User Count) showing on the main index page of the forum, then please do the following.

For those that would like to edit the file this is the following code to remove and replace with

Find in lib/kunena.stats.class.php on line ~93 :

public function loadTotalMembers() {
if ($this->totalmembers === null) {
$this->_db->setQuery ( "SELECT COUNT(*) FROM #__users WHERE block=0 AND activation=''" );
$this->totalmembers = $this->_db->loadResult ();
KunenaError::checkDatabaseError();
}
}


AND REPLACE THE CODE WITH THIS

public function loadTotalMembers() {
if ($this->totalmembers === null) {
if ($this->_config->userlist_count_users == '0' ) $where = '1';
elseif ($this->_config->userlist_count_users == '1' ) $where = 'block=0 OR activation=""';
elseif ($this->_config->userlist_count_users == '2' ) $where = 'block=0 AND activation=""';
elseif ($this->_config->userlist_count_users == '3' ) $where = 'block=0';

$this->_db->setQuery ( "SELECT COUNT(*) FROM #__users WHERE {$where}" );
$this->totalmembers = $this->_db->loadResult ();
KunenaError::checkDatabaseError();
}
}


A big thanks to Sozzled and matis :)

Regards
Jay
Last edit: 12 years 9 months ago by jaybuzzard.

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

More
12 years 9 months ago #32 by oceanborn82
This had me scratching my head for a while

Big thanks to all that helped fix the bug

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

Time to create page: 0.688 seconds