vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=134)
-   -   Admin Specific Color text (https://vborg.vbsupport.ru/showthread.php?t=90479)

jag-docjay 03-02-2005 10:00 PM

Admin Specific Color text
 
I hope this goes here. If not please move. On my forum I have more then 1 Admin usergroup and I like the way it looks all Admin posts are a different color then the users. It took me awhile to find and get this to work with more then 1 usergroup and not for everyone. So here it is.


I have looked for this for the last 3 days. I have more then 1 admin usergroup and this is what I did.


You can do this by creating a new class and then making this change to your postbit templates.


replace:



Code:

<div>$post[message]</div>


with:

Code:

<if condition="is_member_of($post,xx)or is_member_of($post,xx)or is_member_of($post,xx)or is_member_of($post,xx)"><div class="adminclass">$post[message]</div>

Changing "xx" for the specific usergroups your looking for.


I ctreated a new class like this.


Style Manager,All Style Options, and in Additional CSS Definitions I added this bit of code:

Code:

/* ***** adminclass ***** */
.adminclass { color: #1C86EE; font: 11px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; }


Now all my admins post in a cool blue color.

Allan 03-03-2005 10:29 PM

screen please :)

jag-docjay 03-04-2005 01:37 AM

Link you to my site since im on dial up and its alot easier. Just look at any Admin post. Our names are in Red.

http://www.justallgamers.com/forum

hypnoticpimp 03-26-2005 01:48 PM

can you do this with MOderators as well? if so what do i change


All times are GMT. The time now is 11:17 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.00903 seconds
  • Memory Usage 1,713KB
  • 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
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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