The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Custom username colour based on profile field
Hi all,
I have searched long and hard on here but cannot find the answer to my question. I want to create a plugin on the fetch_musername hook which changes the username colour if my VIP usergroup have set the option for it. VIP usergroup ID: 10 Profile field Id: 5 Profile field is limited to 7 characters which is the hex code and the hash. If a custom colour is selected, this should be shown globally across the forum and not just on the users posts. This should cover staff page, profiles, etc. Many thanks Rob |
#2
|
||||
|
||||
I cant relly play around with the plugins right now, but an idea of what you'll want to replace username with change both instances of USERNAME to the username variable, and give this a try in postbit template.
HTML Code:
<if condition="$post['usergroupid'] == 10"> <if condition="$userinfo['field7']"> <span style="color: #$userinfo['field7']"> USERNAME </if> <else /> Username </if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|