News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Users online today

Started by [pK]Swag, May 10, 2014, 05:12:46 PM

Previous topic - Next topic

[pK]Swag

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

[pK]Swag

It's been 24 hours.
So, "bumb"

Arantor

17 users online today, that's not most online all at once which is what that stat is based on.
Holder of controversial views, all of which my own.


[pK]Swag

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?

Arantor

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.
Holder of controversial views, all of which my own.


[pK]Swag

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?

Kindred

sure... you can remove it by removing the code in index.template.php (or maybe it was boardindex....)



Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

[pK]Swag

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]

NanoSector

Hi [K]M,

Attach your Themes/{theme}/BoardIndex.template.php and I'll (or someone passing by) remove it for you. :)
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

[pK]Swag

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:

NanoSector

My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

[pK]Swag

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 :)

NanoSector

Great :)

If you want it back, just remove the line that starts with "return; //" without quotes.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

[pK]Swag

#13
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:


Is it possible to remove the whole Users online? OR, at least the Most users online today?

NanoSector

Yeah that's also possible. Making that as a to do, editing code on my phone isn't very pleasant :P
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Illori


NanoSector

My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Steve

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>';
My pet rock is not feeling well. I think it's stoned.

Illori

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>';*/

[pK]Swag

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 ;)

Advertisement: