Welcome, Guest. Please Login or Register.
November 26, 2024, 02:50:33 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  English User Help  |  English Help  |  Changing username « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Changing username  (Read 662 times)
Søren Bjerg
Noobie
*
Posts: 17


\o/

ICQ - 28642382britneyspearsdk@hotmail.com WWW
Changing username
« on: May 26, 2003, 06:33:55 PM »
Reply with quote

I was wondering if it's possible to change one's username - not display name - without it having critical effects to the forum/making the forums act like it had never happened (with profile links in messageindex still working)?

Would like to get rid of the 'admin' username, and keep the profile settings, posts, etc. - and not registering a new account and making it administrator.
Logged
Peter Duggan
Llama Chameleon
Global Moderator
YaBB God
*****
Posts: 1793


You come and go...

WWW
Re:Changing username
« Reply #1 on: May 26, 2003, 06:50:49 PM »
Reply with quote

Changing the username in phpMyAdmin is certainly possible (I've done it before) but, if it's an established board, you might have to run queries on a number of tables...
« Last Edit: May 26, 2003, 07:11:56 PM by Peter Duggan » Logged

David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:Changing username
« Reply #2 on: May 26, 2003, 07:10:01 PM »
Reply with quote

You'd have to update these tables

messages
instant_message
and probabally some log tables
Logged

Peter Duggan
Llama Chameleon
Global Moderator
YaBB God
*****
Posts: 1793


You come and go...

WWW
Re:Changing username
« Reply #3 on: May 26, 2003, 07:19:41 PM »
Reply with quote

Quote from: David on May 26, 2003, 07:10:01 PM
You'd have to update these tables

messages
instant_message
and probabally some log tables

And members!
Logged

Peter Duggan
Llama Chameleon
Global Moderator
YaBB God
*****
Posts: 1793


You come and go...

WWW
Re:Changing username
« Reply #4 on: May 26, 2003, 07:26:59 PM »
Reply with quote

Quote from: Peter Duggan on May 26, 2003, 07:19:41 PM
And members!

Possibly also boards, if you've appointed yourself as a moderator to any of them! ::)

But I think the log tables all use IDs rather than names...
Logged

Søren Bjerg
Noobie
*
Posts: 17


\o/

ICQ - 28642382britneyspearsdk@hotmail.com WWW
Re:Changing username
« Reply #5 on: May 26, 2003, 07:31:31 PM »
Reply with quote

Hmm... suddenly seems like quite a process... tried changing the username on a local copy of my forums, and now it's complaining about my password.

Did try assembling password relevant code and profile information into a page so I could dump a new hash into the db... but that seemed to fail too :-\.
Logged
Peter Duggan
Llama Chameleon
Global Moderator
YaBB God
*****
Posts: 1793


You come and go...

WWW
Re:Changing username
« Reply #6 on: May 26, 2003, 07:55:40 PM »
Reply with quote

Think these queries should cover it, but I haven't actually tested them so please don't head straight for your live board:

UPDATE instant_messages SET fromName = 'new username' WHERE fromName = 'old username';

UPDATE instant_messages SET toName = 'new username' WHERE toName = 'old username';

UPDATE messages SET posterName = 'new username' WHERE posterName = 'old username';

UPDATE members SET memberName = 'new username' WHERE memberName = 'old username';

Moderators' names would probably be simpler to change through your Admin Center if you've appointed yourself to any of the boards!
Logged

[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Changing username
« Reply #7 on: May 26, 2003, 08:01:54 PM »
Reply with quote

Oh right.  Changing the username will change your password to... so you'll have to reset your password.

-[Unknown]
Logged
Douglas
aka The Bear
Support Team
YaBB God
*****
Posts: 1050


Bears rule! Llamas rule too!

WWW
Re:Changing username
« Reply #8 on: May 26, 2003, 08:15:08 PM »
Reply with quote

Ya'll want me to write up a quickie script that'll do this in a one step operation for ya?
Logged

Need help? Please SEARCH first.  No need for a bad attitude, we like helping positive minded people.
ComeHit.us Short URL  redirection svcs with YSE powered forums, COMING SOON!
Want to say thanks?  Check out http://comehit.us/?u=3
Søren Bjerg
Noobie
*
Posts: 17


\o/

ICQ - 28642382britneyspearsdk@hotmail.com WWW
Re:Changing username
« Reply #9 on: May 26, 2003, 08:24:19 PM »
Reply with quote

Quote from: Douglas on May 26, 2003, 08:15:08 PM
Ya'll want me to write up a quickie script that'll do this in a one step operation for ya?

I know I'd greatly appreciate it :).

Appreciate the help.
Logged
Douglas
aka The Bear
Support Team
YaBB God
*****
Posts: 1050


Bears rule! Llamas rule too!

WWW
Re:Changing username
« Reply #10 on: May 26, 2003, 09:49:38 PM »
Reply with quote

I'll have the script available for you in just a second.  I had to get the password set up correctly, and have just tested it.  :)

Give me 10-15 minutes.
Logged

Need help? Please SEARCH first.  No need for a bad attitude, we like helping positive minded people.
ComeHit.us Short URL  redirection svcs with YSE powered forums, COMING SOON!
Want to say thanks?  Check out http://comehit.us/?u=3
Douglas
aka The Bear
Support Team
YaBB God
*****
Posts: 1050


Bears rule! Llamas rule too!

WWW
Re:Changing username
« Reply #11 on: May 26, 2003, 11:03:46 PM »
Reply with quote

Since this is pretty much a mod, I've created it in simpletext format and have moved it over to the Mod's folder.

You can find that thread here.  I have slightly updated it to improve querying the db (Thanks, [Unknown]!)

You can find this thread HERE in the Mods area now.  :)
« Last Edit: May 27, 2003, 03:52:01 AM by Douglas » Logged

Need help? Please SEARCH first.  No need for a bad attitude, we like helping positive minded people.
ComeHit.us Short URL  redirection svcs with YSE powered forums, COMING SOON!
Want to say thanks?  Check out http://comehit.us/?u=3
Søren Bjerg
Noobie
*
Posts: 17


\o/

ICQ - 28642382britneyspearsdk@hotmail.com WWW
Re:Changing username
« Reply #12 on: May 26, 2003, 11:23:59 PM »
Reply with quote

Much thanks!

Worked like a charm on my webhost (Linux), couldn't get it to work on my offline server (Windows), though.

*thumbs up*
Logged
Douglas
aka The Bear
Support Team
YaBB God
*****
Posts: 1050


Bears rule! Llamas rule too!

WWW
Re:Changing username
« Reply #13 on: May 27, 2003, 12:01:47 AM »
Reply with quote

Glad to help.  :)  I'll update the above to indicate that it works on *nix systems, and not Windows.
Logged

Need help? Please SEARCH first.  No need for a bad attitude, we like helping positive minded people.
ComeHit.us Short URL  redirection svcs with YSE powered forums, COMING SOON!
Want to say thanks?  Check out http://comehit.us/?u=3
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Changing username « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.084 seconds with 20 queries.