Topic: Hide a admin from online list

I wish hide a admin from the online list (not from the user list).

I have found this modification by Gary13579 at http://punbb.org/forums/viewtopic.php?id=5353

Open index.php

#
#find line 179
#
if ($cur_user_online['user_id'] > 0)


#replace with (switch the letter x with the id of your account. the first account made has an id of 2)
if ($cur_user_online['user_id'] > 0 && $cur_user_online['user_id'] != x)

#save and upload

#open userlist.php
#delete line 66 (   <option value="<?php echo PUN_ADMIN ?>"<?php if ($show_group == PUN_ADMIN) echo ' selected' ?>><?php echo $lang_common['Administrator'] ?></option>   )

#save/upload

It does not work any more with PunBB 1.2.12
I tried to change it but I did not succeed.
Anybody could look at code?
Thanks

Re: Hide a admin from online list

Open index.php

#
#find line 186
#
if ($pun_user_online['user_id'] > 1)


#replace with (switch the letter x with the id of your account. the first account made has an id of 2)
if ($pun_user_online['user_id'] > 0 && $pun_user_online['user_g_id'] != x)

#save and upload

with this, you will put your ID in the line wink and you will be hide in the online list

3 (edited by falconflyz 2006-06-02 19:41)

Re: Hide a admin from online list

Bonjour nico
Thanks, but when I do that, I have my username and my IP listed in the online list (viewing from a guest it is my IP only and not my username).
NB: I changed nothing in file "userlist.php"
@+

Re: Hide a admin from online list

No success. I have just made different tries with a news insallation of Punbb. It does not work. And IP of guests are shown in the online list  as though it was members lol