![]() |
Quick Ban/UnBan
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. if you do not want to have the UnBan Link than just remove this line Code:
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/banning.php?do=liftban&userid=$post[userid]','liftban','width=500,height=375,scrollbars=yes')"><b>Lift Ban on $post[username]</b></span></td></tr> Code:
<if condition="$post[usergroupid]!=6 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])"> Code:
<if condition="($bbuserinfo[usergroupid]==5 || $bbuserinfo[usergroupid]==6 || $bbuserinfo[usergroupid]==7)"> |
You might want to protect the Supermods from being banned , too, or does it already do that? ;)
|
Quote:
Quote:
|
So it only bans them from the forum they moderate?
|
Quote:
if a user is keeps acting up in one part of the forum chances are theyll do the same elsewhere on the site |
Quote:
Quote:
any member with any kind of modertor status whether super mod or regular mod can not ban each other... only an admin can ban a mod of any kind |
Quote:
|
Quote:
I DISSAGREE Matter of act, I more than dissagree, I know for fact that users behave differently per forum... Like, at Literotica, there's some elite jerks in the Authors forum that totally need their ass kicked. People often go there to challenge these people and fights break out all the time... I know of people who like to troll the Gay/Lesbian forums as well as Religion Forums, but they act fine in the other forums. And then there's people like me who should be banned from General chat because I always start some riot. :o |
Quote:
|
Each board is different but I agree, if they act up in one forum, don't give them the oppportunity to repeat themselves in another.
|
I agree with Brinnie, I'd like a hack to ban a member from just one forum, or so that moderators' bans don't affect the users access to other forums.
Like I have one forum that is pretty much anything goes, and then others taht have stricter guidelines, I'd like it so that mods of the more strict forums can't ban the problematic users from the other forums. anyways.. nice hack on the quick ban. |
Quote:
|
Quote:
|
Quote:
in 3.5 i cant find the right hooks though |
Maybe ask Kirby? ;)
|
cool Brinnie, please keep me updated on the status, or sketch if you end up figuring out how to do it. Its definatly a feature I'm looking for.
|
Quote:
|
Try refreshing its not down
|
You should be able to just edit access masks for problem users, and deny them access to particular forums.
|
Quote:
Um... Hmm. Wouldn't you need to set up like 15 permissions masks? And how would you determine which group they go in when a mod banns them? |
Not usergroups; access masks.
Edit a user in the AdminCP. Choose Edit Forum Permissions (Access Masks) from the dropdown at the top. Should be the first option listed. You can pick/choose which forums they have access to, per user. You may need to enable Access Masks if you haven't already. AdminCP->vBulletin Settings->General Settings->Access Masks. |
thanks much sketch.... works great
|
Is there anyway I could set this up so it limited those bannings by mods to 48 hrs or less?
|
installed but no workie
|
Hack is perfect for my forum. Thanks for the hard work.
*installs* |
I tweaked it a little, since only my super-moderators and administrators can ban users, not regular moderators. I also added another if condition so that it'll only show "ban" if they're not banned, and if they are it'll only show "lift ban".
Code:
<!-- QUICK BAN --> Other than those few minor things, I'm glad you got this up for 3.5. Thanks. |
I think I'll install this today.
|
what's the difference if i put it on postbit or postbit legacy.
i dont understand which i should put it into wtf... |
if you are using Legacy (Vertical) Postbit Template you must edit postbit legacy...
|
Just minor, but the links look ugly ... how can I make them "normal" ?
http://img408.imageshack.us/img408/4757/untitled6fk.jpg |
Can you write this that an email is sent to the member when they are banned with the reason, length of the ban, etc?
|
well this doesnt work, i donno if the codes changed, because it works perfect on my other forums... shame really..
never mind, got ti working, i think |
will this work with 3.6?
|
I'm using it on 3.6 Gold.
|
still working on 3.6
|
I put it in postbit_legacy and it shows up in the drop down, but when i click it, nothin happens! What's wrong?
|
This code will show Admins the ban option (red) for non-banned members and the lift ban option (green) for banned members.
Code:
<if condition="$bbuserinfo[usergroupid]== <Admins>"> |
Awesome, working on vB 3.6.8 ... Installed ...
|
I installed this but the moderators still cannot get it to work. They see the Ban link in the profile, but when they click it, a window appears asking them to log into the mod CP. then after the log in, tells them You are not authorized to ban users
Ideas? I tried this using one style and editing the Postbit Legacy template. Tried it as it comes in the zip and with this piece replacing Code:
<if condition="($bbuserinfo[usergroupid]==5 || $bbuserinfo[usergroupid]==6 || $bbuserinfo[usergroupid]==7)"> |
Also works on 3.8.2. Thanks...
|
All times are GMT. The time now is 09:25 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:
|