vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Custom Username/User title colour hack. (https://vborg.vbsupport.ru/showthread.php?t=53713)

Nebby 06-02-2003 12:33 AM

Custom Username/User title colour hack.
 
Someone At VB.com asked me for thisHERE 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


All times are GMT. The time now is 10:06 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00972 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete