vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Un-Delete A User... (https://vborg.vbsupport.ru/showthread.php?t=82752)

trevelyn1015 06-09-2005 07:19 PM

Un-Delete A User...
 
one of my admin/moderators deleted a member. i don't want him deleted, as i want members to be able to search for his topics/posts/etc...

how can i undelete the account? or start a new one and make those "guest" posts count as his?

Andreas 06-09-2005 07:24 PM

You cannot "un-delete" a user.
What you can do: Add a new user with the same name, thed update tables user, userfield und usertextfield with the old userid for this new userid.

trevelyn1015 06-09-2005 07:35 PM

i don't know the old user number, though...

Andreas 06-09-2005 07:38 PM

That's bad. But you should find that in the adminlog.
If not:
[sql]select userid, username from post where username='deleteduser' group by userid[/sql]

trevelyn1015 06-09-2005 07:48 PM

509

that is the member number...

i found it...

how do i make a new user(i already made the new user, which is number 1330) and assign that user id to him and then update them all?

Andreas 06-09-2005 07:56 PM

Create a new user, note down the userid.

Then
[sql]update user set userid = 509 where userid = X[/sql]
[sql]update userfield set userid = 509 where userid = X[/sql]
[sql]update usertextfield set userid = 509 where userid = X[/sql]

trevelyn1015 06-09-2005 08:00 PM

it doesn't work...

says that the user does not exist...

Andreas 06-09-2005 08:02 PM

I've got no idea how this could not work ...
If you want, send me a PM with ACP, phpMyAdmin accounts and the username then I can take a look at it.

trevelyn1015 06-09-2005 08:05 PM

the account, that was deleted was named:

"D."

and his member number was 509

the new member I created is named:

"D."

the new member number is 1330

i ran:

update user set userid = 509 where userid = 1330

and got this:

An error occurred while attempting to execute your query. The following information was returned.
error number: 1146
error desc: Table 'forum2.user' doesn't exist

Andreas 06-09-2005 08:06 PM

Then you are using a table prefix that must be put in front of user, userfield and usertextfield :)


All times are GMT. The time now is 09:46 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
  • Page Generation 0.01152 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete