The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Automatic Attachment Pruning
Is possible to remove all the attachment that exists under a specific subforum?
And if is possible, can I set it as a cron job. Thanks |
#2
|
||||
|
||||
There is no automatic function in vbulletin that will grab all the attachments in a particular forum and allow you to delete them.
However, to answer your actual question of is it possible, sure it's possible if you write a query for the database to do so. And, if you write the query, of course you may set it as a cron job. This is more involved than just grabbing the attachments from the attachment table and deleting them though. You also need to find the thread and reduce the count of attachments in that thread and also get rid of any reference to the attachment in the post. In other words, it isn't just a simple query you need, you need a few queries written to do this properly. |
#3
|
||||
|
||||
I thought that, I try to analyze the right way of attachment.php do it and to collect all the queries that it do so that I rebuild it in a separate cron job. Of course that’s very difficult and complicated. So if someone have more experience from me in attachments is will appreciate to help me a little.
Thanks anyway. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|