Forum for users of JoomlaWatch / ExtraWatch for Joomla, Wordpress, Drupal, Magento, Prestashop

JoomlaWatch / ExtraWatch has following features: live real-time visitor statistics, location of your visitors on a map, blocking of users based on bad word list, front-end counters, click heat map, definition of goals and rules, graphs, directory size monitoring, monitoring of increase of database data in time, nightly email reports, interactive HTML5 chart of traffic flow within your website, SEO report with keyword statistics and keyword position trends

Welcome, Guest
Please Login or Register.    Lost Password?

We have guests and members onl.. modwhosonline bug
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: We have guests and members onl.. modwhosonline bug
#2167
We have guests and members onl.. modwhosonline bug 7 Years ago Karma: 0
Hi,

I've found Joomla Watch 1.29 bug.

I have installed 3 different sites joomla V 1.54 and in each site I installed Joomla Watch 1.29 application.

Everything works fine, only the guess information is missing.

Joomla watch showing:
We have guests and members online ... instead of:
We have x guests and y members online...

x and y is missing.

I also attach the screen shot:



Could someone in this forum help me? It is very important for me to track the current total guest and members.

Post edited by: sasaki, at: 2009/09/29 18:27<br><br>Post edited by: matto, at: 2009/09/30 03:45
sasaki (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#2169
Re:!!JoomlaWatch 1.29 Bug!! 7 Years ago Karma: 0
After two hours debugging the code, finally I found the answer.

I don't know why the JText::sprintf doesn't work nicely with joomla watch.

So here to fix it:
1. Open \modules\mod_whosonline\tmpl\default.php.
2. Change the code into this:

Code:


&lt;?php // no direct access
defined('_JEXEC') or die('Restricted access');

if ($showmode == 0 || $showmode == 2) :
    if ($count['guest'] != 0 || $count['user'] != 0) :
        echo JText::_('We have') . '&amp;nbsp;';

if ($count['guest'] == 1) {
//    echo JText::«»sprintf('guest', '1');
      echo JText::_('1 guest');
}
else {
    if ($count['guest'] &gt; 1) {
//     echo JText::«»sprintf('guests', $count['guest']);
    echo JText::_($count['guest'].' guests');
}
}

if ($count['guest'] != 0 &amp;&amp; $count['user'] != 0) :
    echo '&amp;nbsp;' . JText::_('and') . '&amp;nbsp;';
    endif;

if ($count['user'] == 1) {
    echo JText::_('1 member');
//     echo JText::«»sprintf('member', '1');
}
else {
    if ($count['user'] &gt; 1) {
//     echo JText::«»sprintf('members', $count['user']);
    echo JText::_($count['user'].' members');
}
}
echo '&amp;nbsp;' . JText::_('online');
    endif;
endif;

if(($showmode &gt; 0) &amp;&amp; count($names)) : ?&gt;
    &lt;ul&gt;
&lt;?php foreach($names as $name) : ?&gt;
    &lt;li&gt;&lt;strong&gt;&lt;?php echo $name-&gt;username; ?&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;?php endforeach;  ?&gt;
&lt;/ul&gt;
&lt;?php endif;



Hope this will help.

Regards,
Sasaki
sasaki (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#2170
Re:!!JoomlaWatch 1.29 Bug!! 7 Years ago Karma: 31
It's a bug in mod_whosonline.php, which is an integral part of Joomla, and not JoomlaWatch.

But anyway, thank you for this nice solution.
matto (Admin)
Moderator
Posts: 770
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1

Latest News

Get the latest freelance project announcements
Follow CodeGravity.com

Download ExtraWatch™

ExtraWatch™ FREE is Joomla, Wordpress, Prestashop, Magento plugin with following features: Live Stats, Nightly Email Reports, Goals, Graphs, Anti-spam, History and more