PDA

View Full Version : Administrative and Maintenance Tools - Purge Old Visitor Messages


MarkFL
07-19-2015, 09:00 PM
This product will delete all visitor messages that are older than the specified number of days. There is now the option to restrict the visitor messages to be purged to only those which contain a specified string of text. You could use this to only delete the auto-generated welcoming visitor messages produced by this product:

New/Returning Members Visitor Message (https://vborg.vbsupport.ru/showthread.php?t=319409)

Updates:

Version 1.1:


Now allows the entry of a string of text which must appear in visitor messages to be purged.


Version 1.2:


Only purges read visitor messages.



To Install:

In AdminCP go to Plugins & Products -> Manage Products -> Add/Import Product.

Click on "Choose File" and browse to the product xml file that was packaged in the .zip file.

Click "Import"

You MUST set your settings to enable the mod. The setting for this add-on is found by following:

AdminCP -> Settings -> Options -> User Profile: Visitor Messaging Options

At the bottom of the page, you will find new settings labeled "Purge Visitor Message Threshold In Days" and "Required Text Within Visitor Messages For Purge":

https://vborg.vbsupport.ru/attachment.php?attachmentid=154033&stc=1&d=1452991754

The deletion is a daily cron job.

Support for this product can be found here:


MHB - Purge Old Visitor Messages (http://mathhelpboards.com/vbulletin-products-61/purge-old-visitor-messages-21885.html)
TAZ - Purge Old Visitor Messages (https://theadminzone.com/threads/purge-old-visitor-messages.145179/)

friendlymela
07-22-2015, 05:32 AM
This one is really good ..

mitch84
09-12-2015, 10:13 AM
hi, perhaps added too a archive system?

blah100
09-13-2015, 05:10 AM
Here's a suggestion: being able to delete visitor messages from banned users. It's not like their visitor messages are needed anymore :)

djbaxter
01-16-2016, 08:23 PM
There's an error in this mod, just pointed out to me by a member who had been away for a while:

Currently, when visitor messages are deleted, the mod does NOT update the database variable vmunreadcount in user.

If a member has been a way for a while and unread visitor messages are deleted, it will still show those deleted unread messages in Notifications and there is no way for the user to reset that flag.

I have disabled the mod until this is fixed.

In the meantime, you can reset vmunreadcount to zero using the following SQL query:

update {prefix}user SET vmunreadcount=0

MarkFL
01-16-2016, 10:29 PM
There's an error in this mod, just pointed out to me by a member who had been away for a while:

Currently, when visitor messages are deleted, the mod does NOT update the database variable vmunreadcount in user.

If a member has been a way for a while and unread visitor messages are deleted, it will still show those deleted unread messages in Notifications and there is no way for the user to reset that flag.

I have disabled the mod until this is fixed.

In the meantime, you can reset vmunreadcount to zero using the following SQL query:

update {prefix}user SET vmunreadcount=0

Thank you for letting me know about this unforeseen (by me) situation, and I will fix this and update the product soon. :)

MarkFL
01-16-2016, 10:54 PM
Update - Version 1.2:


Only purges read visitor messages.

djbaxter
01-16-2016, 11:05 PM
Wow... that was fast! :)

Thank you!

blackberry
01-18-2016, 07:14 PM
gr8 :up:

plz make one to purge old PM

MarkFL
01-18-2016, 07:20 PM
gr8 :up:

plz make one to purge old PM

If I do that, I will update this product so that it will give the option to also purge old PMs that have been read. :)

z3r0
01-18-2016, 07:27 PM
Does this do all usergroups or can you exclude some?

MarkFL
01-18-2016, 07:31 PM
Does this do all usergroups or can you excude some?

At present, it purges all read visitor messages (older than the threshold you set), regardless of the usergroup(s) to which the recipients belong.

djbaxter
01-18-2016, 08:08 PM
gr8 :up:

plz make one to purge old PM

If I do that, I will update this product so that it will give the option to also purge old PMs that have been read. :)

This old vBulletin 3 mod is still working for me through progressive upgrades to 4.2.3, although it would be nice to have an update for 4.x: Periodic Prune PMs [ Cron Job - Fully Controllable ] - vBulletin.org Forum (https://vborg.vbsupport.ru/showthread.php?t=179879)

blackberry
01-19-2016, 07:46 AM
If I do that, I will update this product so that it will give the option to also purge old PMs that have been read. :)
woow that would be awesome addition :up:

blackberry
01-20-2016, 05:45 PM
This old vBulletin 3 mod is still working for me through progressive upgrades to 4.2.3, although it would be nice to have an update for 4.x: Periodic Prune PMs [ Cron Job - Fully Controllable ] - vBulletin.org Forum (https://vborg.vbsupport.ru/showthread.php?t=179879)
Thank you.. Installed it .. how long it takes to clear ? table size is same been a day.

djbaxter
01-20-2016, 06:01 PM
Check the cron job under scheduled tasks and make sure it's running with the frequency you want.

I'm not 100% certain but the displayed table size may not change until you optimize your tables - you can do this under Maintenance in the AdminCP.

blackberry
01-22-2016, 01:10 PM
Check the cron job under scheduled tasks and make sure it's running with the frequency you want.

I'm not 100% certain but the displayed table size may not change until you optimize your tables - you can do this under Maintenance in the AdminCP.
worked thank you