The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Ban member from post
I have searched for a hack to do this, but couldn't find it. If there is such a hack please direct me to it.
How can I enable my mods to ban a member straight from the members it's post without having to go from the post to: member profile -> modcp -> ban member |
#2
|
|||
|
|||
Hi
Add this to the username (menu) in the postbit template After this Code:
<if condition="$post[usergroupid]!= 6 AND $bbuserinfo[usergroupid] == 6"> <tr><td class="vbmenu_option"><a href="moderator.php?$session[sessionurl]do=useroptions&u=$post[userid]"><phrase 1="$post[username]">Edit User</phrase></a></td></tr> </if> Code:
<if condition="($bbuserinfo[usergroupid]==5 || $bbuserinfo[usergroupid]==6 || $bbuserinfo[usergroupid]==7)"> <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=375,scrollbars=yes')"><b>Ban or Suspend $post[username]</b></span></td></tr> <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> </if> This is what i have and it works, Sorry i cannot help any further though! |
#3
|
||||
|
||||
Where can I find this template? I have searched my postbit template, but can not find the text you refer to.
I went to: adminCP -> styles & templates -> style manager -> default style -> postbit templates -> postbit |
#4
|
|||||
|
|||||
The above works, but Bashy made an error and I'm glad he/she did
The above should be placed after this: Quote:
Quote:
Quote:
And after that this should be added: Quote:
Quote:
|
#5
|
|||
|
|||
Very nice!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|