Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
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
Rob
__________________
Many Thanks,
Robbie P.
Reply With Quote
  #2  
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.

__________________
I have re-launched vBTeam! No longer will it be a warez site, but an alternative to here. Come Join Us Today!
I like to work with vB3, but if you have a custom request anything vB feel free to PM me!
Reply With Quote
Reply

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 15:14.

Layout Options | Width: Wide Color: