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 - Automatically Close Old Threads After X Days (https://vborg.vbsupport.ru/showthread.php?t=130738)

echamberlain 02-19-2007 11:38 PM

I figured that when I said, "[t]he installation process automatically creates a php file in the cron folder...". People would know that that folder needs to be writeable by the web server process.

redspider 03-05-2007 03:03 AM

I need something like this for one of my forum section but any way to make it work by minutes and not days?

thanks for any reply

echamberlain 03-05-2007 05:18 PM

Yes, it's possible to change the code and the scheduled task to use minutes, instead of days.

redspider 03-06-2007 02:16 PM

Quote:

Originally Posted by echamberlain (Post 1196418)
Yes, it's possible to change the code and the scheduled task to use minutes, instead of days.

thank you for reply this solve a big problem in forum thanks

mat.knott 03-20-2007 08:47 PM

on my site i have a "daily topics" board where a new topic is made each day. would i be able to use this to close the topics at midnight so that no new posts could be added on the wrong days topic.

i understnd there is the option for close after 1 day but would that close it at 9am if it was started at 9am?

echamberlain 03-20-2007 09:09 PM

Yes, it would close the thread at 9am the following day.

You would need to modify this line:
Code:

. ' AND ' . \$timestamp . ' <= ' . intval(TIMENOW - (60 * 60 * 24 * \$vbulletin->options['setting_vox_cot_days']))
to have threads close when you want, but then you run into timezone issues and when a day starts and ends for the server may differ from the visitors.

mat.knott 03-21-2007 07:12 AM

what would i edit it to to have them close at midnight GMT? my server is in uk and is on gmt time

alawee.blawee 04-26-2007 08:10 PM

checked...
Worked with 3.6.4 ...
But problem solved by CMOD for cron with 777 and after installing got the CMOD back normal

thanks man

keep on

nureeves 05-19-2007 02:23 PM

hai

Would you make "Undo" feature in this hack?

Dannyloski 06-28-2007 02:53 PM

Awesome, installed and working perfectly on vB 3.6.7 PL1 :up: ... I had some Permission Errors, when the cron job ran, but it was because I had to CHMOD some files, all was fixed and running now perfectly ...


All times are GMT. The time now is 03:17 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,734KB
  • 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)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete