vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - Usernames color (https://vborg.vbsupport.ru/showthread.php?t=148653)

vegeta_99 05-31-2007 10:00 PM

Usernames color
 
Usernames color


Description

This hack display usernames with color everywhere on your forum. Now, usernames appear with color in your forums (forumdisplay), on your index (in last reply column), etc


Informations



Hack Version: 1.1
vBulletin version: vBulletin 3.6



Installation

Product

Import the product "product-color_pseudos.xml". (Plugins & Products >> Manage Products >> [Add/Import Product])

File Edits

In the file "functions_forumlist.php" in the folder "includes", Find:

Code:

eval('$forum[\'lastpostinfo\'] = "' . fetch_template('forumhome_lastpostby') . '";');
Add above:

Code:

($hook = vBulletinHook::fetch_hook('colorname')) ? eval($hook) : false;



Upload:


Upload the file "hooks_colorname" in your forlder ./includes/xml



Evolutions and improvements

Don't hesitate to share your ideas of improvements for this hack.

PS: Thanks Sofia for traduction :up:

EnIgMa1234 06-01-2007 10:45 AM

sorry i dont get what this does. does it allow users to choose their own color?

Sofia 06-01-2007 10:46 AM

Quote:

Originally Posted by EnIgMa1234 (Post 1258955)
sorry i dont get what this does. does it allow users to choose their own color?

No this hack display usernames with color everywhere on your forum. Now, usernames appear with color in your forums (forumdisplay), on your index (in last reply column), etc

EnIgMa1234 06-01-2007 10:47 AM

so its like posting $post[musername] everywhere?

harmor19 06-01-2007 10:48 AM

Take out the file edit.
Make a new plugin to "forumhome_complete" and add your own hook location in the 'code' box.

vegeta_99 06-01-2007 11:00 AM

the file who generate forum and foruminfo on forumhome is function_forumlist.php and not index.php .
The hook "forumhome_complete" can't use consequetly

Mecho 06-01-2007 12:26 PM

Thanks ... works fine :)

Installed

SLY LS1 06-01-2007 01:24 PM

I installed it, but i though the usernames were already coloured ?

------------------------------------------------------------------------------------

Another idea would be a mod where you can set a colour for each user group

I had it on my old forum

Sofia 06-01-2007 01:27 PM

Quote:

Originally Posted by SLY LS1 (Post 1259050)
I installed it, but i though the usernames were already coloured ?

------------------------------------------------------------------------------------

Another idea would be a mod where you can set a colour for each user group

I had it on my old forum

Can set a color for each usergroup? a sort of legend on your index?

Vizionz 06-01-2007 02:28 PM

Quote:

Originally Posted by SLY LS1 (Post 1259050)
I installed it, but i though the usernames were already coloured ?

------------------------------------------------------------------------------------

Another idea would be a mod where you can set a colour for each user group

I had it on my old forum

you can already do that through usergroups ? then just set up a member legend and your done.


All times are GMT. The time now is 10:45 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
  • Page Generation 0.02027 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete