Back to vBulletin 3.8 Template Modifications

Extra Modoptions into users posts (Ban Link, Edit Avatar, Edit sign,..)
Mod Version: 1.00, by Sofia

vB Version: 3.8.x Rating: (9 votes - 4.22 average) Installs: 185
Released: 24 May 2009 Last Update: Never Downloads: 23
Not Supported Re-usable Code Translations  

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

Spoiler (click to open)


Thanks Sofia,

I have your code for me extended
Code:
<!-- / start - happy extra modoption --!>
<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>
<!-- / end - happy extra modoption --!>
German Translation: http://www.world-of-80s.com/leitfaden-anleitungen-techniken/26675-zusaetzliche-moderatoroptionen-in-der-beitragsansicht.html

Close



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&amp;userlist=buddy&amp;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 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.

Download

No files for download.

Addons

Screenshots

Click image for larger version
Name:	1.png
Views:	1260
Size:	59.3 KB
ID:	99534  

Similar Mods

Profile Enhancements can't edit avatar until have X posts vBulletin 3.7 Add-ons
Edit Avatar link in UserCP vBulletin 2.x Template Modifications

vblts.ru supports vBulletin®, 2022-2024