Register Members List Search Today's Posts Mark Forums Read

Reply
 
Article Options
How To Set Username 'Color/Font/Style' Per Usergroup
Distance
Join Date: Jul 2006
Posts: 725

Boston, Uk
by Distance Distance is offline 06 Feb 2007

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!!



Last edited by Distance; 10 May 2007 at 19:22..
Views: 13906
Reply With Quote
Comments
  #2  
Old 21 Feb 2007, 03:36
M_OReilly16 M_OReilly16 is offline
 
Join Date: Feb 2006
Thanks so much for this. I must have overlooked how to change the username colors at least 50 times already. lol!
Reply With Quote
  #3  
Old 27 Feb 2007, 22:38
Distance's Avatar
Distance Distance is offline
 
Join Date: Jul 2006
Real name: Josh
You cant find it if you dont know what you are looking for
__________________
My software never has bugs. It just develops random features.

Distance

Reply With Quote
  #4  
Old 25 Mar 2007, 22:08
odie3 odie3 is offline
 
Join Date: Mar 2007
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].
Reply With Quote
  #5  
Old 10 Apr 2007, 06:37
abhimation's Avatar
abhimation abhimation is offline
 
Join Date: Dec 2006
Real name: Abhishek
Can we somehow restrict this to the members list?

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

Reply With Quote
  #6  
Old 10 Apr 2007, 08:53
cOuNtErFiET cOuNtErFiET is offline
 
Join Date: Feb 2006
Originally Posted by odie3 View Post
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
Reply With Quote
  #7  
Old 10 Apr 2007, 10:57
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Real name: Hanson
Originally Posted by Distance
Box 1:

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

Box 2:

</span></b>
Box 2 should be:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

You NEVER have overlapping tags in HTML.
__________________
Former vBulletin.org Staff Member

View My Modifications
29 Releases and Counting... Latest Modification: dmActivityStream - vBookie Integration (4.x)

Please do not PM me to ask for support - please use the relevant thread or forum.
Reply With Quote
  #8  
Old 11 Apr 2007, 06:48
sonichero sonichero is offline
 
Join Date: Jan 2007
Thanks! I never knew you could alter the font

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

Chilling!
Reply With Quote
  #9  
Old 11 Apr 2007, 18:59
UltimateOreo! UltimateOreo! is offline
 
Join Date: Nov 2006
Location: Missouri
Real name: Andrew Mendez
Whats so bad about overlapping tags? I've never had a problem with them. Just bad technique?
Reply With Quote
  #10  
Old 12 Apr 2007, 09:32
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Real name: Hanson
It's bad coding practice and in addition to that, it's not specification .
http://www.w3.org/TR/xhtml1/#h-4.1
__________________
Former vBulletin.org Staff Member

View My Modifications
29 Releases and Counting... Latest Modification: dmActivityStream - vBookie Integration (4.x)

Please do not PM me to ask for support - please use the relevant thread or forum.
Reply With Quote
  #11  
Old 10 May 2007, 19:23
Distance's Avatar
Distance Distance is offline
 
Join Date: Jul 2006
Real name: Josh
Sorry, my mistake.

Edited
__________________
My software never has bugs. It just develops random features.

Distance

Reply With Quote
  #12  
Old 12 May 2007, 07:07
ahmednadir ahmednadir is offline
 
Join Date: Feb 2007
Real name: Ahmed Rahimtulla
I have done this for my administrator group to try:

Originally Posted by Distance
Box 1:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Box 2:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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
Reply With Quote
  #13  
Old 06 Sep 2008, 16:19
Nadeemjp Nadeemjp is offline
 
Join Date: Aug 2008
Real name: Nadeem Qadir
how can i add user group legend at the end of my forum page?
Reply With Quote
  #14  
Old 07 Sep 2008, 11:31
Attitude5ire's Avatar
Attitude5ire Attitude5ire is offline
 
Join Date: Feb 2006
Should replace
<i> with <em>
<b> with <strong>


for validation purposes.
__________________
New Style Satinacious Released
DigitalVB.com
simply beautiful! vBulletin designs
Join us on Facebook

Reply With Quote
  #15  
Old 12 Sep 2008, 02:03
Nadeemjp Nadeemjp is offline
 
Join Date: Aug 2008
Real name: Nadeem Qadir
Originally Posted by ahmednadir View Post
I have done this for my administrator group to try:

Originally Posted by Distance
Box 1:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Box 2:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Family Bunker
Reply With Quote
Reply

Similar Article
Article Author Type Replies Last Post
Users Choose Username Font/Color Posts Gio~Logist vBulletin 3.5 Template Modifications 61 15 Mar 2010 06:53
Username Font Color Hack(in postbit) g-force2k2 vBulletin 2.x Full Releases 67 17 Aug 2005 06:57
Username Font Color - Store v3.0 MindTrix vBulletin 2.x Full Releases 23 23 Jan 2004 12:19



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Article Options

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


New To Site? Need Help?

All times are GMT. The time now is 14:09.

Layout Options | Width: Wide Color: