PDA

View Full Version : Mini Mods - Postbit Popup Menu - Add Admin/Mod Options


sheppardzwc
03 Apr 2009, 23:30
We've used this on my forum for many months, and it's worked great.

Description: Ever wanted a quicker and easier way to edit a user's usernotes and/or profile without having to go to their Public Profile and squint your eyes to try and read the small options? Now you can quickly and easily edit anything you'd like with ease - from the comfort of the popup menu in each post.

Installation:
1. Go to AdminCP > Styles and Templates > Pick a Skin > Edit Templates > postbit.

2. Scroll to the bottom and find:

<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>
$template_hook[postbit_user_popup]

3. Replace under <phrase 1="$post[username]">$vbphrase[add_x_to_contacts]</phrase></a></td></tr>:

<if condition="can_moderate()">
<tr>
<td class="thead">Moderator Options</td>
</tr>
<tr><td class="vbmenu_option"><b><a href="usernote.php?u=$post[userid]">View/Edit $post[username]'s Usernotes</a></b></td></tr>
<tr><td class="vbmenu_option"><b><a href="moderator.php?do=useroptions&u=$post[userid]">View/Edit $post[username]'s Profile</a></b></td></tr>
</if>

4. Save, repeat for all other skins.

And you're done! Click on a user's username in their post and, if you have moderating permissions, should be able to see the added two options under the heading "Moderator Options."

[MARK AS INSTALLED (http://www.vbulletin.org/forum/vborg_miscactions.php?do=installhack&threadid=210252)]

CMGU
04 Apr 2009, 00:38
thanks but u have any screenshot?

Jasem
04 Apr 2009, 04:52
great work, thank you!

sheppardzwc
04 Apr 2009, 18:38
thanks but u have any screenshot?
Added a screenshot. :)

Daisyboo
18 Aug 2009, 14:00
Brilliant! Nom for MOTM :)

Sador
20 Aug 2009, 15:18
Installed, thanks.

lm3a.net
23 Aug 2009, 12:08
Great,

thank you..