Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
Mass Remove Blog Posts Details »»
Mass Remove Blog Posts
Version: 1.00, by TheInsaneManiac TheInsaneManiac is offline
Developer Last Online: Feb 2022 Show Printable Version Email this Page

Category: vBulletin Blog - Version: 4.2.x Rating:
Released: 01-09-2013 Last Update: Never Installs: 3
DB Changes
Re-useable Code  
No support by the author.

Be sure to make backups of your database or at least the following tables:
blog
blog_text
blog_subscribeentry

Now you will need some skills in phpmyadmin and mySQL, but basically login to phpmyadmin and search the blog table and see where your spam first began. I will use the 1000th line as example. You will need to run the following query as it will delete anything posted after the 1000th blog post, simply edit the query to reflect the actual numbers you found inside the blog table. Also change the "prefix_" to your prefix in the database rather it be vb_ or vb4_

Code:
delete from prefix_blog where blogid > 1000;
delete from prefix_blog_text where blogid > 1000;
delete from prefix_blog_subscribeentry where blogid > 1000;

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
RichieBoy67

Comments
  #2  
Old 01-10-2013, 02:10 AM
TheInsaneManiac TheInsaneManiac is offline
 
Join Date: Feb 2008
Posts: 1,360
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

---Reserved---

Update:
When I find the time I will see about creating this into an executable php file.
Reply With Quote
  #3  
Old 01-16-2013, 01:29 AM
Lpspider Lpspider is offline
 
Join Date: Oct 2005
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to do this by username? Blogs after a certain date would include legitimate blogs too.
Reply With Quote
  #4  
Old 09-04-2013, 05:52 PM
paulnicholson paulnicholson is offline
 
Join Date: Oct 2010
Location: Australia
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks so much. Now I highly recommend the Image version of NoSpam - but like everyone is saying - there needs to be a fair way for the blind to register and create posts. Spambots should be barred but blind people are innocent.
Reply With Quote
  #5  
Old 01-27-2014, 09:48 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Older thread here but relevant for me. I am working for a client who's blog has been hijacked for years. There are thousands of spam entries. he has no categories set up and there are some good entries as well so deleting using post number will not work.

I have never encountered this with a blog before and I just cannot believe Vbulletin does not have a decent way to mass prune blog posts by user! If not I suppose a query to delete blogs by user should be easy but I would rather have a gui for client.

Thanks

My hope was to have the client delete these blog posts as I was hired to do something else and I do not want to send him into the database. I figured he could just go through the users and prune by user right in the admincp.

Is there a mod available that does this?

#Update - I just wrote a query and am using that. Easy for me but not for client.

Code:
DELETE FROM ``.`blog` WHERE `blog`.`username` = ''
Reply With Quote
Reply

Thread Tools

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 06:20 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.07526 seconds
  • Memory Usage 2,246KB
  • Queries Executed 19 (?)
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
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (1)post_thanks_box_bit
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (5)post_thanks_postbit_info
  • (4)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_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
  • 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_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