Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: element_2nice - tammikuu 30, 2005, 05:02:53 AP

Otsikko: online stat tweak!!
Kirjoitti: element_2nice - tammikuu 30, 2005, 05:02:53 AP
Hello, Today i installed SMF with  Fantastico. I'm wondering if there's a way i can hide the "Who's online" stat? If there is no way around in hiding the online stat then is it possible that i can tweak the online stat and change the # of users online or somethin?

please adivce!
Otsikko: Re: online stat tweak!!
Kirjoitti: Peter Duggan - tammikuu 30, 2005, 05:52:10 AP
Edit Features and Options -> Layout and Options -> Enable who's online list (uncheck):

LainaaThis option allows you to turn on or off the ability for users to see who is browsing the forum and what they are doing.
Otsikko: Re: online stat tweak!!
Kirjoitti: element_2nice - tammikuu 30, 2005, 07:51:32 AP
thnx Peter for the reply...I did as you suggested but i can still see how many users are online.....The thing is I don't want my members to see how many users are online....
Otsikko: Re: online stat tweak!!
Kirjoitti: element_2nice - tammikuu 31, 2005, 11:57:43 IP
anyone?
Otsikko: Re: online stat tweak!!
Kirjoitti: [Unknown] - helmikuu 01, 2005, 12:55:29 AP
You could remove it entirely from the BoardIndex tempalte (BoardIndex.template.php), by removing this:

// "Users online" - in order of activity.
echo '
<tr>
<td class="catbg" colspan="2">', $txt[158], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="', $scripturl, '?action=who">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], '" border="0" /></a>
</td>
<td class="windowbg2" width="100%">
<a href="', $scripturl, '?action=who">', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ', $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'], (empty($context['num_users_hidden']) ? '' : ' (' . $context['num_users_hidden'] . ' ' . $txt['hidden'] . ')'), '</a><br />
<span class="smalltext">';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
echo '
', $txt[140], ':<br />', implode(', ', $context['list_users_online']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</span>
</td>
</tr>';


How do I modify files? (http://www.simplemachines.org/community/index.php?topic=24110.0)

-[Unknown]