Kunena 7.0.4 Released
The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 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
Important [Resolved] Total user count wrong
I knew it would.jaybuzzard wrote: ... applied the righthands stats removal and it worked
That's not exactly what you originally asked for, but it can be done ... if you really must fix the problem before you go to sleep tonight.jaybuzzard wrote: Is there anyway I could only remove the total users but keep the latest member and the user list
You need to edit the file ../components/com_kunena/template/default/plugin/stats/frontstats.php
Simple if you are a [PHP] surgeon.
Blue Eagle vs. Crypsis reference guide
Read my blog and
Please Log in or Create an account to join the conversation.
- jaybuzzard
-
Topic Author
- Offline
- Junior Member
-
- Posts: 22
- Thank you received: 2
Now I will wait for the doctor to tell what code I need to insert into the frontstats.php file to display the total user count from the userlist ?
cheers
Jay
Please Log in or Create an account to join the conversation.
- jaybuzzard
-
Topic Author
- Offline
- Junior Member
-
- Posts: 22
- Thank you received: 2
Please Log in or Create an account to join the conversation.
Blue Eagle vs. Crypsis reference guide
Read my blog and
Please Log in or Create an account to join the conversation.
- jaybuzzard
-
Topic Author
- Offline
- Junior Member
-
- Posts: 22
- Thank you received: 2
Right the code which I need to change or adapt to fix the stats problem is the following
This if from the Frontstats.php (../components/com_kunena/template/default/plugin/stats/frontstats.php)
<?php echo JText::_('COM_KUNENA_STAT_TOTAL_USERS'); ?>: <strong><?php echo $userlist1; ?></strong> <span class="divider">|</span>
I need it to show the total registered user amount from the userlist.php (../components/com_kunena/template/default/userlist/userlist.php) file. which is the following:
<h2><span><?php printf(JText::_('COM_KUNENA_USRL_REGISTERED_USERS'), $this->app->getCfg('sitename'), intval($this->total));?></span></h2>
I am not a php coder so have tried numerous different methods and playing around and cannot get it to show on the frontstats :evil:
I am sure that someone who knows php could just say..... aahhh you just need to move this or change this and it will work (I Hope
regards
Jay
Please Log in or Create an account to join the conversation.
If you replate lib/kunena.stats.class.php function loadTotalMembers() in line ~93 with this:
You should see the right number in there, too (just pick up which option you want to use from your configuration)..
Yes, it was a bug.
Please Log in or Create an account to join the conversation.