Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-28-2003, 03:28 PM
khaleejy khaleejy is offline
 
Join Date: Jul 2002
Location: a
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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??
Reply With Quote
  #2  
Old 01-28-2003, 03:49 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #3  
Old 01-28-2003, 05:05 PM
khaleejy khaleejy is offline
 
Join Date: Jul 2002
Location: a
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #4  
Old 01-28-2003, 05:07 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well, just look into phpmyadmin and look which tables have a userid field, you have to update each of these tables
Reply With Quote
  #5  
Old 01-28-2003, 06:00 PM
khaleejy khaleejy is offline
 
Join Date: Jul 2002
Location: a
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

xenon
is that right?

PHP Code:
UPDATE access SET userid=2 WHERE userid=*
UPDATE adminlog SET userid=2 WHERE userid=*
UPDATE announcement SET userid=2 WHERE userid=*
UPDATE attachment SET userid=2 WHERE userid=*
UPDATE calendar_events SET userid=2 WHERE userid=*
UPDATE customavatar SET userid=2 WHERE userid=*
UPDATE moderator SET userid=2 WHERE userid=*
UPDATE pollvote SET userid=2 WHERE userid=*
UPDATE post SET userid=2 WHERE userid=*
UPDATE privatemessage SET userid=2 WHERE userid=*
UPDATE privatemessage SET touserid=2 WHERE touserid=*
UPDATE privatemessage SET fromuserid=2 WHERE fromuserid=*
UPDATE search SET userid=2 WHERE userid=*
UPDATE session SET userid=2 WHERE userid=*
UPDATE subscribeforum SET userid=2 WHERE userid=*
UPDATE subscribethread SET userid=2 WHERE userid=*
UPDATE thread SET postuserid=2 WHERE postuserid=*
UPDATE threadrate SET userid=2 WHERE userid=*
UPDATE user SET userid=2 WHERE userid=*
UPDATE useractivation SET userid=2 WHERE userid=*
UPDATE userfield SET userid=2 WHERE userid=* 
Reply With Quote
  #6  
Old 01-28-2003, 06:15 PM
Martin64's Avatar
Martin64 Martin64 is offline
 
Join Date: Nov 2001
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by khaleejy
xenon
is that right?

PHP Code:
UPDATE access SET userid=2 WHERE userid=*
UPDATE adminlog SET userid=2 WHERE userid=*
UPDATE announcement SET userid=2 WHERE userid=*
UPDATE attachment SET userid=2 WHERE userid=*
UPDATE calendar_events SET userid=2 WHERE userid=*
UPDATE customavatar SET userid=2 WHERE userid=*
UPDATE moderator SET userid=2 WHERE userid=*
UPDATE pollvote SET userid=2 WHERE userid=*
UPDATE post SET userid=2 WHERE userid=*
UPDATE privatemessage SET userid=2 WHERE userid=*
UPDATE privatemessage SET touserid=2 WHERE touserid=*
UPDATE privatemessage SET fromuserid=2 WHERE fromuserid=*
UPDATE search SET userid=2 WHERE userid=*
UPDATE session SET userid=2 WHERE userid=*
UPDATE subscribeforum SET userid=2 WHERE userid=*
UPDATE subscribethread SET userid=2 WHERE userid=*
UPDATE thread SET postuserid=2 WHERE postuserid=*
UPDATE threadrate SET userid=2 WHERE userid=*
UPDATE user SET userid=2 WHERE userid=*
UPDATE useractivation SET userid=2 WHERE userid=*
UPDATE userfield SET userid=2 WHERE userid=* 
I'm not Xenon, but yeah, that sounds like all. :nervous:
Reply With Quote
  #7  
Old 01-28-2003, 06:38 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes it's right

that's why i said i wouldn't do it, it just takes so long to find the right tables
Reply With Quote
  #8  
Old 01-28-2003, 08:06 PM
khaleejy khaleejy is offline
 
Join Date: Jul 2002
Location: a
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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??
Reply With Quote
  #9  
Old 01-28-2003, 08:12 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

some?

you can expect a lot changes....

/me fears the update of some hacks ^^
Reply With Quote
  #10  
Old 01-28-2003, 08:17 PM
khaleejy khaleejy is offline
 
Join Date: Jul 2002
Location: a
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

even i :ermm:
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:56 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04100 seconds
  • Memory Usage 2,272KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete