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)
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)