Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Staff rank above username Details »»
Staff rank above username
Version: 1.00, by Blind Guardian Blind Guardian is offline
Developer Last Online: Jan 2010 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 08-10-2005 Last Update: 08-11-2005 Installs: 9
Template Edits
 
No support by the author.

This simple postbit edit will add text above a staff members (mod/smod/admin) username, displaying the relevant usergroup title. It'll work on both the regular postbit and postbit_legacy.

In either postbit or postbit_legacy, find:
PHP Code:
<div id="postmenu_$post[postid]"
Add above:
PHP Code:
<font size=1 color=#XXXXXX><b>
                      
<if condition="$post[usergroupid] == X">Administrator</if>
                      <if 
condition="$post[usergroupid] == X">Super Moderator</if>
                      <if 
condition="$post[usergroupid] == X">Moderator</if>
        </
b></font
Replace the 'X' after '$post[usergroupid]' with the relevant usergroupid.
Replace the XXXXXX after 'font size=1 color=#' with a HEX code that suits your color theme.

You're set!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 09-15-2005, 05:11 AM
G-Unot G-Unot is offline
 
Join Date: Sep 2005
Location: Brooklyn, New York
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey this is nice, but one thing how do you do this if a person have more than 2 - 3 groups?
Reply With Quote
  #13  
Old 09-27-2005, 08:34 PM
HHU HHU is offline
 
Join Date: Sep 2005
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hornstar1337
it seems to only work for some staff, its not working for me the super admin, its working for only 1 staff member i think, and the usergroup id's are correct i checked the usergroup manager for them.

my site is http://www.gamerzneeds.net/forums Its a online gaming site with gunbound and other cheats on it, I have installed the shop so people can change their username colour and sometimes it looks like they are admin or mod, thats why this hack is perfect, hopefully someone else had the same problem, and knows how to fix it.
I had this problem... If your using UShop, put the new code before the line of code about the glow.

So just before the first line of this code instead of just before the second section:

Code:
<if condition="$post['uttstore_glow']"><div align="center" id="postmenu_$post[postid]" style="width:100%; filter:Glow(color=$post[uttstore_glow], strength=5);"><else />

<div id="postmenu_$post[postid]" align="center"></if>
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:30 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04302 seconds
  • Memory Usage 2,224KB
  • Queries Executed 17 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (2)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete