User set own username colour
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.
|