vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Username Alias Hack (https://vborg.vbsupport.ru/showthread.php?t=44001)

Brianna 09-26-2002 10:00 PM

Username Alias Hack
 
VERSION 2 IS OUT

http://www.vbulletin.org/hacks/index...ack&hackid=993

ONLY use this thread to get the instructions to revert them if you had installed this version.





Does your forum have a number of admins? Ever look at your forum and see a member with 200+ posts and be like "who is this person? i've seen him/her before, but I don't remember this username" cos they had a name change, and changed their avatar and signature as well? I had this problem a few times. Another administrator changed the member's username and I was stumped. So I had this idea for a hack!

Anyways, here's what it does:

In the User Profile, it will display right beside "Search for user's posts." a list of "Aliases" which is what their previous usernames were, if they were changed at all.

Go here for an example of that (this is my profile at my forum): http://forums.crystaldimensions.com/...tinfo&userid=2

-also-

In the Admin CP, there will be an extra field for updating a User Profile, called "Aliases." You can change the Aliases field, but you don't have to, cos the script I wrote automatically appends the old username to that list of aliases. Also, it detects and deletes duplicate entries. Such as if your username is being changed back to "Person" and it was that before, and is now in the Aliases field, it will automatically be taken out of the aliases list. It does one other thing, it only allows a character limit of 70 characters in the list of aliases, but does not end the list with a chopped up username or a comma, instead it cuts off the end of the list to the last comma. If you update the aliases field manually, and the username at the same time, it will override the auto-update and it will update the aliases field to what you entered yourself.

Attached is a text file of the installation instructions! Hope you like it!

Chris M 09-27-2002 04:47 PM

Wow...

This looks cool:)

Satan

Goldknight 09-27-2002 05:11 PM

I like this hack, good job

/me install because this hack is including support...

darkmaninc 09-27-2002 06:13 PM

what's the proper sql query to add a new field into a existing table ??

Velocd 09-27-2002 06:29 PM

Quote:

Originally posted by darkmaninc
what's the proper sql query to add a new field into a existing table ??
Run this query:
ALTER TABLE user ADD alias varchar(100) not null;

darkmaninc 09-27-2002 06:31 PM

ah yeah doh.... knew there was something i kept missing ....lol
hard to think with a headache...
Thanks Velocd :banana:

Velocd 09-27-2002 06:42 PM

I forgot to mention that this is a pretty cool hack. I might even consider allowing username-changes on my forum now because of it.

Another good addition of a hack to create would be one that logs all the users custom-titles they might have made. I may code this later on tonight if nobody beats me to it ;)

Brianna 09-27-2002 07:07 PM

Thank you everyone, this is my first hack i've ever made ^_^;

Any suggestions of improvement to make it even better, please let me know :D

UltimaKing 09-27-2002 07:14 PM

Very nice!

Brianna 09-27-2002 07:18 PM

oh, and I forgot to mention, a good purpose for manual entering of the alias field is when say a user changes their username to something really similar, but still different, it will auto add to the alias field anyways

like, a user at my forums has "seven" in his username, and he had it changed to "se7en" no real need for "seven" to be in the aliases field, lol


All times are GMT. The time now is 10:30 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.01067 seconds
  • Memory Usage 1,734KB
  • 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)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