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
  #2  
Old 08-11-2005, 10:18 PM
xtreme-mobile xtreme-mobile is offline
 
Join Date: Jul 2004
Posts: 366
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is just what i wanted but is there anyway of changing the colour of the text as it doesnt show up on my post bit cos the backgrown is dark blue

regards

dean
Reply With Quote
  #3  
Old 08-11-2005, 11:27 PM
Blind Guardian's Avatar
Blind Guardian Blind Guardian is offline
 
Join Date: Mar 2004
Location: South Carolina
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by xtreme-mobile
this is just what i wanted but is there anyway of changing the colour of the text as it doesnt show up on my post bit cos the backgrown is dark blue

regards

dean
Ah, indeed.

Just change "color=#XXXXXX" in the <font> tag to whatever suits your style. Considering it's dark blue, you'd want to go with something nearer to #EEEEEE, but that's for you to tinker with.
Reply With Quote
  #4  
Old 08-14-2005, 01:03 AM
Sleepyk Sleepyk is offline
 
Join Date: Dec 2004
Location: CT
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

good little mod i like
cuz with cust. titles people dont know
Reply With Quote
  #5  
Old 08-17-2005, 12:58 AM
bi11i's Avatar
bi11i bi11i is offline
 
Join Date: Aug 2004
Location: Portland, OR
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What variable would you use for a secondary usergroup?

I tried this, but I get nothing:
Code:
   <if condition="$post['usergroupid'] == 13"><div class="smallfont">$vbphrase[donated]</div></if> <br/>
Reply With Quote
  #6  
Old 08-17-2005, 07:08 AM
turksengel turksengel is offline
 
Join Date: Aug 2005
Location: Turkiye
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

working only vertical avatar
Reply With Quote
  #7  
Old 08-17-2005, 12:33 PM
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Location: PA
Posts: 3,872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<if condition="$post['usergroupid'] == 13"><div class="smallfont">$vbphrase[donated]</div></if> <br/>

Try something like this:

<div class="smallfont"><if condition="$post['usergroupid'] == 13">$vbphrase[donated]<br /></if></div>
Reply With Quote
  #8  
Old 08-17-2005, 05:18 PM
bi11i's Avatar
bi11i bi11i is offline
 
Join Date: Aug 2004
Location: Portland, OR
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I finally had to use this, nothing else would work:
Code:
<if condition="is_member_of($userinfo, XX)"><div class="smallfont"><strong>$vbphrase[mynewphrase]</strong></div></if><br/>
But that does! (Thanks for the help!)
Reply With Quote
  #9  
Old 09-09-2005, 02:01 AM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 09-11-2005, 10:08 PM
Quillz's Avatar
Quillz Quillz is offline
 
Join Date: Jan 2005
Location: Los Angeles, CA
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a nice mod, but couldn't user ranks accomplish the exact same thing, especially if you apply a textual rank? Or is this something different?
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 11:09 PM.


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.04916 seconds
  • Memory Usage 2,298KB
  • Queries Executed 23 (?)
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
  • (2)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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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