![]() |
Swapping USERID
I was advised via support to post for help here, I'll preface by saying that I'll be doing this on a backup as proof before trying anything on the board.
So I'm running vBulletin 4.1.5 and I would like to swap two existing USERID's. If anyone could advise of a step by step that I could try out I would be eternally grateful. |
I misunderstood what you were trying to do; never mind.
|
Bugger, thank you anyway.
|
You can't swap IDs, but you can change names. Swap names, swap IDs.
Agree you really need to tell us what you're trying to accomplish if you want a more meaningful answer. |
Quote:
I would like my username to be associated with USERID 1, so I need to swap everything I've ever posted to show up as USERID 1 and the member that had populated as USERID 1 I would like to swap to my current USERID. I hope that makes sense :) I'm not very good at explaining. |
Don't, its not worth the trouble.
|
Quote:
|
Do you have any idea what an undertaking that is?
First, you'll have to shut down the board (if it's a busy one), then wipe the caches and manually edit all sorts of fields in dozens of tables. What's so important about being #1 anyway? What I do with my boards, when I install them, is.... just before the installation step where you enter the first user details (usually admin), I set the auto_increment to 1000001. Kinda like the facebook way. Optionally, get vbseo and then nobody will see the parameters in the browser anyway. |
Well I'm converting away from vBulletin in the next 2 weeks.
I have ran into problems with mods being hardcoded to have the admin set as 1, I'm just trying to cover all future bases. I perhaps had the misguided idea that I would be able to run various SQL queries that would do the changing like black magic. My database is backed up every 4/5 hours and it's never down for that so I don't perceive that to be an issue. This topic always seems to get smacked down, I've seen people post that they've done it but I've ever seen any step by step instructions. |
I can't think of 1 mod hard coded to use userid 1 for anything, and if there was you shouldn't be using such a mod to begin with- god knows what other stupid things the coder may have done.
Have you considered merging your account into userid1 and then taking over the account? |
I don't disagree with anything anyone said above (specifically, I agree that it shouldn't be important enough to bother attempting it), but if you really want to play around, I was thinking this:
- create a temporary admin account with permissions to do what you need to do below, and log in to that account. - create a new user that will become the current user 1's user - merge user 1 to the new user (this deletes the current user 1) - create a new user that will become your user 1 - note the id of this user - go to the database and in tables user, userfield, and usertextfield (and administrator, if you made the new user in the previous step an admin), set userid = 1 where userid = the id from above. - merge your current account to the user 1 account. - delete the temporary admin account I don't know how well this will work. The instructions for merging users says the "Posts, threads, calendar events, private messages, post count, reputation, contacts, friends and ignore list" will be merged, but I guess the profile information (and maybe other things I haven't thought about) will not be, so when you create the new users you probably want to copy as much of the profile info as you can. Also you'll have to give the displaced user 1 the new password you use when creating his new user. |
Quote:
|
Thank you khpp, I'm going over your steps again and again in my head an I missing were do we keep the information of the user that currently resides as USERID1? :)
--------------- Added [DATE]1313478906[/DATE] at [TIME]1313478906[/TIME] --------------- Quote:
|
Quote:
|
Quote:
I think you could probably do this more completely and automatically by writing a script because then you could copy all the profile information (but of course that means doing some php programming). |
Quote:
I'm going to give this a go tonight and will post back the results. |
Quote:
|
Quote:
http://www.the-sps.org/members/chemicalkicks.1/ YAY |
Quote:
|
Quote:
Not to mention it seems way off topic. |
Quote:
|
Check out his real name and location.
|
was he not the one bad mouthing 911
just checked yes it was him good he was banned he should not of said what he said --------------- Added [DATE]1315883930[/DATE] at [TIME]1315883930[/TIME] --------------- should get banned from here as well if it was me i would close his isp for good |
His political opinions are his own, and reflect on him. We are not going to ban someone for their political opinions however unpopular they may be. That said this thread has run its course and the original question was answered. Closing thread.
|
All times are GMT. The time now is 05:41 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|