Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 11-11-2014, 10:55 PM
karabaja3's Avatar
karabaja3 karabaja3 is offline
 
Join Date: Jan 2008
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default SuperModerator wiped more than 10,000 of its posts

I had some problems today, which I described in short at vb.com.
(Please, take a quick look)
Joe D. gave me advice on how to solve it, but I do not know to execute an SQL query to do what he told me.

This I gotta to do:

Quote:
Originally Posted by Joe D
I don't know the exact queries but I imagine if you copy the post and thread tables from the old backup, add them to the database as post2 and thread2 tables for example.

You would then need a query to copy the entire post from the post2 table to the post table where the postid exists in the post2 table but not in the regular post table.
Repeat for the thread / thread 2 table.

Then clear the cache, rebuild the forum and thread counters.

That should work,
Can someone write a query that I need to perform if you have the time and desire, please? Please, save me!
  #2  
Old 11-11-2014, 11:01 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please do not cross post issues, stick with the thread you started on vb.com, http://www.vbulletin.com/forum/forum...0-of-its-posts

Now should they tell you to post here, then that is a different story.
  #3  
Old 11-11-2014, 11:08 PM
karabaja3's Avatar
karabaja3 karabaja3 is offline
 
Join Date: Jan 2008
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
Please do not cross post issues, stick with the thread you started on vb.com, http://www.vbulletin.com/forum/forum...0-of-its-posts
It's not a cross post. It's just reference to a post at vb.com

They told me what to do and here I asked politely if someone can write a SQL command that I should perform.
I doubt that anyone will help me out there, and here is a lot more enthusiasts who have the knowledge and, I believe, a desire to help.
  #4  
Old 11-12-2014, 12:50 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I wrote a script a while back to restore some deleted threads, which I'm attaching here in case it helps. But I'm afraid it won't do you much good unless you know some php because I was only restoring a small number of threads and I knew all the threadids, so they're just listed in an array.

You might be able to get the deleted thread and post ids from the moderator log, I'm not sure, but it would require some programming.

I might be able to write you a couple queries like Joe suggested, and that may work OK for you, but I don't have time right now. I'll look at it tomorrow if no one else has done it by then.
Attached Files
File Type: php rt.php (4.7 KB, 3 views)
2 благодарности(ей) от:
CAG CheechDogg, karabaja3
  #5  
Old 11-12-2014, 09:21 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As I said, there is a response to your thread at vB.com, by posting here, and at least at two other sites now, you seemed to missed the response there. That is why it is best to have some patience and stick with one site/thread, not post multiple threads all over the place. It just waists your time, and the time of the people trying to give you support.

I know it can be frustrating, when something like this happens, and you want to get it solved asap, but give the people some time to respond, and keep checking the original thread.
  #6  
Old 11-12-2014, 04:07 PM
TheInsaneManiac TheInsaneManiac is offline
 
Join Date: Feb 2008
Posts: 1,360
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Also for future reference make sure no one, but those you know personally have access to permanently delete posts, let everyone you don't know have soft delete permissions so that way you can restore the soft deleted threads without having to execute sql code.
2 благодарности(ей) от:
karabaja3, TheLastSuperman
  #7  
Old 11-12-2014, 05:00 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I posted a link to this in your other thread - http://www.vbulletin.com/forum/forum...-thread-number

I think you could probably change the queries to be something like this:

PHP Code:
INSERT INTO
   thread
(SELECT
   
*
FROM
   thread7
WHERE
   postuserid 
xxx
PHP Code:
INSERT INTO
   post
(SELECT
   
*
FROM
   post7
WHERE
   userid 
xxx
I have NOT ever tried this!!!! Do NOT do it on your live site until you have tested it on a test site. And, if it works there and you are going to do it on your live site, do NOT do so until you have taken a database backup!!!!
2 благодарности(ей) от:
karabaja3, Simon Lloyd
  #8  
Old 11-13-2014, 10:51 PM
karabaja3's Avatar
karabaja3 karabaja3 is offline
 
Join Date: Jan 2008
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you to all very much.

I solved the problem with phpMyAdmin like Joe D. told me to. I managed to restore into base 10,200 posts. Almost all of them. I am very pleased and very grateful for help and effort to explain procedure.
4 благодарности(ей) от:
kh99, Lynne, ozzy47, TheLastSuperman
  #9  
Old 11-13-2014, 10:53 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent news, glad to hear you were able to successfully do it.
  #10  
Old 11-13-2014, 11:37 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
Please do not cross post issues, stick with the thread you started on vb.com, http://www.vbulletin.com/forum/forum...0-of-its-posts
There is no rule against posting on both on vb.com and vb.org.
Благодарность от:
karabaja3
Closed Thread

Thread Tools
Display Modes

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:39 PM.


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.04903 seconds
  • Memory Usage 2,291KB
  • Queries Executed 12 (?)
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
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (11)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete