vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   Usersgroups Legend For Each Style (https://vborg.vbsupport.ru/showthread.php?t=285593)

Merjawy 07-14-2012 10:00 PM

Usersgroups Legend For Each Style
 
1 Attachment(s)
There are few mods for that, but this one is different

This mod will allow you to change the usergroups colors based on each style, so if you use more than one style, the colors might not look right on some styles.

Inspired by a user's request and Matthew Gordon. Thanks Matthew

Install instructions:

Step 1

Edit each usergroup and use it's title (use whatever title you prefer)

In the Username HTML Markup 1st box:
PHP Code:


<span class="Admin"


In 2nd box:

PHP Code:


</span


Repeat the steps for each usergroup using the title for the usergroup.

Step 2

Edit additional.css template and add this code to it (this is just an example)

PHP Code:


.Admin {
    
color#FF4400;
}

.
SMod {
    
color#22229C;
}

.
Mod {
    
color#738FBF;
}

.
Registred {
     
colorblack;
}

.
Awaiting_Confirmation {
      
colorpurple;
}

.
Guest {
       
colorblack;


Use the above titles or use your own as long they match what you put in the usergroups settings in step 1

Use any color you like to wrok with your styles and you can use the hex code of the lable I used both in this example.

Change the colors for each style as you see fit.

Hornstar 07-16-2012 08:40 PM

Thanks for this.

Merjawy 07-16-2012 08:53 PM

Enjoy and thanks

vbenhancer 07-21-2012 12:51 AM

VERY BAD CSS VARIABLES... sorry but learn a little css before posting something like that.

Merjawy 07-21-2012 02:00 AM

Thanks

Paul M 07-21-2012 11:58 PM

Moved to articles, this is really a "how to".

As vbenhancer mentions, those css class names are bad, dont use dots, use underscores. I would probably shorten them somewhat as well.

Merjawy 07-22-2012 01:22 AM

Thanks Paul... I updated the code

abdobasha2004 07-24-2012 04:13 AM

very nice and simple

Merjawy 07-25-2012 04:43 AM

Thanks


All times are GMT. The time now is 11:57 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.01283 seconds
  • Memory Usage 1,724KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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