The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Removing threads with no posts
Ok, I've written something that removes alot of posts and threads but there's still for some reason alot of threads that don't have posts....
Code:
$sql = "DELETE FROM thread WHERE attach = '0'"; $result = mysql_query($sql) or die(mysql_error()); printf("<br>Crappy Threads Removed: %d\n", mysql_affected_rows()); $sql = "DELETE FROM post WHERE attach = '0'"; $result = mysql_query($sql) or die(mysql_error()); printf("<br>Crappy Posts Removed: %d\n", mysql_affected_rows()); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|