vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   User Deleted by Mistake! (https://vborg.vbsupport.ru/showthread.php?t=39783)

Webmasta XT 06-13-2002 12:40 AM

User Deleted by Mistake!
 
Hey I accendentaly Deleted a user, he lost his posts, not really those posts became Guets posts, is there a way I can bring back the user? without losing anything else? :cry: :(

Xenon 06-13-2002 11:25 AM

reCreate the user
then run this sql query:

[sql]
UPDATE post SET userid=x WHERE username='xyz' AND userid=0
[/sql]

replace the x and xyz with the userid of the recreated user and the xyz with the exact old username he had.

Chris M 06-13-2002 05:44 PM

Cool...

I never knew that!:)

Satan

Webmasta XT 06-13-2002 11:35 PM

Hey it doesn't work, it brought the member back but he has 0 posts and 35 Threads, HOW IS THAT possible??

Webmasta XT 06-13-2002 11:36 PM

The old username was mysticalsaiyan and the ID was 77 and the new username is MysticalSaiyanX with the ID 327, how can I give him all of his old posts and threads and everything back??

Brad 06-13-2002 11:56 PM

UPDATE post SET userid=77 WHERE username='mysticalsaiyan' AND userid=327

Xenon 06-14-2002 11:17 AM

no anime, the userid 77 isnt there anymore, so it wouldn be very usefulle to change the posts to that id :)

the corect sql:
UPDATE post SET userid=327 WHERE username='mysticalsaiyan' AND userid=0

then don't forget to update postcounter from your admincp :)

Brad 06-14-2002 11:24 AM

my bad, i forgot about that.

Webmasta XT 06-14-2002 06:39 PM

how do I update postcounter from admincp? sry i am too dumb

Webmasta XT 06-14-2002 06:40 PM

nevermind I found it, thnx anywayz!


All times are GMT. The time now is 08:22 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.01083 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