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-09-2005, 08:35 PM
lasto lasto is offline
 
Join Date: Jan 2002
Posts: 1,514
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Deleted wrong user

ok by mistake i have deleted a user when it should of been another member.Tiredness makes people do bad things

anyway on the board all his posts are now set to guest - is there anyway at all by way of a query or soemthing i can restore his account or is it gone for good.

Also relised its in wrong section as well sorry
Reply With Quote
  #2  
Old 01-09-2005, 09:45 PM
Jolten Jolten is offline
 
Join Date: Mar 2004
Posts: 749
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A backup of the db user table and restore his account.

Then you can run an update query to alter the post users to his name, assuming that's the only "Guest" posting.
Reply With Quote
  #3  
Old 01-09-2005, 10:00 PM
lasto lasto is offline
 
Join Date: Jan 2002
Posts: 1,514
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

dont want to restore to a backup m8 as that defeats the problem.If i go to a backup (his account will be fine)but i lose 2 days posts.Guests are not allowed to post on the board and no one is posting as guest as well.
I see his posts and threads still on the board but under his name he is now set to guests.So was hoping was someway of getting his posts threads back under a new ID.
Edit

Misread your post soz

so what tables do i need to backup m8 as i have backups - is it just the usertable i need to restore and if so i can do that but what do i do from there ?
Reply With Quote
  #4  
Old 01-10-2005, 03:27 AM
Jolten Jolten is offline
 
Join Date: Mar 2004
Posts: 749
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Restore just his account. Restoring from a backup doesn't mean you have to restore everything. Open the .sql file in a text editor, find the user table and his account and run a query to insert the values. All the code you need will be right there with the user table all you need is the following and run it in the sql query window.

Code:
INSERT INTO user VALUES('X', 'X', '', 'X', 'XXXX', 'XXXX', 'XX', ... etc....);
Reply With Quote
  #5  
Old 05-23-2005, 08:14 PM
organik81's Avatar
organik81 organik81 is offline
 
Join Date: Jan 2005
Location: istanbul / Turkey
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is my deleted account's information in backup.sql :
Code:
INSERT INTO user VALUES('4', '9', '', '0', 'organik81', '11282228e7345f3b2987cdf888ff605a', '2005-01-24', 'organik81@cennetforum.com', '1', '', 'http://www.cennetforum.com/', '', '', '', '1', '<span style=\"color: brown;\">Development</span>', '1', '1106301600', '0', '1110928451', '1110929509', '1110406320', '278', '30', '6', '1', '0', '0', '0', '3543', '07-24-1981', '1981-07-24', '30', '2', '81.213.99.81', '0', '2', 'xorganik81x@hotmail.com', '0', '0', '-1', '26', '0', 'oh8');
I run it in phpMyAdmin ; and this is the result : #1136 - Column count doesn't match value count at row 1 ?????
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 11:23 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.03676 seconds
  • Memory Usage 2,197KB
  • Queries Executed 13 (?)
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_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)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_postinfo_query
  • fetch_postinfo
  • 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