vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Recreate deleted thread number?? (https://vborg.vbsupport.ru/showthread.php?t=228191)

novabandit 11-17-2009 12:34 PM

Recreate deleted thread number??
 
I have a thread that was heavily linked to on my forums that was hard deleted (long story).

Now all those links go to the "invalid thread" page.

I was able to (from a DB backup restored onto a test forum) get the contents of the main post, which is the only one I care about, but is it possible to create a new thread in the old thread's location (thread number?)

This is reeeeeally important to me... as this thread brought more traffic to my site than nearly anything else!

Lynne 11-17-2009 02:34 PM

You would have to alter the database manually to change the thread id and then change the parentid for the post.

novabandit 11-17-2009 02:54 PM

Are those the only two places in the DB I would need to edit?

Lynne 11-17-2009 03:17 PM

I think so. I am assuming we are talking about one thread with one post. And, assuming you don't need that one post listed as the Last Post on any forumdisplay page. And, assuming you have no poll and no votes on it and no tags... nothing but one simple post in one little thread.

novabandit 11-17-2009 03:36 PM

YOU ROCK!

I was able to change the thread ID of the thread, and the thread ID of the posts in the thread on my test site, and it all worked PERFECTLY!

Backing up my prod DB now, and I'm going to try it for real. Wish me luck!

AND THANK YOU!!!

--------------- Added [DATE]1258480090[/DATE] at [TIME]1258480090[/TIME] ---------------

OK. I made the DB edits in the THREAD table (changing the thread ID of the new thread with the copypasta post from the restore to the old thread ID #) and in the post table (changing the thread ID of the posts that had the old thread ID).

Should I do any index rebuilds in adminCP before I make the forums available again?


All times are GMT. The time now is 01:28 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.00921 seconds
  • Memory Usage 1,712KB
  • 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)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete