vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to delete thread with 0 post (https://vborg.vbsupport.ru/showthread.php?t=240571)

skyyjet 04-16-2010 11:00 AM

How to delete thread with 0 post
 
How can we delete threads that don't have any post in forum?

Actually my forum was spammed so IN PHPmyadmin I entered SPAM kewyords like uggs, wowgold, vigra etc and it searched and founded all those hundreds of posts which had those keywords and I deleted them all at once.

Now the problem is that many threads are still listed with their URL in forum but when you open them there is no post ie no content in tho se threads and also there is no method to delete.

I guess there must be some command that we can run in PHPmyadmin that could delete all threads with 0 post count?

Please help.

Marco van Herwaarden 04-16-2010 11:12 AM

First of all: NEVER DELETE RECORDS MANUALLY, unless you know 100% what you are doing.

Try running some of the update counters under Maintenance in the AdminCP:
- Remove Orphan Posts.
- Remove Orphan Threads
- REbuild Thread Information.

skyyjet 04-16-2010 11:27 AM

Thanks for the help..

Unfortunately this didn't worked.. Those thread urls are still there..

I believe this can be deleted only through phpmyadmin only.

borbole 04-16-2010 02:23 PM

Quote:

Originally Posted by skyyjet (Post 2022126)
Thanks for the help..

Unfortunately this didn't worked.. Those thread urls are still there..

I believe this can be deleted only through phpmyadmin only.


Try to run the following query.

Code:

DELETE FROM thread WHERE replycount = 0;
If your db tables have a prefix you should include that as well in the query. ALso it would be best if you made first a backup of the thread table, just in case.


All times are GMT. The time now is 05:32 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.01011 seconds
  • Memory Usage 1,714KB
  • 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)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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