Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Beta Releases
Username Color 2 Details »»
Username Color 2
Version: 1.00, by Hwulex Hwulex is offline
Developer Last Online: Jul 2006 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 10-25-2003 Last Update: Never Installs: 9
Is in Beta Stage  
No support by the author.

_/?\_/?\_/?\_/?\_/?\_/?\_/?\_/?\_/?\_

Username Color Hack
Version 2.0

By Hwulex
[Hwulex(at)Hwulex(dot)com]

?\_/?\_/?\_/?\_/?\_/?\_/?\_/?\_/?\_/?


History
========

Version 1 of this hack was born from a request by an admin on a forum I mod. Well, we were having some problems with usergroups and the colours, so I re-wrote it as version 2. This hack has probably been done before, but it was sitting in my hacks directory, so thought I'd stick it out there.

This is essentially an update to version 1.0 of my hack which changed username's colours dependant on usergroupids. Useful for identifying administrators and moderators on your forum. This version does much the same thing, only with much better code, using vB's functions to identify users instead of by usergroupid (which isn't always consistent between boards).

What this version does, as default, is change the colour of the username next to a user's post. Admin and SuperMods are displayed in red, whilst moderators are (mostly) displayed in blue. I say mostly, because if a thread is being viewed in a forum that the moderator moderates, their name will be enclosed in green square brackets.


Notes
=====

Moderator's names will only display in blue if they are actually listed as moderating a forum (on the forum index).
Admin CP -> Forums & Moderators


Contents
========

Contained in the .zip file are an example image, and instructions.txt (this file)
- instructions.txt -> Instructions for hack installation
- example.gif -> Shows how the hack is used on the forum


Use
===

Tested on vBulletin 2.3.2

Files to modify:
- admin/functions.php

Templates to add:
- usercolor_supadmin
- usercolor_forummod
- usercolor_mod

Templates to modify:
- postbit
- headinclude

Replacements to add:
- {supadmincolor}
- {modcolor}
- {forummodcolor}

Estimated Install Time: 5 minutes


Support:
==========

I am a full time university student reading computing so I'm not always available, but I will offer support as much as possible.


Contact:
=========

Email: vbhacks(at)hwulex(dot)com


Updates
========

None yet.


NB: If you do install this hack, please click on the INSTALL button. You will receive updates in your e-mail whenever I add new features to it. Also post a reply with your comments, they are appreciated.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 10-26-2003, 11:02 PM
Gio Takahashi's Avatar
Gio Takahashi Gio Takahashi is offline
 
Join Date: Jul 2003
Location: Cape Coral
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well I have that kind of hack installed, basicallyt Im looking for a hack that I can use any usergroup name for color, could you explain that?
Reply With Quote
  #3  
Old 10-27-2003, 10:15 AM
Hwulex's Avatar
Hwulex Hwulex is offline
 
Join Date: Mar 2002
Location: Manchester, UK
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you just want to be able to assign a colour to a usergroup, you could do that. Would be an easy hack to make. Is that what you mean?
Reply With Quote
  #4  
Old 10-27-2003, 12:06 PM
Gio Takahashi's Avatar
Gio Takahashi Gio Takahashi is offline
 
Join Date: Jul 2003
Location: Cape Coral
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes that is what I meant.
Reply With Quote
  #5  
Old 10-28-2003, 04:21 AM
morrow's Avatar
morrow morrow is offline
 
Join Date: Mar 2002
Location: NJ
Posts: 370
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've followed the instructions, but I'm not seeing the colors. I am using vbportal, but this should still work when displaying forums, right?
Reply With Quote
  #6  
Old 10-29-2003, 08:53 AM
Hwulex's Avatar
Hwulex Hwulex is offline
 
Join Date: Mar 2002
Location: Manchester, UK
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This hack only takes effect in the postbit template; ie, when you're viewing a thread (see example image in the zip). I guess it could be altered to be forum-wide, but I didn't feel it neccessary when making it for our forum.
Reply With Quote
  #7  
Old 12-04-2003, 12:09 PM
Merjawy's Avatar
Merjawy Merjawy is offline
 
Join Date: Sep 2002
Location: USA
Posts: 505
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just installed it on 2.2.9 works just fine and intime cuz I needed it .. I was gonna mess with it manualy till I seen this...

Thanks mate
Reply With Quote
Reply

Thread Tools

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

Forum Jump


All times are GMT. The time now is 05:05 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.09519 seconds
  • Memory Usage 2,253KB
  • Queries Executed 20 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete