vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Administrative and Maintenance Tools - Automatic thread archiving (https://vborg.vbsupport.ru/showthread.php?t=235996)

Rockferd 02-15-2010 10:00 PM

Automatic thread archiving
 
1 Attachment(s)
This is a small PHP script that can be run as a scheduled task to automatically send old threads to an archives forum. It will archive threads which have had no posts for the past X days. The script is forum-specific: it will only archive threads from the forums you specify, and each source forum has a specific archive forum that threads are sent to (i.e. "General" goes to "General archives", "Forum X" goes to "Forum X archives").

This is just a php script; it does not integrate into the adminCP and you will need to manually create the scheduled task. Likewise, all settings are changed within the php file, so in its current form only the site's coder can modify this script. The default script does not archive stickied threads, however you can easily modify the script to do so if you wish.

To use this script, upload the php file into /inclues/cron and create a scheduled task pointing to the uploaded file.
**The PHP script will need to be configured before use**

v1.01
Changed the switch statement to an array, halving the amount of configuration required.

Silencer Groans 02-21-2010 09:06 PM

But there is an example?

Thank you

Rockferd 02-23-2010 12:22 AM

The PHP file contains example settings, and I've just uploaded a screenshot of the scheduled task setup. :)


All times are GMT. The time now is 10:55 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.01143 seconds
  • Memory Usage 1,706KB
  • 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
  • (3)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