vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Looking for a selective PM prune hack (https://vborg.vbsupport.ru/showthread.php?t=61739)

Christine 02-19-2004 05:55 PM

Looking for a selective PM prune hack
 
I am cleaning up my database getting ready to move the live 2.3 board to 3.0 Gold and choked when I saw the count of PMs that are in the system for members who haven't logged in for 2 years or more.

Now with the downloadable PMs feature, what I would like is a hack that will run via cron nightly and delete all PMs that are over X days old (options of 60, 90, 120?) BUT would need the availability to exclude usergroups from this (admins, mods, and if we enable it, a 'subscription' premium group - as an additional incentive to subscribe to the board).

Has anyone else thought of doing anything similar, or have any thoughts on this?

Catch-22|BL 03-27-2004 04:10 PM

I am also interested in this idea so I am bumping the thread for others to see.

A cronjob to prune outdated PM's would be a very popular feature for larger message boards.

Christine 03-27-2004 08:14 PM

I started to write this, but with the table split, it is a real bear now. Thanks for bumping it -- maybe someone with more experience than I have will help?

Catch-22|BL 05-31-2004 09:10 PM

Gentle bump only! :)

Vman 01-11-2005 04:58 AM

BIG BIG BUMP!!!!...since no one has answered in awhile...

spence2 01-13-2005 03:56 AM

Thanks for bumping this!

There is a hack, but it does not seem to be working for everyone. I hope someone will come up with something ... much needed.


All times are GMT. The time now is 11:17 AM.

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.01866 seconds
  • Memory Usage 1,714KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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