![]() |
Banned by moderator...
I want it to be so that when the moderators click the ban button, it moves them to usergroup Banned, a group I have custom created, and wish to have all banned users in.
Thanks |
Does it not do this already?
|
It puts them in usergroup "Banend by Moderator" which is kind of annoying, since I am active in taking care of trolls too, and just want them all in one group, the one that I custom created.
|
edit MOD\user.php (Notice this is the file under MOD dir)
find: PHP Code:
PHP Code:
Be careful about writing the correct usergroup id here! We dont want them become Site Admins accidently, do we? :p Enjoy.. Logician |
It puts them in the correct usergroup, but still automatically adds Banned by Moderator, and it also doesn't update their Status to Banned, like it would automatically do if an admin switched their group.
|
"and it also doesn't update their Status to Banned, like it would automatically do if an admin switched their group."
Thats a known bug, a fix is somewhere in the releasforum as i know |
Have any idea of what it is called? And what about it still adding the other usergroup?
|
you have to delete/outcomment this passege in mod/user.php:
PHP Code:
this is the link to the hack update user title: https://vborg.vbsupport.ru/showthrea...threadid=33711 |
Thanks for that:)
Satan |
Outcomment? I'm new at this...
|
$DB_site->query("UPDATE user SET usergroupid=$bangroup[usergroupid] WHERE userid=$banuser[userid]");
For that hack...this isn't in my file at ALL...and how exactly do I integrate these two? |
outcomment means to make a /* at the beginning of the passage and a */ at the end :)
i hope this phrase exists in english ^^ this line must be in your mod/user.php, if not, you should take the standart file from vb and not a hacked one ;) |
So put a slash and then an asterik right before and right after that passage?
|
yes, so php will handle it as a comment and wont parse it anymore..:
it should look so: PHP Code:
|
I'm getting An unknown error occured while attempting to ban eigthlegion (32). The group the user was supposed to be moved to was "" after outcommenting it...
|
yes, you have to apply logicians modifications too
just outcommenting would always produce an error |
I did...it's only error when I outcomment it.
|
oh, i see, instead of doing all this changes in this thread, you can do a very small change to get what ya want.
take your original user.php find PHP Code:
PHP Code:
|
Should I still do the outcomment then?
|
no, don't use any of the changes here in the thread, wether logicians nor mine, just make the last change i post, this should be enough
|
And will just doing this instead of outcommenting if I don't need to make the database or anything hinky?
|
this small change is all what ya need, you don't have to do anything more
|
Yep, I tried it and it works...I was just wondering if it will still try and add that usergroup and just get denied, or will it really even matter? Also for the user title, I think it edits the same line of code that I had to change for the current hack, what do I do about that to make it update the title?
|
it would just try to create another usergoup if your usergroup x won't exist.
you can implement the hack as it is said in the txt-file, just instead of changing the line to PHP Code:
PHP Code:
|
It exists, so will it still try to create Banned by Moderator, or just ignore that completely?
|
it will ignore that passage
|
Now I'm getting "You may not ban someone who is not a normal registered user!"
|
After adding the update title hack at least, not from yours...
|
are you sure you haven't banned this person before?
if this person isn't in usergroup 2, you cannot ban it with the mod cp |
Yeah, they're listed as a member and it's doing it. Do you want to to post a copy of my current user.php so you can confirm I have the coding right?
|
Also, should I have:
$bangroup=$DB_site->query_first("SELECT usergroupid,title FROM usergroup WHERE usergroupid=X"); or $bangroup=$DB_site->query_first("SELECT usergroupid,title,usertitle FROM usergroup WHERE usergroupid=x"); Since you have said both, but I'm assuming the second and using that... |
They are in usergroup 2, If you know at all...why do I have usergroups up to 8, when I only have 6 too?
|
the usergroupid of your banned group must be higher than 6:
PHP Code:
this is the line which produces your error: PHP Code:
|
For the usergroup, is there a way to allow them to ban other usergroups also, such as going 2,3? For some reason, I redid the file and everything is working normally before, so that's setup fine, thanks fo rhte help. One thing though, I turned on moderate new users, and now all users are autlmatically being set to Administrator, could this hack have had anything to do with it?
|
no, this hack hasn't anything to do with this problem.
perhaps you have made the moderated gruop as a secound admingroup? you shouldn't change the rights of usergroups < 7, because often vb puts automatically users in one of this groups... to ban also other usergroups, just add a clause to this: PHP Code:
PHP Code:
|
All times are GMT. The time now is 12:18 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|