vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Username Color 2 (https://vborg.vbsupport.ru/showthread.php?t=58206)

Hwulex 10-25-2003 09:00 PM

Username Color 2
 
_/?\_/?\_/?\_/?\_/?\_/?\_/?\_/?\_/?\_

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.

Gio Takahashi 10-26-2003 11:02 PM

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?

Hwulex 10-27-2003 10:15 AM

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?

Gio Takahashi 10-27-2003 12:06 PM

yes that is what I meant.

morrow 10-28-2003 04:21 AM

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?

Hwulex 10-29-2003 08:53 AM

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.

Merjawy 12-04-2003 12:09 PM

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


All times are GMT. The time now is 05:17 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.01661 seconds
  • Memory Usage 1,721KB
  • 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
  • (7)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