PDA

View Full Version : Custom Username/User title colour hack.


Nebby
06-02-2003, 12:33 AM
Someone At VB.com asked me for thisHERE (http://www.vbulletin.com/forum/showthread.php?threadid=72504) Seeing as i wrote it up for him, i thought i might as well submit it here.


Custom Username/User title colour hack.

1. Go to Admin CP,
2. Go to Add under "user profile fields"
3. Name it Username Colour, or something appropriate
4. The description
5. Maximum input set to 7 (for something such as #000000)
6 Field lengh 7
7. Display order whatever you wish
8. Field Required - No
9. Field Hidden on profile. set you Yes if you want it editable by user, no if editable by Admin
10. Field Editable by user. set you Yes if you want it editable by user, no if editable by Admin
11. Save
12. Hover over the link for it and get the Profile Field ID

13. go to modify under "Templates" and expand list
14. Expand "Postbit Templates"
15. Edit "postBit"

--FOR USERNAME COLOUR--

1. Find "$post[username]"
2. RIGHT BEFORE Add the following:

<font color="$post[fieldX]">

Where X = the Profile Field ID

3. RIGHT AFTER $post[username] add </font>

Save.

--FOR RANK COLOUR--

1. Find "$post[usertitle]"
2. RIGHT BEFORE Add the following:

<font color="$post[fieldX]">

Where X = the Profile Field ID

3. RIGHT AFTER $post[usertitle] add </font>

Save.

Then just edit the users Font colour to what you want, or if you enabled the user to do it, they can just goi to userCP and enter it.
Things such as "white" and "green" etc can also be used if you can't be bothered to find the HTML code ;)

(SideNote: This can be applied to anything anywhere, just edit the appropriate template)

Nebby
06-02-2003, 12:42 AM
Oh well, it appears a couple of others have made exactly the same hack.

Please don't flame me =/

kaotic
06-02-2003, 01:01 AM
lol, np. That's actually very creative, but it's not really a "hack" either. :p Nice idea, though.

Nebby
06-02-2003, 01:11 AM
It involves Editing of templates, i class that as i hack, but i don't know if anyone else would ;)

Link14716
06-02-2003, 03:51 AM
This is not a hack, it is a template edit.

Nice job though. I has been done millions of times, but who cares. ;)

Erwin
06-02-2003, 04:08 AM
Not a hack, moving to Template Mods. (btw, this has been done many times over anyway).

sammyb40
06-08-2003, 10:21 AM
I tried that and got errors, what I do wrong ?

Tony G
06-09-2003, 10:48 AM
What kind of errors? Something not appearing etc.?

mx3
06-22-2003, 06:24 PM
I've done this at my forums, but i've extended it. I got it to work with the store hack's glow, which is easy....but i also have other fields that will change their font color, their post background color, etc...All separate fields, of course :D

Joel Llewellyn
07-08-2003, 07:57 PM
*Adds in* I've seen this before, and I just added it to my new forums; and I might add it somehow into the arcade soon - or atleast try :D