PDA

View Full Version : Quick Ban / Suspend


mholtum
06-06-2004, 02:42 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.

Templates to Edit: (1) postbit or postbit_lagacy(depending on which you use)

Find:

<if condition="$post['userid']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
</if>


Below that add:

<if condition="$post[usergroupid]!=6 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])">
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/banning.php?do=banuser&userid=$post[userid]','ban','width=500,height=350,scrollbars=yes')"><b>Ban or Suspend $post[username]</b></span></td></tr>
</if>

mholtum
06-06-2004, 02:44 PM
Forgot to add: This Hack is Based on Erwins Warning System/Automatic Ban Hack and Magnus's Add On.

Our Sponsors
 

NexVision
06-07-2004, 01:31 PM
good one.

NexVision
06-19-2004, 06:23 PM
cool love it

Our Sponsors
 

Lurk
06-22-2004, 11:46 PM
yeah, it's a nice hack, but isn't this supposed to be at vB.org?

mholtum
06-23-2004, 03:27 AM
Yea Probably.. But oh well, I rearly go there..

jaliam
06-24-2004, 06:21 PM
Can you please tell me how I could change the font properties of this hack to match the rest of the options on the mod for user profile? See image attachment for details.