![]() |
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. |
Somethin similar was discussed in this thread: https://vborg.vbsupport.ru/showthread.php?t=316399
|
Thank you so much for your help, kh99. This is exactly what I needed.
|
All times are GMT. The time now is 05:13 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|