The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Extra Modoptions into users posts (Ban Link, Edit Avatar, Edit sign,..) Details »» | |||||||||||||||||||||||||||||
Extra Modoptions into users posts (Ban Link, Edit Avatar, Edit sign,..)
Developer Last Online: Aug 2012
Useful. This mod allows you to ban an user directly from his posts. A link appear in the dropwon menu of the member. When you click "Ban this user", it opens a popup window where you can ban ban user of the post. v2: Now you can edit signature, avatar, profilpic
v2 Special Thanks to SirHappy for this code In the template postbit and postbit_legacy, Find: HTML Code:
<if condition="$post['userid'] AND $show['member']"> <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&userlist=buddy&u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_contacts]</phrase></a></td></tr> </if> Add below: HTML Code:
<!-- / start - happy extra modoption --> <if condition="in_array($post[usergroupid], array(2))"><if condition="in_array($bbuserinfo['usergroupid'], array(6))"> <tr><td class="thead"><strong><u>Extra Modoption</u></strong></td></tr> <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')"><strong>Ban: $post[username]</strong></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]','ban','width=500,height=350,scrollbars=yes')"><strong>Unban: $post[username]</strong></span></td></tr> <tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/user.php?do=editsig&userid=$post[userid]','edit','width=500,height=350,scrollbars=yes')"><strong>Edit Signature from $post[username]</strong></span></td></tr> <tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/user.php?do=avatar&userid=$post[userid]','edit','width=500,height=350,scrollbars=yes')"><strong>Edit Avatar from $post[username]</strong></span></td></tr> <tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/user.php?do=profilepic&userid=$post[userid]','edit','width=500,height=350,scrollbars=yes')"><strong>Edit Profilpic from $post[username]</strong></span></td></tr> <tr><td class="vbmenu_option"><strong>IP-Adress from $post[username]: $post[ip]</strong></td></tr></if></if> <!-- / end - happy extra modoption --> Modcp Name : If you've rename your modcp folder in your server, please change a href="modcp/ in this code. First condition : <if condition="in_array($post[usergroupid], array(2))"> Show link in menu of usergroupid specified. Don't enter admin and mod ID. If you enter "2", ban link appear in the dropdown menu of Members. Second condition : <if condition="in_array($bbuserinfo['usergroupid'], array(6,7))"> In this example, only admins and moderators are able to view ban link. Pleaser specify usergroup ID who can vien ban link. v1 ** Remove ** Please click INSTALL if you like this mod. Enjoy ! Edit by Lynne: 2009-12-12 - The comment line in the code was incorrect - it showed --!> at the end of the comment line and was supposed to be -->. I corrected that in the code above. Screenshots
Show Your Support
|
Comments |
#22
|
|||
|
|||
Quote:
I've just found out this problem, had it installed for 2 days,! |
#23
|
|||
|
|||
When I use this Mod, the Internet Explorer users can only see the first 2 posts in a thread
Please fix this.....I would love to use this mod |
#24
|
|||
|
|||
getting same issue
|
#25
|
|||
|
|||
Nice mod...
|
#26
|
|||
|
|||
Same problem as above (threads cut off). Uninstalled for the time being.
EDIT: Fixed it, reinstalled. The problem is that the html comment tags are wrong: They should be <!-- COMMENT --> instead of <!-- COMMENT --!>; the rest of the page is getting commented out by the non-terminated tags (behaviour is probably browser dependent) EDIT2: Also, those two conditionals (if... if...) can be made into one statement with an && in it |
#27
|
|||
|
|||
Ok, got it to working
GREAT MOD!!! |
#28
|
|||
|
|||
This didnt show up at all for me...
using 3.8.3 |
#29
|
|||
|
|||
Thanks for mod, but there is a little problem in comment tag.
Like Birched said, comment tag in HTML is NOT <!-- blabla --!> but <!-- blabla -->. So, remove the second ! or just copy/paste this: Code:
<!-- / start - happy extra modoption --> <if condition="in_array($post[usergroupid], array(2))"><if condition="in_array($bbuserinfo['usergroupid'], array(6))"> <tr><td class="thead"><strong><u>Extra Modoption</u></strong></td></tr> <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')"><strong>Ban: $post[username]</strong></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]','ban','width=500,height=350,scrollbars=yes')"><strong>Unban: $post[username]</strong></span></td></tr> <tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/user.php?do=editsig&userid=$post[userid]','edit','width=500,height=350,scrollbars=yes')"><strong>Edit Signature from $post[username]</strong></span></td></tr> <tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/user.php?do=avatar&userid=$post[userid]','edit','width=500,height=350,scrollbars=yes')"><strong>Edit Avatar from $post[username]</strong></span></td></tr> <tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/user.php?do=profilepic&userid=$post[userid]','edit','width=500,height=350,scrollbars=yes')"><strong>Edit Profilpic from $post[username]</strong></span></td></tr> <tr><td class="vbmenu_option"><strong>IP-Adress from $post[username]: $post[ip]</strong></td></tr></if></if> <!-- / end - happy extra modoption --> Anyway, i think, better to use 640*480 popup size instead of 500*300, so here is modifed code Code:
<!-- / start - happy extra modoption --> <if condition="in_array($post[usergroupid], array(2))"><if condition="in_array($bbuserinfo['usergroupid'], array(6))"> <tr><td class="thead"><strong><u>Extra Modoption</u></strong></td></tr> <tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/banning.php?do=banuser&userid=$post[userid]','ban','width=640,height=480,scrollbars=yes')"><strong>Ban: $post[username]</strong></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]','ban','width=640,height=480,scrollbars=yes')"><strong>Unban: $post[username]</strong></span></td></tr> <tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/user.php?do=editsig&userid=$post[userid]','edit','width=640,height=480,scrollbars=yes')"><strong>Edit Signature from $post[username]</strong></span></td></tr> <tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/user.php?do=avatar&userid=$post[userid]','edit','width=640,height=480,scrollbars=yes')"><strong>Edit Avatar from $post[username]</strong></span></td></tr> <tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/user.php?do=profilepic&userid=$post[userid]','edit','width=640,height=480,scrollbars=yes')"><strong>Edit Profilpic from $post[username]</strong></span></td></tr> <tr><td class="vbmenu_option"><strong>IP-Adress from $post[username]: $post[ip]</strong></td></tr></if></if> <!-- / end - happy extra modoption --> |
#30
|
|||
|
|||
HolyKiller thanks 100 times man
now it's working But I will not Install it as the Coder didn't help us |
#31
|
|||
|
|||
I put it directly after this code in postbit_legacy: is anything wrong in my code?
Code:
<if condition="$post['userid'] AND $show['member']"> <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&userlist=buddy&u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_contacts]</phrase></a></td></tr> </if> Code:
<!-- / start - happy extra modoption --> <if condition="in_array($post[usergroupid], array(2))"><if condition="in_array($bbuserinfo['usergroupid'], array(6))"> <tr><td class="thead"><strong><u>Extra Modoption</u></strong></td></tr> <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')"><strong>Ban: $post[username]</strong></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]','ban','width=500,height=350,scrollbars=yes')"><strong>Unban: $post[username]</strong></span></td></tr> <tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/user.php?do=editsig&userid=$post[userid]','edit','width=500,height=350,scrollbars=yes')"><strong>Edit Signature from $post[username]</strong></span></td></tr> <tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/user.php?do=avatar&userid=$post[userid]','edit','width=500,height=350,scrollbars=yes')"><strong>Edit Avatar from $post[username]</strong></span></td></tr> <tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/user.php?do=profilepic&userid=$post[userid]','edit','width=500,height=350,scrollbars=yes')"><strong>Edit Profilpic from $post[username]</strong></span></td></tr> <tr><td class="vbmenu_option"><strong>IP-Adress from $post[username]: $post[ip]</strong></td></tr></if></if> <!-- / end - happy extra modoption --> using 3.8.4 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|