vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   How To Set Username 'Color/Font/Style' Per Usergroup (https://vborg.vbsupport.ru/showthread.php?t=138613)

Distance 02-05-2007 10:00 PM

How To Set Username 'Color/Font/Style' Per Usergroup
 
Distance's First Official vBulletin Article!!

What it does

The first field is the opening tag. The second field is the closing tag. These tags will be inserted around the user's username like this:

[openning tag]username[closing tag]


Installation

1. Go to your admincp
2. Expand the Usergroups setting group
3. Click on Usergroup Manager
4. Select the usergroup you wish to set the username markup for and select 'Edit Usergroup (id: x) Then click Go

x being the id number of the usergroup

5. You should see an option saying 'Username HTML Markup'

The first box is the start tag, and the seccond box is the end tag.



Examples of the start tag


You can either use standard tags such as:

<b> - Making your username Like this
<i> - Making your username Like this
<u> - Making your username Like this

You can combine any of these for example all three

<b><i><u> Making your username Like This



Or you can use the more advanced way to do it


Like this:

<span style="font-weight: bold;"> - Making your username Like this
<span style="font-style: italic;"> - Making your username Like this
<span style="text-decoration: underline;"> - Making your username Like this

You can combine any of these for example all three

<span style="font-weight: bold; font-style: italic; text-decoration: underline;"> Making your username Like This


Other style options:


Usergroup Colour

<span style="color: red;"> Making your username - Like this



Usergroup Font

<span style="font: Comic Sans MS;"> Making your username - Like this


Usergroup Size

<span style="font: 20px;"> Making your username 20px in size




Once again you can link all these together like this:

<span style="font: 20px Comic Sans MS; color: red;"> Making your username Like this



Or... All style options..

<span style="font: 20px Comic Sans MS; color: red; font-weight: bold; font-style: italic; text-decoration: underline;"> Making your username Like this


*note i cannot show you the size on this page as vBulletin have disabled it on this board for security reasons*


Examples of the End Tag

For every tag you open, you must close it..


So if you have got <span xxxxwhatever >

you must have </span> in the seccond close tag box..


Eg..

Box 1:

<span style="font: Comic Sans MS;><b>

Box 2:

</b></span>



Always remember to close your tags!!



I hope you find this useful.. Cya!!



M_OReilly16 02-21-2007 01:36 AM

Thanks so much for this. I must have overlooked how to change the username colors at least 50 times already. lol!

Distance 02-27-2007 08:38 PM

You cant find it if you dont know what you are looking for :)

odie3 03-25-2007 08:08 PM

Is there a way to do this so different Forum Styles has a different set of colors? Cause what works on one Style [dark] may not work on a different style [lite].

abhimation 04-10-2007 04:37 AM

Can we somehow restrict this to the members list?

I dont want the colors to be shown in the posts.

:confused:

cOuNtErFiET 04-10-2007 06:53 AM

Quote:

Originally Posted by odie3 (Post 1212121)
Is there a way to do this so different Forum Styles has a different set of colors? Cause what works on one Style [dark] may not work on a different style [lite].

yes define a css class then call the class there is a post on here somewhere how to do it so i wont go into how to do it here...serach its here i seen it

Dismounted 04-10-2007 08:57 AM

Quote:

Originally Posted by Distance
Box 1:

<span style="font: Comic Sans MS;><b>

Box 2:

</span></b>

Box 2 should be:
HTML Code:

</b></span>
You NEVER have overlapping tags in HTML.

sonichero 04-11-2007 04:48 AM

Thanks! I never knew you could alter the font :)

http://www.lambdacoremodule.net/foru...lastposter&f=3

Chilling!

UltimateOreo! 04-11-2007 04:59 PM

Whats so bad about overlapping tags? I've never had a problem with them. Just bad technique?

Dismounted 04-12-2007 07:32 AM

It's bad coding practice and in addition to that, it's not specification :).
http://www.w3.org/TR/xhtml1/#h-4.1

Distance 05-10-2007 05:23 PM

Sorry, my mistake.

Edited

ahmednadir 05-12-2007 05:07 AM

I have done this for my administrator group to try:

Originally Posted by Distance
Box 1:

Code:

<span style="font: Comic Sans MS;><b>
Box 2:

Code:

</b></span>
But instead of my username the title of my forum came up (very confused)

Any reason why this is?

I'm using version 3.6.6

thanks

Nadeemjp 09-06-2008 02:19 PM

how can i add user group legend at the end of my forum page?

Attitude5ire 09-07-2008 09:31 AM

Should replace
<i> with <em>
<b> with <strong>


for validation purposes.

Nadeemjp 09-12-2008 12:03 AM

Quote:

Originally Posted by ahmednadir (Post 1246067)
I have done this for my administrator group to try:

Originally Posted by Distance
Box 1:

Code:

<span style="font: Comic Sans MS;><b>
Box 2:

Code:

</b></span>
But instead of my username the title of my forum came up (very confused)

Any reason why this is?

I'm using version 3.6.6

thanks

As far as my experience goes, you are not supposed to put < / b > in the ending codes. just the < / span > should do the trick.

so your ending code should be
Code:

</span>

mrtroybaker 03-10-2009 07:44 PM

Thank you. Very useful.

DF08Said 03-24-2009 08:33 PM

1 Question How do u do Like Username But in Glitter like this http://img300.imageshack.us/img300/8742/70761372.png

Please replay Cuz i need to know..

Noosphere 05-19-2009 06:35 PM

For the slower among us ... I very much like the option of being able to use larger, customized fonts for user names in the posbit, but don't want the changes to carry over to the "who's online" display, which it has done on both my CMPS and forum index. Is there an easy way limit the html changes to the user name display in the postbit?

Merci. :)

0 Seo 0 06-15-2009 12:54 AM

what would be close tag for this <span style="color: red;"> ? kind new to forum.

mme42 06-15-2009 04:12 PM

Quote:

Originally Posted by 0 Seo 0 (Post 1829860)
what would be close tag for this <span style="color: red;"> ? kind new to forum.

Code:

</span>

blackberry 04-27-2011 01:24 PM

aww thank you


All times are GMT. The time now is 07:11 PM.

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.01328 seconds
  • Memory Usage 1,764KB
  • 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
  • (6)bbcode_code_printable
  • (1)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (21)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