View Full Version : PM Pruning ...
PossumX
06-01-2008, 05:51 PM
This seems to be a topic that has been hashed over many places over time. It would be a great benefit to many of us if there was a mod available that correctly pruned Private Messages, based on age (primarily).
Has anyone made any real progress surrounding this type of mod, where it actually works, and reflects the proper PM counts for the user?
sR Craig
06-07-2008, 09:20 PM
This seems to be a topic that has been hashed over many places over time. It would be a great benefit to many of us if there was a mod available that correctly pruned Private Messages, based on age (primarily).
Has anyone made any real progress surrounding this type of mod, where it actually works, and reflects the proper PM counts for the user?
I've been considering writing something like this.
So, other than age what else do you think would be good to be able to parse by?
Also, the function to rebuild the proper PM counts is built into vBulletin, I've taken it and modified it in the past to rebuild PM counts for all users...
PossumX
06-08-2008, 11:53 PM
Age and possibly last activity date (so as to be able to prune PM's of non-active users) is about all I can think of.
What function are you referring to in vB? I am unaware of anything other than possibly rebuild counters.
sR Craig
06-09-2008, 04:56 PM
In private.php there is a function called build_pm_counters...
I have based work off of this function in the past when pruning old PM's...
If you check it out, its obvious that it requires very little work to modify it to rebuild the counters for all users...
Lynne
06-09-2008, 05:19 PM
Have you looked at this mod? Prune Private Messages - Age Based (https://vborg.vbsupport.ru/showthread.php?t=142308&highlight=prune+private+message)
sR Craig
06-09-2008, 06:54 PM
Have you looked at this mod? Prune Private Messages - Age Based (https://vborg.vbsupport.ru/showthread.php?t=142308&highlight=prune+private+message)
I have...
This is what the developer has to say though:
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.
There is also this: https://vborg.vbsupport.ru/showthread.php?t=179879
However I haven't tried it yet...
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.