Log in

View Full Version : How do I change the color of the + or BUDDY status


dai-kun
02-08-2009, 02:20 AM
Hi,

Is it possible to change the color of the + next to a username to make it more obvious? Thanks

Lynne
02-08-2009, 03:15 AM
You could change it in the forumdisplay_loggedinuser template. Just put the css you want around $loggedin[buddymark].

dai-kun
02-08-2009, 03:35 AM
Thanks for the advise :)

Can you give me an example please?
What code do I use to wrap around it?

Lynne
02-08-2009, 03:44 AM
Well, if you want it red, then something like

<span style="color:red">$loggedin[buddymark]</span>

Although it might be better to do a condition:
<if condition="$loggedin[buddymark]"><span style="color:red">$loggedin[buddymark]</span></if>

(not tested)

dai-kun
02-08-2009, 03:49 AM
Acutally I tried doing both before you posted it..
Is there cache or something I need to clear?
The only cache I have is vBOptimise and I flushed the cache but my buddies name don't change on the usersonline.. weird.

Lynne
02-08-2009, 03:56 AM
The forumdisplay_loggedinuser template is only one of them that is used. You should probably do a Search in Templates for the other couple of online user templates - search for buddymark.

dai-kun
02-08-2009, 04:03 AM
OK thanks! It appears I changed the template belonging to FORUMDISPLAY instead of FORUMHOME.. so embarrassed!!!!!! thanks

Lynne
02-08-2009, 04:10 AM
Well, that was my fault - it's the first template I saw in my list that I recognized as one for the logged in users. I should have looked to see which one I grabbed a bit more closely.

Glad you got it working.