![]() |
Prune Private Messages - Age Based
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: Quote:
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 https://vborg.vbsupport.ru/showthread.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:
PHP Code:
I'll support this add-on to the extent that I can but be aware I am not expert at either PHP or MySQL. |
I have not yet figured out how to make this a product for upload. Any help in doing this would be appreciated.
|
I'll definitely install this once it becomes a product. ;)
|
Thanks for the release, I have this installed but having a product for same will be great.
|
Looks promising! :up:
|
I just realized there is an issue with user.pmtotal and user.pmumread counts. The current script does not update those.
Can this be done automatically through a MySQL update query? |
Nice mod thank you.
|
WORKAROUND TO PM COUNTS ISSUE: Update the counts from your Admin CP, especially thread and post counts. This seems to fix the PM counts as well.
I'm still looking for a way to automate this. |
Maintenance > Update Counters
|
Quote:
|
All times are GMT. The time now is 11:48 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|