![]() |
how can i change my userid??
hi
lets say that the user of id 2 is banned, so userid 2 return to null my user id is * and i want to take 2 as my userid in another words: how can i change my userid from * to some emtpy id?? :rolleyes: |
it's not as easy, because you have a lot of queries to be run:
[sql]UPDATE user SET userid=2 WHERE userid=* UPDATE userfield SET userid=2 WHERE userid=* UPDATE post SET userid=2 WHERE userid=* UPDATE thread SET postuserid=2 WHERE postuserid=* UPDATE privatemessage SET userid=2 WHERE userid=*[/sql] think i've forgotten some have i? |
thank you xenon
(think i've forgotten some have i?) well if you did then tell me what is it please.. i cant do any thing until im sure of what it will do? |
well, just look into phpmyadmin and look which tables have a userid field, you have to update each of these tables :)
|
xenon
is that right? PHP Code:
|
Quote:
|
yes it's right :)
that's why i said i wouldn't do it, it just takes so long to find the right tables ;) |
it works great :) thanks to xenon and martin
by the way, any one know if vbulletin 3.0 changes will include some changes in the database tables?? |
some?
you can expect a lot changes.... /me fears the update of some hacks ^^ |
even i :ermm:
|
All times are GMT. The time now is 12:51 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:
|