Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Custom Username colours Details »
Custom Username colours
Mod Version: 1.00, by shaunceb (Member) shaunceb is offline
Developer Last Online: Apr 2010 I like it Show Printable Version Email this Page

vB Version: 3.8.3 Rating: (2 votes - 3.50 average) Installs: 22
Released: 10 Aug 2009 Last Update: 10 Aug 2009 Downloads: 178
Not Supported Template Edits Re-usable Code Translations  

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


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

and replace with

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

Change the x for your field id.


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:


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

Change the A, B, C to your field id and the 1, 2, 3 to the usergroups you want to allow this for

Select the userfield_wrapper and replace that with the following:


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

Change the A, B, C to your field id and the 1, 2, 3 to the usergroups you want to allow this for

My coding abilities at best can be described as amateur but I'll try to help with any problems.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	Untitled.jpg
Views:	938
Size:	4.5 KB
ID:	103059   Click image for larger version

Name:	Untitled1.jpg
Views:	1585
Size:	21.9 KB
ID:	103060  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 10 Aug 2009, 11:02
Mysterious2207 Mysterious2207 is offline
 
Join Date: Oct 2008
Pictures please.
This might be useful.
Reply With Quote
  #3  
Old 11 Aug 2009, 12:27
RileyFreeman RileyFreeman is offline
 
Join Date: Aug 2009
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.
Reply With Quote
  #4  
Old 11 Aug 2009, 12:42
shaunceb shaunceb is offline
 
Join Date: May 2009
Originally Posted by RileyFreeman View Post
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.
I would imagine the max number you can use is infinite and restricted by how many you actually want to use.


To make the names bold, just replace the first $post[musername] with <b>$post[musername]</b>
Reply With Quote
  #5  
Old 11 Aug 2009, 13:00
RileyFreeman RileyFreeman is offline
 
Join Date: Aug 2009
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
Reply With Quote
  #6  
Old 11 Aug 2009, 22:08
KeyHunterz's Avatar
KeyHunterz KeyHunterz is offline
 
Join Date: Mar 2008
nice hack, thanks alot !
__________________
www.GamerzTrust.com
GamerzTrust.com | The biggest free premium database of cheats,reviews, virtual items and much more! Opening August 12th 2009
Reply With Quote
  #7  
Old 11 Aug 2009, 22:42
RileyFreeman RileyFreeman is offline
 
Join Date: Aug 2009
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
Reply With Quote
  #8  
Old 11 Aug 2009, 23:16
topranger's Avatar
topranger topranger is offline
 
Join Date: Sep 2007
^ you have done this part wrong


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

Reply With Quote
  #9  
Old 11 Aug 2009, 23:29
RileyFreeman RileyFreeman is offline
 
Join Date: Aug 2009
Originally Posted by topranger View Post
^ you have done this part wrong


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


How do I fix it?
Reply With Quote
  #10  
Old 12 Aug 2009, 08:28
shaunceb shaunceb is offline
 
Join Date: May 2009
Originally Posted by RileyFreeman View Post
How do I fix it?
Find the userfield_wrapper template, delete the contents and paste this in. Replace the # with the profile id of your box and replace * with the usergroup of your paid subscribers.


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

My bad for not paying attention. This is what you need.

Last edited by shaunceb; 12 Aug 2009 at 16:17.
Reply With Quote
  #11  
Old 12 Aug 2009, 14:36
RileyFreeman RileyFreeman is offline
 
Join Date: Aug 2009
Originally Posted by shaunceb View Post
Find the userfield_wrapper template, delete the contents and paste this in. Replace the # with the profile id of your box and replace * with the usergroup of your paid subscribers.


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


The following error occurred when attempting to evaluate this template:

Parse error: syntax error, unexpected '*' in ********************************************'d code on line 1

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.



i blocked out the stuff with stars cuz i dont know if its private or not
Reply With Quote
  #12  
Old 13 Aug 2009, 01:35
RileyFreeman RileyFreeman is offline
 
Join Date: Aug 2009
okay well i entered it and didnt get the error but its still showing it for non paying users.

below is what i entered. paid members are 9



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

Reply With Quote
  #13  
Old 07 Sep 2009, 14:28
DynaMow DynaMow is offline
 
Join Date: Jun 2009
Real name: Craig
In his instructions it says enter your color choices in the options box.



I do not see no stinkin options box!!!!!!!!!




Everytime I try to add a hack of any kind there is always a problem for me



and its always me, nevermind I figured out what I was doing wrong

Last edited by DynaMow; 07 Sep 2009 at 15:07.
Reply With Quote
  #14  
Old 07 Sep 2009, 15:12
New Joe's Avatar
New Joe New Joe is offline
 
Join Date: May 2009
It didn't work, the colors of a user name don't change.
Do you have to do STEP 3 as I didn't?
Reply With Quote
  #15  
Old 07 Sep 2009, 15:52
New Joe's Avatar
New Joe New Joe is offline
 
Join Date: May 2009
I did follow and edit as it says and put in the right field id. I do use Version 3.8.2 but I don't see why that should matter.
Does anyone have this working if so any problems like myself?
Reply With Quote
Reply


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

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 22:16.

Layout Options | Width: Wide Color: