The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
quick ban?
An idea and tell me if it's possible (or worthwhile) or not.
I want to do a if/then on the postbit page that does something like this. If admin/mod display 'quick ban' button for particular user. The 'quick ban' button would essentially do just that. By pushing it, it would automatically add that user to one of my banned groups (I have a readonly usergroup for troublesome users) for 24 hours. This is mostly for moderators because I didn't give them permission to the mod control panel (too much permissions). If they have the 'quick ban' button, they can put a user into 'timeout' for 24 hours until one of the admins can review it. I know I would need to do a if/then to check the usergroups for admins or mods. Then I know I would have to make seperate forms for each user on postbit. It would then have to pass those form variables to the banning.php file. Thoughts? |
#2
|
||||
|
||||
Quote:
Furthermore, this is mainly a template mod - I've added such a "Quick Ban"-Button in the user profile (Template MEMBERINFO). HTML Code:
<if condition="can_moderate(0, 'canbanusers')"> <br /> <if condition="$usergroupcache["$userinfo[usergroupid]"][genericoptions] & ISBANNEDGROUP"> <div style="color: red; font-weight: bold; text-align: center; font-size: 18pt">This User is banned!</div> <else /> <div style="text-align: center"> <form method="get" action="modcp/banning.php" /> <input type="hidden" name="do" value="dobanuser" /> <input type="hidden" name="period" value="PERMANENT" /> <input type="hidden" name="usergroupid" value="8" /> <input type="hidden" name="username" value="$userinfo[username]" /> <input type="submit" value="Ban User" /> </form> </div> </if> </if> |
#3
|
||||
|
||||
Quote:
I tried something similar to that button you have ... but it returns them to the banning page where they can mess around in the modcp. |
#4
|
||||
|
||||
Well, check your moderator permissions.
Give them only those you want them to have |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|