Log in

View Full Version : [vb 3.0.1] Quick Ban


sketch42
06-03-2004, 10:00 PM
Since the Modcp link is gone from the bottom of the
page my moderators needed a quick way to ban a user without going
to the modcp. So this hack adds aoption to Ban a user directly from
the offending post, via the drop down menu link by the users name.
This is Moderator Forum Specific, which means moderators can only ban
users in their own forum, and not in another moderators forum. Also a
moderator can not ban any of the forum Administrators.


This Hack is Based on Erwins Warning System/Automatic Ban Hack and Magnus's Add On.

Dont forget to click Install (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=89269)

Brad
06-04-2004, 11:19 AM
I like this one! :)

Zachery
06-04-2004, 12:11 PM
Nice work!

sketch42
06-04-2004, 12:25 PM
thanks... lol the only reason i came up with it is because i really didnt want to istall erwins hack ... lol... there where waaaay to many features i knew i wouldnt use.... so i spent the night searching and viola!! :)

chrisvonc
06-06-2004, 02:17 PM
Nice, thank you!

mholtum
06-06-2004, 04:30 PM
Now that is something even I got to work the first time! Good work.

Erwin
06-08-2004, 05:23 AM
Oh... I feel so rejected! ;)

sketch42
06-08-2004, 05:28 AM
Oh... I feel so rejected! ;)
bah... i wish you put this out... took me all night to figure that one line out... lol :o

wrongful
06-08-2004, 11:12 AM
Awesome, thanks!

Elorion
06-08-2004, 07:38 PM
coo.....installed

Tony G
06-09-2004, 02:58 AM
Nice mod! Will come in handy. :)

sketch42
06-11-2004, 07:06 PM
a small update... i added a link for unbanning someone... if you want to add it just follow the instructions again and uncomment the line where it says

//Unban//

delete those characters and your done..

the Unban link will obviously only work on a user thats currently banned

enjoy ;)

Slybone
06-21-2004, 05:26 PM
anyway to make it so its not moderator specific, just if your a admin or supermod it works?

**Edit** nevermind ignore my newbness

sketch42
06-21-2004, 06:27 PM
Find This
<if condition="$post[usergroupid]!=6 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])">

and replace with this

<if condition="($bbuserinfo[usergroupid]==5 || $bbuserinfo[usergroupid]==6)">

for just supermods and admins

MegaHertz
06-21-2004, 07:30 PM
Very nice thanks!

Slybone
06-21-2004, 08:33 PM
When trying to change it to smod & admins only... i get

The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected ';' in /home/forums/includes/adminfunctions_template.php(3028) : eval()'d code on line 228

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.


**EDIT** Nevermind I found the error you forgot to add a ) after ==6 so it should look like

<if condition="($bbuserinfo[usergroupid]==5 || $bbuserinfo[usergroupid]==6)">

**EDIT Number 2** What do you put if Administrator is your Secondary Usergroup?

sketch42
06-22-2004, 12:39 PM
When trying to change it to smod & admins only... i get


The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected ';' in /home/forums/includes/adminfunctions_template.php(3028) : eval()'d code on line 228

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
**EDIT** Nevermind I found the error you forgot to add a ) after ==6 so it should look like

<if condition="($bbuserinfo[usergroupid]==5 || $bbuserinfo[usergroupid]==6)">

Fixed in my previous post


**EDIT Number 2** What do you put if Administrator is your Secondary Usergroup?

im not too familiar with secondary groups but i think it would be something like this
<if condition="($bbuserinfo[usergroupid]==5 || $bbuserinfo[membergroupids]==6)">

although im not too sure... i dont have any admins on a secondary group .. if you can try that code and post results it would be appreciated

Slybone
06-22-2004, 01:23 PM
Worked Perfectly, Thanks for the support Great hack!

sketch42
06-22-2004, 01:29 PM
:D glad i could help :D

sketch42
07-15-2005, 03:35 AM
tested and working on vb 3.0.7 :-D

stan111
09-19-2005, 10:17 AM
wow, this is a good little hack
thanks a lot
installed

ZeryabPhone
10-07-2005, 10:47 AM
installed and working fine on vb v 3.0.9

Regards