Log in

View Full Version : How I add color to user in a usergroup


prince188
10-01-2008, 08:15 AM
Hello,
i would like to know what mod or what code i need to add.
so like the usernames that are in the admin usergroup will be colored red.
because now it's only color the sub under the username.

Marco van Herwaarden
10-01-2008, 08:22 AM
See the manual: Adding or Editing a Usergroup (http://www.vbulletin.com/docs/html/usergroup_add)

You will need to set the HTML Markup for the usergroup.

prince188
10-01-2008, 08:28 AM
i did set HTML Markup and it colored my subtitle under the username and not the user name itself

Marco van Herwaarden
10-01-2008, 09:07 AM
What values did you enter?

prince188
10-01-2008, 09:45 AM
<font color='red'>admin</font>

Marco van Herwaarden
10-01-2008, 09:56 AM
In the HTML Markup for the usergroup, put "<font color='red'>" in the first field (opening tag), and "</font>" in the 2nd (closing tag).

prince188
10-01-2008, 10:22 AM
that what i did and still the same resualt

Marco van Herwaarden
10-01-2008, 10:52 AM
Please post a screenshot of this setting.

prince188
10-01-2008, 11:49 AM
ok my system is at hebrew so the tags look upside down but it ok
http://i33.tinypic.com/28jl0g2.jpg
i hope this will help

Sycoloco1212
10-01-2008, 02:07 PM
should be <font color="red"> and second one </font>

the stig
10-01-2008, 03:15 PM
admin cp ----> usergroup manager ------> administrators -----> first box <span style="color: red;"> 2nd box </span>

It works perfectly.

prince188
10-01-2008, 08:32 PM
admin cp ----> usergroup manager ------> administrators -----> first box <span style="color: red;"> 2nd box </span>

It works perfectly.

didn't work and what wierd is that i got another forum and there it's working

Lynne
10-01-2008, 08:47 PM
Some reasons it wouldn't work:
- the users are in a secondary usergroup and that markup takes precedence
- the template is modified to not use the username markup
- a modification is interferring with the markup

Check out those three things.

Winterworks
10-01-2008, 08:49 PM
By looking at the screenshot, you did it wrong.

The 2nd tag is </font>, not <font/>

And get rid of the unneeded 's

Lynne
10-01-2008, 08:54 PM
Also looking at the screen shot, red doesn't have quotes on both sides of it like it should, you only have them on one side ('red instead of 'red', or more properly "red" - although even more properly is the css version posted above by the_stig).

prince188
10-01-2008, 11:14 PM
Some reasons it wouldn't work:
- the users are in a secondary usergroup and that markup takes precedence
- the template is modified to not use the username markup
- a modification is interferring with the markup

Check out those three things.
the first one is not.
but the 2nd and the 3rd maybe
but how can i check it?
By looking at the screenshot, you did it wrong.

The 2nd tag is </font>, not <font/>

And get rid of the unneeded 's

Also looking at the screen shot, red doesn't have quotes on both sides of it like it should, you only have them on one side ('red instead of 'red', or more properly "red" - although even more properly is the css version posted above by the_stig).

i know that it dosent suppoesd to be like that but because the system is translate to hebrew.
and from my exprince with it on other forum it's should work and i tried to like you suggest to be and it doesnt have any affect

Lynne
10-02-2008, 03:05 AM
So because it is in hebrew, you can get away with going <font color='red> instead of <font color='red'>? That is very strange and doesn't seem right, but if you say so....

As for whether it is the template, create a new style with no parent - Styles & Templates > Style Manager > Add New Style > no parent - then browse the site using that totally default vbulletin style - are the usernames correctly marked up then?

And for whether it's a modification, try disabling your plugins and see if you still have this problem.
Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php

define('DISABLE_HOOKS', true);