News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

How to Remove

Started by Ballista, September 02, 2006, 10:23:33 AM

Previous topic - Next topic

Ballista

I would like to know how i can remove this peice from the who's online list
Users active in past 15 minutes:

winrules

Do you just want to remove that text, or remove the whole list on the board index?


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


Ballista


codenaught

In Themes/theme_name/BoardIndex.template.php

Find:

if (!empty($context['users_online']))
echo '
', $txt[140], ':<br />', implode(', ', $context['list_users_online']);


Change to:

if (!empty($context['users_online']))
echo '
', implode(', ', $context['list_users_online']);
Dev Consultant
Former SMF Doc Coordinator

xyxis_fahim

Hey,
My theme doesn't have BoardIndex.template.php

How can I get rid of it? Thanks

By the way, theme is overviewlight

Johno69

Quote from: xyxis_fahim on May 15, 2008, 01:30:18 AM
Hey,
My theme doesn't have BoardIndex.template.php

Change it in the default theme then.

Bulakbol

#6
Or maybe change the text string itself. Open default/languages/index.english.php and find
$txt[140] = 'Users active in past ' . $modSettings['lastActive'] . ' minutes';

comment out that line and add this line under it in case you change your mind later.
$txt[140] = '';

akabugeyes' solution is better as it will get rid of the extra line as well as the colon character.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

xyxis_fahim

Quote from: Johno69 on May 23, 2008, 10:36:59 PM
Quote from: xyxis_fahim on May 15, 2008, 01:30:18 AM
Hey,
My theme doesn't have BoardIndex.template.php

Change it in the default theme then.

Yes, Thanks I figured out myself, since default indiex is used :P

Advertisement: