![]() |
Custom Username colours
1 Attachment(s)
This is my first posted template edit so be gentle.
It comes courtesy of the username and font hack by gio~logist. This mod will allow you to define a list of colours for your users to pick from instead of them having to use hex codes. There is also the option of just letting particular user groups use this. STEP 1 Goto User Profile Fields > Add new user profile field. Select Single Selection Menu. Title: Custom Username Colour Description: Select a custom username colour. Select your colours from the long list at http://www.w3schools.com/HTML/html_colornames.asp and enter them into the Options box. One colour per line. Once you're done, save it and make a note of the field number STEP 2 Edit your Postbit template. Find PHP Code:
PHP Code:
STEP 3 If you want to display this for certain usergroups; Go to your Styles & Templates and select the userfield_select_option template. Replace it with: PHP Code:
Select the userfield_wrapper and replace that with the following: PHP Code:
My coding abilities at best can be described as amateur but I'll try to help with any problems. |
Pictures please.
This might be useful. |
So I got it working, only problem like I said was the fact not all those colours will work. I will have to go through them to see which ones do and which ones don't. Also have to see what's the max amount of colours you can load. If you know please let me know.
Next are you able to add an option for the names to be in bold? In the screen print you will notice all names that have this are in bold. |
Quote:
To make the names bold, just replace the first $post[musername] with <b>$post[musername]</b> |
Awesome thanks man.
I think whoever does this we should compile a list of what colours work. This I think would be beneficial to everyone. I think we should compile the list and post here |
nice hack, thanks alot !
|
One thing I noticed. My regular users are still able to do it, it just wont have any effect unless they purchase the paid subscription for it. Did I do it wrong or it is not setup for it to be hidden from them until they purchase a paid subscription
|
^ you have done this part wrong
PHP Code:
|
Quote:
How do I fix it? |
Quote:
PHP Code:
|
All times are GMT. The time now is 05:46 PM. |
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:
|