Log in

View Full Version : User set own username colour


greigeh
02-12-2015, 10:22 PM
I'm trying to use profile fields on my forum to allow users to set their own username colour.

Initially I went about changing the username markup in the Usergroup Manager using if conditions (e.g. <if condition="$bbuserinfo[fieldX]">color:#$bbuserinfo[fieldX]</if>) However, this does not work as the markup is ran through PHP before it reaches the forum hence why it doesnt work.

I therefore tried to carry out the same if condition but in templates, however, it becomes a problem on templates such as forumhome as I cannot use $bbuserinfo[musername] (as this will only display the currently logged in users markup) or $post[musername] (as only works in postbit templates). Therefore I am completely zonked on how to go about doing this.

I'm posting on here to see if anyone knows of any mods/template edits that are already out there that will help me do this? Or coding advice if possible?

Much appreciated.

kh99
02-13-2015, 10:02 AM
Somethin similar was discussed in this thread: https://vborg.vbsupport.ru/showthread.php?t=316399

greigeh
02-15-2015, 03:12 PM
Thank you so much for your help, kh99. This is exactly what I needed.