The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Removing unmoderated users (trolls) from Who's Online
vb.com has given up on me and pointed here.
Hi, This follows on from this thread about a troll who was reporting posts relentlessly. https://www.vbulletin.com/forum/show...44#post2332244 However, his other hobby is registering obscene usernames just so that the appear in the Who's Online section. He can do this despite being unregistered as I now have full security on new signups with people having to wait for confirmation emails from me. He shouldn't be able to appear in Who's Online as an unmoderated user but he does. Can anyone provide the code to stop unregistered/unmoderated users from appearing in Who's Online, please? I don't want to delete the whole section - I already did that for 'Welcome to our newest member'. FYI he does this several times a day and has done for several months. Banning usernames and IP addresses doesn't work as he uses new ones every time several times a day. Thanks Nick |
#2
|
||||
|
||||
Posted in the wrong place. Reported
|
#3
|
||||
|
||||
Moved.
|
#4
|
||||
|
||||
Thanks Paul.
|
#5
|
|||
|
|||
Are you talking about the "Who's Online" page (online.php)? Create a plugin using hook online_query and this code:
Code:
$hook_query_where .= " AND usergroupid NOT IN (3, 4) "; |
#6
|
|||
|
|||
It's just for the main forum homepage with the list of Who's online.
|
#7
|
|||
|
|||
OK, try these two plugins:
hook location forumhome_whovisited: Code:
$newarray = array(); $count = 0; foreach ($wgo_members_list AS &$member) { if (!is_member_of($member, 3, 4)) { $count++; $newarray[$count] = &$member; $newarray[$count]['comma'] = $vbphrase['comma_space']; } } if ($count) { $newarray[$count]['comma'] = ''; } $wgo_members_list = &$newarray; hook location forumhome_loggedinuser: Code:
if (is_member_of($loggedin, 3, 4)) { $loggedin['lastactivity'] = 0; } |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|