Register Members List Search Today's Posts Mark Forums Read

Thread Tools
Old 11 May 2020, 19:19
RobLeonard's Avatar
RobLeonard RobLeonard is offline
Join Date: Oct 2014
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
Many Thanks,
Robbie P.
Reply With Quote
Old 15 May 2020, 09:18
Dr.CustUmz's Avatar
Dr.CustUmz Dr.CustUmz is offline
Join Date: Aug 2013
Real name: Ryan
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.

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

If you need custom work done please use Dirt RIF CustUmz
Owner of vBTeam
vBulletin 3.8.14 DRC Edition PHP 7.4 Compatible- NOT a null, NOT complete files Requires a legit copy of vBulletin 3.8.11.
Reply With Quote

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add User to Primary Usergroup Based on Value of Custom Profile Field amykhar vBulletin 3.5 Add-ons 129 22 Dec 2013 17:06
Add User to Secondary Usergroup Based on the Value of a Custom Profile Field at Reg. amykhar vBulletin 3.5 Add-ons 133 01 Jan 2013 15:06

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

New To Site? Need Help?

All times are GMT. The time now is 08:12.

Layout Options | Width: Wide Color: