PDA

View Full Version : keep guests from viewing who's online


pic16f84
10-25-2002, 08:16 PM
hello m8's..

i have a question, how can i keep guests from viewing the WHO'S ONLINE at the bottom of the forum?
So i want to completely hide it from them, also the WHO WAS ONLINE TODAY would be best to kept only for members...

thanx in advance

Chris M
10-25-2002, 08:25 PM
Well...

You could install Logician's " Advanced Templates: Dynamic Templates Changing according to different conditions" hack...

Then open the forumhome template, and find :

$loggedinusers

Then replace it with:

[[($bbuserinfo[usergroupid]<0)]] $loggedinusers [[/($bbuserinfo[usergroupid]<0)]]

Then open online.php
Find:
require('./global.php');
Add below:
if ($bbuserinfo['usergroupid']<0) {
show_nopermission();
}

Satan

NTLDR
10-25-2002, 08:31 PM
Originally posted by hellsatan
Then open online.php

No need to edit online.php Chris, just set the usergroup permission to so that they can't view the WOL ;)

Chris M
10-25-2002, 08:34 PM
I know that...But if you edit online.php, the permission cannot accidentally be reversed;)

Satan

Logician
10-26-2002, 09:45 AM
btw. the usergroup id of guests is 1

so if you refer users who is NOT a guest it is:

$bbuserinfo[usergroupid]>1

or if you want to use userid it is:
$bbuserinfo[userid]>0

pic16f84
10-26-2002, 12:12 PM
Thanx guys!

I installed it and it is working... only one questions comes to me... How can i tell what $userid is i.e. moderator or user awaiting email conf....??

!!thanx!!

N9ne
10-26-2002, 12:15 PM
Go to your adminCP, go to modify usergroups, and hover over the link to edit a usergroup and look at the URl on the status bar and it will give you the id.

pic16f84
10-26-2002, 12:34 PM
-->> Most excellent! <<--

thanxzz