Dear SMF,
My forum doesn't update how many people where browsing the forum. For example, yesterday 78 members where online (excluding guests) and the " most users online/today" doesn't update.
Also, today there were 17 users online, and this is what the footer claims:
QuoteMost Online Today: 7. Most Online Ever: 13 (May 08, 2014, 02:43:18 PM)
I've already went to my ACP and enabled forum statistics daily.
I hope any user/admin can help me resolve this issue.
Regards,
Khalid
It's been 24 hours.
So, "bumb"
17 users online today, that's not most online all at once which is what that stat is based on.
Quote from: Arantor on May 11, 2014, 07:02:56 PM
17 users online today, that's not most online all at once which is what that stat is based on.
Dear Arnator,
Thank you for your reply. Last week, there was 74 users online, and the footer says there was 3.....
The reason I know how many people are online is because I've installed a mod name "Users Logged In Today."
If this can't be fixed, can I at least remove this?
Why fix it when it ISN'T BROKEN?
74 users online over 24 hours isn't 74 users online ALL AT ONCE. You had 3 users online ALL AT ONCE.
Quote from: Arantor on May 11, 2014, 07:40:44 PM
Why fix it when it ISN'T BROKEN?
74 users online over 24 hours isn't 74 users online ALL AT ONCE. You had 3 users online ALL AT ONCE.
Oh.
Thanks for explaining. Can I still remove it?
One more question, is there another mod like McLegend?
sure... you can remove it by removing the code in index.template.php (or maybe it was boardindex....)
Quote from: Kindred on May 11, 2014, 07:49:56 PM
sure... you can remove it by removing the code in index.template.php (or maybe it was boardindex....)
Dear Kndred,
I'm sorry if I sound like a noob. I'm a basic scripter in html, and advanced in C++.
I know Pawno, and C++.
But, when it comes to html, and php, and I'm ******, lol....
How do I do it? [lol]
Hi [K]M,
Attach your Themes/{theme}/BoardIndex.template.php and I'll (or someone passing by) remove it for you. :)
Quote from: Yoshi on May 12, 2014, 09:24:26 AM
Hi [K]M,
Attach your Themes/{theme}/BoardIndex.template.php and I'll (or someone passing by) remove it for you. :)
Dear Yoshi,
Thanks for your reply. You're really nice ;)
Here it is:
Try this one:
Quote from: Yoshi on May 12, 2014, 12:32:22 PM
Try this one:
Dear Yoshi,
It works great, thanks sir :)
You're the best, sir.
Thanks again :)
Great :)
If you want it back, just remove the line that starts with "return; //" without quotes.
Quote from: Yoshi on May 12, 2014, 04:48:28 PM
Great :)
If you want it back, just remove the line that starts with "return; //" without quotes.
Dear Yoshi,
Thanks xD
I've got
one last question ^^
Is it possible to keep everything
except for Most Users Online Today or Users Online tab?
Btw, thanks again :)
Example:
(http://oi62.tinypic.com/2cqxljp.jpg)
Is it possible to remove the whole Users online? OR, at least the Most users online today?
Yeah that's also possible. Making that as a to do, editing code on my phone isn't very pleasant :P
try the attached file.
Thanks, Illori :)
What part was modified to achieve that last result? Was it this?
/* echo '
</p>
<p class="last smalltext">
', $txt['most_online_today'], ': <strong>', comma_format($modSettings['mostOnlineToday']), '</strong>.
', $txt['most_online_ever'], ': ', comma_format($modSettings['mostOnline']), ' (', timeformat($modSettings['mostDate']), ')
</p>';
that is not all of it
/* echo '
</p>
<p class="last smalltext">
', $txt['most_online_today'], ': <strong>', comma_format($modSettings['mostOnlineToday']), '</strong>.
', $txt['most_online_ever'], ': ', comma_format($modSettings['mostOnline']), ' (', timeformat($modSettings['mostDate']), ')
</p>';
// Users Online Today
echo '
<div class="title_barIC">
<h4 class="titlebg">
<span class="ie6_header floatleft">
<img class="icon" src="', $settings['images_url'], '/icons/online.gif', '" alt="', $txt['online_users'], '" />', $txt['uot_users_online_'.$modSettings['uot_setting_period']], '
</span>
</h4>
</div>
<p class="inline smalltext">';
echo
$txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';
if ($context['viewing_allowed'])
echo
' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_users_hidden_today']), ', ', $txt['uot_hidden'], ': ', $context['num_users_hidden_today'], ')';
// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && $context['viewing_allowed'])
{
echo
'<br />', implode(', ', $context['list_users_online_today']);
}
echo '
</p>';*/
Dear Illori, Steve, Yoshi,
Thank you all for your help ;) It worked like a charm.
SMF is, and always will be the best place for newbies like me. You guys are all helpful, and kind people :)
Regards,
Khalid ;)
Thanks Illori. :)