vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Staff / User ranking for postbit! (https://vborg.vbsupport.ru/showthread.php?t=125600)

MentaL 09-01-2006 10:00 PM

Staff / User ranking for postbit!
 
Hi,

What this does is enable a staff or user rank via template modifications, its so simple that it doesnt require no plugin and anybody can do it! For a live demo visit;

Link: http://forum.ragezone.com/outerworld...mg-167121.html

########################################

installation guide

  • Login to your admin panel and go to your postbit template (or legacy)
search

Code:

<div class="vb_postbit_info">$vbphrase[posts]: $post[posts]</div>
and above add

Code:

<!-- MentaL -- Ranking -->
<if condition="$post[usergroupid] == 6"><div class="vb_postbit_info"><b>Rank:</b> Administrator</div></if>
<if condition="$post[usergroupid] == 7"><div class="vb_postbit_info"><b>Rank:</b> Moderator</div></if>
<if condition="$post[usergroupid] == 5"><div class="vb_postbit_info"><b>Rank:</b> Super Moderator</div></if>
<! -- MentaL -- Ranking -->

(now save!) to add additional rankings for users or staff simply edit the XX in red to the usergroup number and the XX blue to the rank title you wish to give them. (as shown below)

Code:

<if condition="$post[usergroupid] == XX"><div class="vb_postbit_info"><b>Rank:</b> XX</div></if>

Enjoy.

MentaL



###############################
Marquee

If you want to have your special usergroups stand out more, why not use a marquee like myself...

Link: http://forum.ragezone.com/post1549928.html

To do this simply use a code as follows


Code:

<if condition="$post[usergroupid] == 6"><div class="vb_postbit_info"><MARQUEE BEHAVIOR=ALTERNATE><b>Rank:</b> Administrator</div></if></marquee>

Code:

<MARQUEE BEHAVIOR=ALTERNATE> Ranking </marquee>

######################################

Coloured rankings!!


if you check here you notice that i am using coloured username markups, you can match that colour to the ranking pretty easy!

http://forum.ragezone.com/outerworld...mg-167121.html

Here is an example code

Code:

<if condition="$post[usergroupid] == 5"><div class="vb_postbit_info"><b>Rank:</b> <font color="#CE1800">Super Moderator</font></div></if>

Kmurray 09-02-2006 10:31 PM

was looking for something like this, thanks

MentaL 09-03-2006 12:19 AM

Yeah me to, so i made it :)

MentaL 09-06-2006 10:22 AM

Added marquee info.

principino1984 09-06-2006 07:06 PM

thats how it works for me:

Code:

<if condition="$post['usergroupid'] == 6"><div class="post_field"><MARQUEE BEHAVIOR=ALTERNATE><b>Rank:</b>: Admin</div></if>
<if condition="$post['usergroupid'] == 5"><div class="post_field"><strong>Rank</strong>: SuperModerator</div></if>
<if condition="$post['usergroupid'] == 7"><div class="post_field"><strong>Rank</strong>: Moderator</div></if>


Marco

bandare 09-07-2006 03:16 PM

I cant find the line in the postbit to know where to add the info... I am using 3.6 legacy

bandare 09-07-2006 03:18 PM

I cant find where to add it. If I look in postbit_legacy, it says not found, to the code. I am using 3.6

MentaL 09-07-2006 09:56 PM

copy ur template code here and ill have a look.

MentaL 09-11-2006 02:09 PM

pmed u the code.

Netinternet 09-11-2006 05:00 PM

good thanx.


All times are GMT. The time now is 02:02 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.01141 seconds
  • Memory Usage 1,739KB
  • 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
  • (7)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete