PDA

View Full Version : Custom Profile Field for Username HTML Mark Up


DaveNGU
07-11-2012, 09:05 PM
Anyone got an idea for how I could use a custom profile field to override the HTML mark-up of the username? I tried wrapping it with a div with an !important; but that didn't work. :p

Obviously we could use {vb:raw username} instead of {vb:raw musername} and do several conditionals for each usergroup etc. and then ones for the custom profile fields, but thats just too much. :D

Edit: Just realised I was a little unclear. I want to use several conditionals referencing a custom profile field so users can select the colour of their username.

kh99
07-11-2012, 10:59 PM
Someone else was doing that same thing not too long ago. They were using a plugin on hook fetch_musername to override the markup.

Edit: here's one of the threads: www.vbulletin.org/forum/showthread.php?t=285209. It's for vb3 but I think it's the same for vb4. It's a little complicated because he was trying to cache the markups, but you don't really need to do that.