Log in

View Full Version : Text output color from profile field


Xanlamin
12-04-2013, 07:41 PM
what I am wanting to do is based on what word is selected (Single-Selection Menu) When that word is shown it is a specified color.

I have a Roster page where I show the Username / Rank / Status / and so on

Their Status is either ACTIVE, INACTIVE, or AWOL. I want ACTIVE to be green, INACTIVE to be yellow and AWOL to be red.

How to do this using the profile field?

I installed the parse bbcode in profile fields plugin but it's not doing it's job.

Any help would be grateful.

Xanlamin
06-20-2014, 05:20 AM
Anyone?

kh99
06-20-2014, 08:48 AM
I don't think it's easy to chage the profile field values to be in color. But what you could do is use 'if' statements to decide what html to use when it's displayed. I'm notsure from your post what's going on, but if you're using a template for your roster page, then you'd use a series of vb:if tags. If it's in php; then of course it's just an 'if' statement. If you could explain more about how your roster page is created, we might be able to give you a code example.