vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Administrative and Maintenance Tools - Purge Old Visitor Messages (https://vborg.vbsupport.ru/showthread.php?t=319564)

MarkFL 07-19-2015 09:00 PM

Purge Old Visitor Messages
 
1 Attachment(s)
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

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/attachmen...1&d=1452991754

The deletion is a daily cron job.

Support for this product can be found here:

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:

Code:

update {prefix}user SET vmunreadcount=0

MarkFL 01-16-2016 10:29 PM

Quote:

Originally Posted by djbaxter (Post 2562779)
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:

Code:

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

Quote:

Originally Posted by blackberry (Post 2562923)
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

Quote:

Originally Posted by z3r0 (Post 2562926)
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

Quote:

Originally Posted by blackberry (Post 2562923)
gr8 :up:

plz make one to purge old PM

Quote:

Originally Posted by MarkFL (Post 2562924)
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

blackberry 01-19-2016 07:46 AM

Quote:

Originally Posted by MarkFL (Post 2562924)
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

Quote:

Originally Posted by djbaxter (Post 2562931)
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

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

Quote:

Originally Posted by djbaxter (Post 2563075)
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


All times are GMT. The time now is 05:20 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
  • Page Generation 0.01157 seconds
  • Memory Usage 1,758KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (17)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete