PDA

View Full Version : hide banned user from online now


MmS1
01-26-2010, 06:37 PM
<div align="center">hello all
Is there any way to prevent banned user to show on online now

</div>

mokujin
01-26-2010, 07:30 PM
add a new plugin forumhome_loggedinuser_query
add this PHP code:
$hook_query_where .= " AND usergroupid <> 8";

(not tried yet :) )

MmS1
01-28-2010, 11:44 AM
sorry but not working

Lynne
01-28-2010, 02:50 PM
When you banned the user, did you do so by moving them to the Banned Usergroup as the Primary Group? Did you make sure to turn the plugin ON? And you selected the correct hook location?

tisaigon
11-14-2011, 04:29 AM
i hided banned members but don't show guest users, help me please, tks

74 members and 0 guests

--------------- Added 1321283829 at 1321283829 ---------------

anyone help me?

tisaigon
11-17-2011, 06:07 AM
please help me

Lynne
11-17-2011, 05:30 PM
You haven't posted any information about what you have done and what you want so it's very hard to help you.

tisaigon
11-22-2011, 01:32 PM
i had
add a new plugin forumhome_loggedinuser_query
add this PHP code:
PHP Code:
$hook_query_where .= " AND usergroupid <> 8";

and i hided banned user from user online now don't show guest users in total

74 members and 0 guests
(must more than 0 guests)

Lynne
11-22-2011, 06:27 PM
If you disable that plugin, are guests then shown?

tisaigon
11-23-2011, 06:53 PM
If you disable that plugin, are guests then shown?

yes, when i disable that plugin, guests shown, i tested in vbb 4.0.4 and vbb 4.1.7 are same,
can you help me?

tisaigon
12-08-2011, 11:11 AM
please help me.

Lynne
12-08-2011, 04:55 PM
Try something like this instead.

forumhome_loggedinuser
if (is_member_of($loggedin, 8)) $loggedin ='';

That will still have the banned member counted in the loggedin stats though. Not sure where you want them listed.