Version: 1.00, by djbaxter
Developer Last Online: Aug 2021
Category: Administrative and Maintenance Tools -
Version: 3.6.x
Rating:
Released: 03-16-2007
Last Update: Never
Installs: 25
Additional Files
No support by the author.
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:
To update PM counts to the correct value, simply delete this message. vBulletin will automatically then reset your PM count correctly.
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.
It also deletes ALL PM receipts separately (this is because trying to delete receipts linked to the age-based PMs resulted in PMs without receipts being ignored for deletion):
No, not quite. I just haven't been able to move it back to the top of my priority list yet. But I haven't given up on it.
As stated above, though, if anyone with more time would like to have a look at it, I'd welcome the assistance. I have two versions - the published one which works with some limitations, and a subsequent version which gives me MySQL errors.
Looks like the coder is updating the code for this per his message in green up top of the hack:
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.
In another words if he supports it, I think he'll fix what you are reporting....
I have tryed this hack and it's not working.
I'm getting
PHP Fatal error: Call to a member function on a non-object in /chroot/home/coinwash/coinwash.com/html/mb/killpms.php on line 6
Is there anyone out there who knows the Fix---Please
Thank you
Sorry for the double post, on this hack how come you are referencing a killpms.php when the hack's file name is only prunepms.php and shouldn't have nothing to do with a "killpms.php" Because only one file is for download here which is prunepms.php...
PHP Code:
<?php // ###################################################################### // # Prune Private Messages (based on age) version 1.0 # // # by djbaxter http://forum.psychlinks.ca March 2007 # // # # // # Adapted for vBulletin 3.6x (tested on vBulletin 3.65) # // # 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 # // ######################################################################
1. prune private messages over a certain age if run manually, which you can do from the ACP
It won't:
1. run successfully as a cron job/scheduled task, or at least it doesn't work for all configurations
2. correctly recount stored PMs for members after delteing old PMs
I apologize. I've had a series of issues - medical issues, then a death in the family, then surgery with home recovery and complications. It's still on my to-do list. I just haven't been able to get to it yet.
If anyone would like to take this and make it work the way it should, please feel free. Alternatively, feel free to make suggestions on altering the code.
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.
WORKAROUND: Update the counts from your Admin CP, especially thread and post counts. This seems to fix the PM counts as well.
Does this workaround work correctly and leave Members with accurate PM counts?
Thanx,
Does this workaround work correctly and leave Members with accurate PM counts?
Thanx,
Jacquii.
Unfortunately, no.
The first time a member manually deletes a PM, the count is correctly updated. I haven't yet found a way to do it successfully from the Admin CP.
I try to work on a new version periodically as I get time but between work, family, and 4 and a half months recovering from three bouts of surgery this year I haven't yet got to a version which doesn't create some errors.
What's required is that the script correctly updates three variables: one for the PM, one for the PM text, and one for the count decrement.
I have said more than once that if there's anyone out there with more time to devote to the issue, I'll willingly turn over all credit and the current versions I have so far to them.