The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Banned Users on "Currently Active Users"
Hi all,
I've done a search but the stuff that gets mentioned doesn't seem to be doing the trick. I am wondering if there is a way to basically hide banned users from showing up on the currently active users. Anyone have any ideas? Cheers, |
#2
|
|||
|
|||
Edit includes/functions_databuild.php
Search for (occurs twice): Code:
usergroupid NOT IN (3,4); Code:
usergroupid NOT IN (3,4,8); |
#3
|
|||
|
|||
Quote:
|
#4
|
|||
|
|||
It won't take effect until something causes the user stats to be rebuilt. One way to force it would be to manually run the "Daily Statistics Log" scheduled task.
|
2 благодарности(ей) от: | ||
John Lester, t-j |
#5
|
|||
|
|||
Oh crap, yea I forgot to mention that it wouldn't change until someone registers, or you create a new member, or delete a member. Sorry
|
#6
|
||||
|
||||
I would also like to be able to have the 'banned' users not appear in the 'Current Active Users'.
But - being a total neophyte as far as php code is concerned - I'd appreciate being directed to where I can insert the user id of the banned members, thus causing them to be invisible to registered members browsing my forum. Thank you in advance for any help. |
#7
|
|||
|
|||
Well, John Lester pretty much summed it up in post #2: you need to get a copy of the file includes/functions_databuild.php on your local computer (either get it from the vb distribution, or download it via ftp from your server). If you download it from your server, make a copy of it on your computer so that you save the original. This way if something goes wrong with the changes, you should just be able to upload the unchanged file to fix it. If you're using the one from the vb distribution, make a copy of it before editing it.
Next you need to edit the file using a programming editor (or use notepad if you don't have anything else - don't use Word or wordpad or other word processing editor). Find this: Code:
usergroupid NOT IN (3,4) which is in two places: one is on a line by itself, the other is near the end of a long line. In both places you want to add 8 to the list, so it looks like this: Code:
usergroupid NOT IN (3,4,8) |
#8
|
|||
|
|||
There is no place to enter a userid, you can only do this by usergroupid. If you want specific individuals to not show up, but don't want them banned you will have to create a user group just for them and add the usergroupid as explained earlier in the thread.
|
#9
|
|||
|
|||
Oh right. Obviously I thought he meant usergroupid. |
#10
|
|||
|
|||
Quote:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|