Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: [pK]Swag on May 10, 2014, 05:12:46 PM

Title: Users online today
Post by: [pK]Swag on May 10, 2014, 05:12:46 PM
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
Title: Re: Users online today
Post by: [pK]Swag on May 11, 2014, 06:59:19 PM
It's been 24 hours.
So, "bumb"
Title: Re: Users online today
Post by: 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.
Title: Re: Users online today
Post by: [pK]Swag on May 11, 2014, 07:38:43 PM
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?
Title: Re: Users online today
Post by: 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.
Title: Re: Users online today
Post by: [pK]Swag on May 11, 2014, 07:48:13 PM
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?
Title: Re: Users online today
Post by: 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....)



Title: Re: Users online today
Post by: [pK]Swag on May 11, 2014, 07:52:59 PM
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]
Title: Re: Users online today
Post by: NanoSector 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. :)
Title: Re: Users online today
Post by: [pK]Swag on May 12, 2014, 12:06:39 PM
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:
Title: Re: Users online today
Post by: NanoSector on May 12, 2014, 12:32:22 PM
Try this one:
Title: Re: Users online today
Post by: [pK]Swag on May 12, 2014, 04:39:02 PM
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 :)
Title: Re: Users online today
Post by: NanoSector on May 12, 2014, 04:48:28 PM
Great :)

If you want it back, just remove the line that starts with "return; //" without quotes.
Title: Re: Users online today
Post by: [pK]Swag on May 12, 2014, 08:32:05 PM
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?
Title: Re: Users online today
Post by: NanoSector on May 13, 2014, 01:25:25 AM
Yeah that's also possible. Making that as a to do, editing code on my phone isn't very pleasant :P
Title: Re: Users online today
Post by: Illori on May 13, 2014, 05:38:55 AM
try the attached file.
Title: Re: Users online today
Post by: NanoSector on May 13, 2014, 07:12:15 AM
Thanks, Illori :)
Title: Re: Users online today
Post by: Steve on May 13, 2014, 08:56:33 AM
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>';
Title: Re: Users online today
Post by: Illori on May 13, 2014, 09:10:05 AM
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>';*/
Title: Thank you all
Post by: [pK]Swag on May 13, 2014, 11:51:36 AM
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 ;)
Title: Re: Users online today
Post by: Steve on May 13, 2014, 02:38:06 PM
Thanks Illori. :)