Prune Private Messages - Age Based
This thread is in the Modification Graveyard.
I recommend that anyone interested in this add-on install Periodic Prune PMs instead.
WORKAROUND:I have been unable to find the time to update this or to fix the incorrect counts problem. For those having this issue, use one of the "Send PM to all members" add-ons and send a message similar to the following:
WARNING: I have discovered that, at present, the individual PM counts (user.pmtotal and user.pmunread) are not updated by this script and therefore running the script will leave members with inaccurate PM counts. I am currently seeking a way to fix this. This add-on prunes old private messages based on age, and cleans up message receipts. The add-on was adapted for vBulletin 3.6x from amykhar's Mass Delete Old Private Messages for vBulletin 2.2x (see index.php?t=27421). Thanks to Jacqueline at the http://www.vbulletin.org forum, and Sarah and Jorrit787 at the http://www.theadminzone.com forum for assistance with the MySQL queries. This is designed to run as a cron job. Upload to your ./includes/cron/ folder. Then set up a new scheduled task as Prune PMs with your preferences as to frequency. The attached prunepms.php file deletes PMs after 60 days: PHP Code:
$time = time() - (60 * 24 * 60 * 60);
PHP Code:
print ("Pruning private message receipts... <br/>");
I'll support this add-on to the extent that I can but be aware I am not expert at either PHP or MySQL. Download This modification cannot be downloaded. Supporters / CoAuthors
|
Similar Mods
Delete All PMs - Let your members prune all their private messages automatically! | vBulletin 3.0 Full Releases |