vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Mini Mods - Postbit Popup Menu - Add Admin/Mod Options (https://vborg.vbsupport.ru/showthread.php?t=210252)

sheppardzwc 04-02-2009 10:00 PM

Postbit Popup Menu - Add Admin/Mod Options
 
1 Attachment(s)
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:

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

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

Code:

          <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]

CMGU 04-03-2009 10:38 PM

thanks but u have any screenshot?

Jasem 04-04-2009 02:52 AM

great work, thank you!

sheppardzwc 04-04-2009 04:38 PM

Quote:

Originally Posted by CMGU (Post 1783370)
thanks but u have any screenshot?

Added a screenshot. :)

Daisyboo 08-18-2009 12:00 PM

Brilliant! Nom for MOTM :)

Sador 08-20-2009 01:18 PM

Installed, thanks.

lm3a.net 08-23-2009 10:08 AM

Great,

thank you..


All times are GMT. The time now is 05:07 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01820 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete