The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
SQL Query required to Prune forum
Dear Helpers
I need a SQL query to remove my empty forums which have no thread . Due to some changes i need to delete many forums on my board and it will take hours to delete one by one. I am not able to find Prune empty forum in my adminCP. Thank you in advance |
#2
|
||||
|
||||
This should work
PHP Code:
|
2 благодарности(ей) от: | ||
Max Taxable, TheLastSuperman |
#3
|
|||
|
|||
Thank You very much " vBNinja "
One problem i am facing #1093 - You can't specify target table 'forum' for update in FROM clause |
#4
|
||||
|
||||
You probably have a table prefix, look for "forum" in the tables with phpmyadmin
If it has something in front of it, use that name in the query instead of "forum" |
#5
|
|||
|
|||
It is forum only there is no prefix , but dont know why your command is not working.
|
#6
|
|||
|
|||
DELETE FROM `forum` WHERE `threadcount`='0' AND `parentid`='-1'
Please do a backup before running this |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|