Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vB3 Style Usergroup Based Username Formatting for vB 2.2.x Details »»
vB3 Style Usergroup Based Username Formatting for vB 2.2.x
Version: 1.00, by Storm Storm is offline
Developer Last Online: Mar 2005 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 10-04-2003 Last Update: Never Installs: 7
 
No support by the author.

This is a vB3-style usergroup based username formatting hack. What it does is formats usernames for who's online, currently active users on index, and users browsing forum in fourmdisplay pages. Unlike other colored username hacks, this one will let you specify an HTML open tag and close tag for ANY usergroup from the Admin CP. It also has an automatic-updating who's online legend.

I have this running on my main site which is running vB 2.3.0, but should be compatible with any version 2.2.x or higher.

Future versions of this hack may include things such as memberlist username formatting, postbit username formatting, etc. through the use of its formatusername() function.

For a live demo, visit http://www.rpgpalace.net/forums/index.php or http://www.rpgpalace.net/forums/online.php

Attached below are screenshots of the Who's Online page, also the usergroup edit page in the admin cp, and of course the install instructions

The instructions are pretty straight-forward, estimated install time around 10-15 minutes.

Like when installing any hack, be sure to backup your files and database!! I will not be responsible for any damages that result by the use of this hack.

Please do NOT IM, PM, email, etc.. me for support for this hack, all support will be done in this thread on the basis that I have time. If you have a previous colored user hack installed you may have to uninstall that version first before you install this one.

If you install this hack, please click on the Install button

Show Your Support

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

Comments
  #12  
Old 10-05-2003, 04:24 PM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The only problem with mine is that I never finished it for forumdisplay & WOL (I should really get that done)


Good job nonetheless
Reply With Quote
  #13  
Old 10-05-2003, 08:31 PM
mx3's Avatar
mx3 mx3 is offline
 
Join Date: Nov 2002
Location: prescott valley, az
Posts: 278
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Storm rarely ever releases hacks, when he told me he was releasing this one, I was pretty surprised...everyone cherish the moment because it probably won't happen again lol
Reply With Quote
  #14  
Old 10-05-2003, 08:39 PM
Ryan Ashbrook's Avatar
Ryan Ashbrook Ryan Ashbrook is offline
 
Join Date: Dec 2002
Location: Cincinnati, Ohio
Posts: 422
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've installed your hack and now usergroup.php(3) isn't working in my admin folder.

I'm running vB 2.3.2 with .php3 extensions(I wanted to try somethign new ).

All I get is a blank page.
Reply With Quote
  #15  
Old 10-06-2003, 12:20 AM
Storm's Avatar
Storm Storm is offline
 
Join Date: Mar 2002
Location: RPG Palace Control Panel
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by assassingod
Yeah I saw that but yours doesn't work for any usergroups, just 5,6,7, I figured I'd release this one so users can easily add tags for any group from the edit page. Yours is a nice hack nonetheless though.
Quote:
for the opening tags would it be possible to just add an image ? so u can add usergroup images ? i dont see y not... also is it possible to use this formting in the post bit ?
About the images, they won't work because when its parsed it will be converted into something like <font color=red>Username</font>.. also for images to work, you'd have to have a seperate image for each user you have, then specify the userid of who can use it, I know its possible because I use it on my forum ^^ only a little modifcation to the function is required.

To get the hack to work with postbits, I'd have to figure out the best way to go about that since it can interfere with the Lesane store hack (italic and glowing usernames)...

If anyone wants it to get it to work with the memberlist, just let me know

Quote:
I've installed your hack and now usergroup.php(3) isn't working in my admin folder.

I'm running vB 2.3.2 with .php3 extensions(I wanted to try somethign new ).

All I get is a blank page.
Thats very wierd.. probably check your edits again, if you can't get it to work you can PM your file to me and I'll take a look.
Quote:
READ MY POST !

i get this error on your wol page , mine is fine
Oh, lol, I guess I'll have to take a look at that then ^^
Quote:
Dude... you rock!
It took you like a half an hour to make this!
THANKS!
You're quite welcome Actually I was putting together the install file and after I posted it, I saw your post requesting it, but yeah, the hack itself didn't take me very long to make
Reply With Quote
  #16  
Old 10-06-2003, 05:30 AM
Rein Masamuri's Avatar
Rein Masamuri Rein Masamuri is offline
 
Join Date: Apr 2003
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works in 2.3.2 just fine
corsacrazy: Yes it'll work... just put
[openingtag]<img src="imagename.gif">[/openingtag]

If you want to do what I do (make the username an image all together so I can make a hell of a cool username) then do:
[openingtag]<img src="[/openingtag]
[closingtag].ext">[/closingtag]
and name the images usename.ext
Reply With Quote
  #17  
Old 12-09-2004, 01:07 PM
index index is offline
 
Join Date: Aug 2003
Location: M.E
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi There,

I couldn't get what this ment:
TIP:

If you know a little about PHP, you can apply formatting to usernames in other areas of your board by simply querying for the userid, username, and usergroupid:

$somearray=$DB_site->query_first("SELECT userid, usergroupid, username FROM user WHERE userid=1");

etc... then doing this:

$username=formatusername($somearray);

its quite simple if you know what you are doing and know a little about PHP, just make sure that the $somearray contains the userid, usergroupid, and username.

where to use this:

$somearray=$DB_site->query_first("SELECT userid, usergroupid, username FROM user WHERE userid=1");

and this:

$username=formatusername($somearray);

and vb db, or where

Thanks a lot
Reply With Quote
Reply


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 01:45 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04695 seconds
  • Memory Usage 2,271KB
  • Queries Executed 21 (?)
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
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete