Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Custom Usernames Details »»
Custom Usernames
Version: 1.00, by AllenSam AllenSam is offline
Developer Last Online: Feb 2022 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.6.8 Rating:
Released: 09-06-2007 Last Update: Never Installs: 7
Uses Plugins
 
No support by the author.

This is a very simple modification that involves a simple plug-in. I'm sure almost everyone already knows how to do this, but I've had a few people who are new to vBulletin ask me how to do this, so I thought I would post it up for other people like that to find.

With this plug-in, you can mask any user's username with a custom name. You can even have an image as a name.

Set the hook location to fetch_musername and use the following code:

PHP Code:
if ($user['userid']==1){
    
$user['musername'] = "<b><i><u><font color=\"#005599\">AllenSam</font></u></i></b>";

Change the 1 to the user's userid and change the html within the quotes to anything you want your name to be. To use an image you would put:

PHP Code:
if ($user['userid']==1){
    
$user['musername'] = "<img src=\"imageurl.gif\" border=\"0\">";

Make sure you add \'s before any quotes you use within the HTML, or it will result in an error. You can also use single quotes.

If you don't want to make a single plug-in for each user, you can put them all in the same plug-in like this:


PHP Code:
if ($user['userid']==1){
    
$user['musername'] = "<b><i><u><font color=\"#005599\">AllenSam</font></u></i></b>";
}
if (
$user['userid']==2){
    
$user['musername'] = "<img src=\"imageurl.gif\" border=\"0\">";
}
if (
$user['userid']==3){
    
$user['musername'] = "<blink><sub>BillyBob</sub></blink>";

Show Your Support

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

Comments
  #12  
Old 09-08-2007, 09:12 AM
Spank Spank is offline
 
Join Date: Jan 2007
Location: Scotland
Posts: 809
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^ I suppose so people can change their username and you can keep track of who everybody is.
Reply With Quote
  #13  
Old 09-08-2007, 08:07 PM
FreshFroot's Avatar
FreshFroot FreshFroot is offline
 
Join Date: Jul 2005
Posts: 770
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah, but there are addons to request or change usernames

As for keeping track? technically only admins would know, what the users unmasked name is..?
Reply With Quote
  #14  
Old 09-09-2007, 01:11 AM
corbin joshua's Avatar
corbin joshua corbin joshua is offline
 
Join Date: Feb 2006
Location: Illinois
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Sammage, this is me - Nightmare!
Reply With Quote
  #15  
Old 09-09-2007, 03:44 AM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There was a Username History Mod that allowed Users to change their Username and it kept a History of the last x Usernames the user had, and had time limits etc built into it, but I'm not sure if it was updated to the latest vB version...

Just so you are aware, you will need to replace the "username" value with an unformatted version of the new username as well as the "musername" value, but to do that you will also need to change the location of where the plugin is activated

Chris
Reply With Quote
  #16  
Old 09-09-2007, 07:50 PM
AllenSam AllenSam is offline
 
Join Date: Jul 2005
Location: Illinois
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FreshFroot View Post
what's the point of masking a username? why not just change it?
Quote:
Originally Posted by Spank View Post
^ I suppose so people can change their username and you can keep track of who everybody is.
Quote:
Originally Posted by FreshFroot View Post
yeah, but there are addons to request or change usernames

As for keeping track? technically only admins would know, what the users unmasked name is..?


The point of this isn't to mask your username with another username, it's meant to allow users to use custom formatting or images. For example, instead having AllenSam, I could have AllenSam and someone with the username Zero could use this image as their username:




Quote:
Originally Posted by Iskib View Post
To bad there wasn't a mod that would let each user do this on there from usercp
Yeah, that's probably possible, but then people could abuse it and mask their name with stupid stuff and it would be hard to keep track of who everyone is, like everyone has been saying in previous posts.
Reply With Quote
  #17  
Old 09-11-2007, 04:43 AM
FreshFroot's Avatar
FreshFroot FreshFroot is offline
 
Join Date: Jul 2005
Posts: 770
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this hack reminds me of vbplaza... with the username changes to image or different formats.
Reply With Quote
  #18  
Old 11-29-2007, 02:33 PM
music legend music legend is offline
 
Join Date: Mar 2006
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any updates to this??
Reply With Quote
  #19  
Old 11-29-2007, 03:31 PM
Evolution06 Evolution06 is offline
 
Join Date: May 2006
Location: California
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think this is what Zero Tolerance uses on his site only with the bb code color.. Nice hack.
Reply With Quote
  #20  
Old 11-30-2007, 11:58 PM
Derek Chai Derek Chai is offline
 
Join Date: Aug 2007
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So where do we put this? How do you add fonts etc..
Reply With Quote
  #21  
Old 12-01-2007, 06:53 PM
AllenSam AllenSam is offline
 
Join Date: Jul 2005
Location: Illinois
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can use basic HTML to change the font and format.
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 05:28 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.09133 seconds
  • Memory Usage 2,315KB
  • Queries Executed 25 (?)
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
  • (3)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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