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 (version 2; completely different) (https://vborg.vbsupport.ru/showthread.php?t=49436)

Brianna 02-26-2003 10:00 PM

Username Alias Hack (version 2; completely different)
 
Note:The structure for this hack is COMPLETELY different from the last one. If you have installed the original Username Alias Hack, please revert the changes you made with those installation instructions first. Go Here to see the old hack's info.

Info: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!

The hack now involves a dropdown list of every previous name, and can be placed anywhere inside of your getinfo template.

Here is an example of this new version:
http://forums.tsa-gaming.com/member....tinfo&userid=1
(Note: this is with some modifications of what I am releasing, but in essence, you see the drop down list there ;))

Also, the Admin CP is completely different. Attached in the next post is a screenshot of what my Admin CP looks like. (This is exactly the same as what I am releasing has) As you will see, the list of previous aliases is displayed, as well as the ability to delete any alias, even the ability to change the current username to an old alias with ease!

Attached is a text file with the updated instructions. If you installed the previous version, REVERT those changes FIRST.

Thanks, and hope you like this one much more ;)





Possible addition in the near future: Admins can see a button next to the alias dropdown list that will allow them to change the username right there to an older alias?

Brianna 02-27-2003 04:13 PM

*Attaching Admin CP Screenshot*

Boofo 02-27-2003 04:30 PM

Instead of a drop down box, how about a pop-up javascript window? It would be a little cleaner and easier to manage. Just a thought.

N9ne 02-27-2003 04:48 PM

Wow, this is a nice hack, however I have PPN's change username hack installed, so I won't be needing this, but those are some nice features you have there, good work, vb.org is getting better and better daily!.

Dean C 02-27-2003 05:39 PM

Yes i agree with Boofo :). A javascript pop-up with a little window might be better :p

Nice hack nevertheless :p

- miSt

Brianna 02-27-2003 06:00 PM

How would a popup window be better? All it means is an extra click when instead it could be right there on the profile, as it is. Sure, you have to click to see all aliases besides the first one, but who's really going to have more than one alias? I put those four aliases in my forums' profile there just for example.

Mephisteus 02-27-2003 09:42 PM

is this easy to adept so it will also add an alias if an user changes it using lesane's store?

Nice hack by the way :)

Brianna 02-28-2003 12:49 AM

Anything regarding integration with the store can found here. (Basically says that I will work on it eventually.)

https://vborg.vbsupport.ru/showthrea...threadid=48468

Dean C 03-02-2003 10:46 AM

It would be better because a drop-down menu is meant to result in some action in the browser. Having it in this case would be pointless. You can't have it pop-up the old usernames because its been changed so i think a pop-up would be nice :)

- miSt

Brianna 03-03-2003 03:50 PM

Okay, I am thus making the dropdown more efficient. How would it sound if the dropdown was also available to allow the user to change their username back to an older one on their own? Will that fulfill the purpose of a dropdown list enough?

Brianna 03-03-2003 05:13 PM

Done. Attached is the update to allow the user to change their name to a previous alias.

NOTE: This is ONLY to change to a previous alias, not change the username entirely. And I am posting the version here instead of updating the database version cos some may not want a user to have that ability...

Dean C 03-03-2003 06:02 PM

Ok i may have misinterpreted this but if they change they're dropdown in their profile it changes back. Surely this leaves the door open for other users to change this users username back?

- miSt

Brianna 03-03-2003 06:36 PM

Nope, it does a check to see that the logged in user is the user who "owns" the profile first.

Try it on my example profile, it will tell you that you do not have permission to access it. However, if I do so while logged in, it will allow me to do so :)

Dean C 03-03-2003 06:58 PM

OK thats fine. Good work :D

- miSt

Ghostsuit 03-04-2003 03:28 PM

Know if this works in 2.3.0 RC3? I've tried installing and nothing happens when I change a username. Any ideas what I've done wrong or does it jsut not work?

Brianna 03-04-2003 06:11 PM

I've never even used 2.3.0, sorry. I used 2.2.8 for this... I am not sure how much a difference in code there is there, but if you found all the stuff it asks you to replace and add above/below, then more than likely it should.. in that case chances are you didn't install it properly..

Hobbes 05-10-2003 11:15 PM

i was told to run

[sql]CREATE TABLE `useralias` ( `userid` INT(10) UNSIGNED DEFAULT '0' NOT NULL, `alias` VARCHAR(50) NOT NULL ); [/sql]

and I got

[sql]Database error in vBulletin Control Panel 2.2.6:

Invalid SQL: CREATE TABLE `useralias` ( `userid` INT(10) UNSIGNED DEFAULT '0' NOT NULL, `alias` VARCHAR(50) NOT NULL );
mysql error: You have an error in your SQL syntax near '; ' at line 1

mysql error number: 1064[/sql]

help?



FIXED!

thanks to Xenon...I R illiterate :(!

Hobbes 05-11-2003 07:30 PM

Quote:

03-04-03 at 10:28 AM Ghostsuit said this in Post #15
Know if this works in 2.3.0 RC3? I've tried installing and nothing happens when I change a username. Any ideas what I've done wrong or does it jsut not work?

Dittoness....i installed this on a 2.2.6...and when i change it in the admin cp, nothing shows.....and nothing shows in the getinfo template either.....

*requests help*

pwwease? :bunny:

Brianna 05-12-2003 06:41 PM

I will install a fresh 2.2.6 (if I have it) sometime soon and install my hack and see if it works, if it does then you more than likely made a mistake on installation. If it doesn't, then I will see what the problem is with this version :) And I will both PM you and post here.

Hobbes 06-02-2003 01:56 AM

Well....you said reinstall it....i did...and I still (1) have nothing show in getinfo....

and (2) nothing happens in admin cp see screenie.....:(!!!!!

Logo 09-27-2004 02:32 PM

hmm same to me...

i can only see the screen above :(


All times are GMT. The time now is 02:13 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.01084 seconds
  • Memory Usage 1,755KB
  • 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)post_thanks_navbar_search
  • (1)printthread
  • (21)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