Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
On/Off Forum CronJobs Details »»
On/Off Forum CronJobs
Version: 1.00, by TrueDeath TrueDeath is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 12-18-2005 Last Update: 07-05-2006 Installs: 44
DB Changes
Additional Files  
No support by the author.

On/Off Forum CronJobs


About this hack:
If your forum has scheduled backups and you dont want new data to collide with the backup, or if you dont want your forum accessed at certain times, this is the perfect extension for you.

This simple cronjob will automaticly close or open your vBulletin forum .

Features:
Automaticly Open and close your forums at assigned times.
Guaranteed to be useful when automated backups are being processed.

Installation information on hack:
Files edited: 0
Templates edited: 0
Files to upload: 2
Cronjobs to add: 2
Time to install: 5 minutes max

MAKE SURE YOU CLICK INSTALL!


Supports all 3.5 version boards.

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 12-19-2005, 02:23 PM
TrueDeath's Avatar
TrueDeath TrueDeath is offline
 
Join Date: Sep 2004
Location: London
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MAD_PLayEr1
looks cool, i may install it later
Please do ^.^
Reply With Quote
  #13  
Old 12-19-2005, 04:22 PM
KTBleeding's Avatar
KTBleeding KTBleeding is offline
 
Join Date: Feb 2004
Location: Tooele, UT
Posts: 756
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hm.. I'm not extremely familiar with cron jobs, but from what I understand..

You're able to set up a cron job to do a database backup? And with this mod, turn vB off at the same time as the backup? Does it automatically detect when the backup is finished and come back online, or would you have to set it to go offline for an hour?

Thanks,
Reply With Quote
  #14  
Old 12-19-2005, 04:45 PM
Guest190829
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by KTBleeding
Hm.. I'm not extremely familiar with cron jobs, but from what I understand..

You're able to set up a cron job to do a database backup? And with this mod, turn vB off at the same time as the backup? Does it automatically detect when the backup is finished and come back online, or would you have to set it to go offline for an hour?

Thanks,
Looking at the code it does not automatically detect when the backup is finished, you would have to set the open cron to run X amount of time after the backup.
Reply With Quote
  #15  
Old 12-19-2005, 06:52 PM
TrueDeath's Avatar
TrueDeath TrueDeath is offline
 
Join Date: Sep 2004
Location: London
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Danny.VBT
Looking at the code it does not automatically detect when the backup is finished, you would have to set the open cron to run X amount of time after the backup.
Yes, you should make the cronjob turn off the board just before your backup is set to take place and then the 2nd cronjob to be when you believe the backup will be finished by.
Reply With Quote
  #16  
Old 12-19-2005, 08:35 PM
nighteyes's Avatar
nighteyes nighteyes is offline
 
Join Date: Oct 2001
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent hack will install when I finally finish our upgrade to 3.5. Will be absolutely perfect AS IS for us.
Reply With Quote
  #17  
Old 12-20-2005, 12:57 AM
TrueDeath's Avatar
TrueDeath TrueDeath is offline
 
Join Date: Sep 2004
Location: London
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Added some FAQ's.
Reply With Quote
  #18  
Old 01-13-2006, 07:20 AM
yahoooh yahoooh is offline
 
Join Date: Oct 2002
Posts: 567
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can be used for 3.0.7?
Reply With Quote
  #19  
Old 01-16-2006, 03:56 AM
Robert Basil's Avatar
Robert Basil Robert Basil is offline
 
Join Date: Oct 2001
Location: Chandler, Arizona
Posts: 181
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am the guy who paid to have this script made and then allowed it to be release to the community for free.

Now I am having a problem.

On the servers where I have this running va cron in the AdminCP it works great.

I have one windows server where I want to run the scripts with a batch file. I am using the command line:

c:\php\php.exe -f c:\domains\mydomainnameremoved\wwwroot\includes\cr on\forumoff.php

I do not get any errors when running it via the command line. But the forum does not shut down (or open back up).

Any ideas?
Reply With Quote
  #20  
Old 02-13-2006, 11:19 PM
Robert Basil's Avatar
Robert Basil Robert Basil is offline
 
Join Date: Oct 2001
Location: Chandler, Arizona
Posts: 181
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Pocketbike Planet
I am the guy who paid to have this script made and then allowed it to be release to the community for free.

Now I am having a problem.

On the servers where I have this running va cron in the AdminCP it works great.

I have one windows server where I want to run the scripts with a batch file. I am using the command line:

c:\php\php.exe -f c:\domains\mydomainnameremoved\wwwroot\includes\cr on\forumoff.php

I do not get any errors when running it via the command line. But the forum does not shut down (or open back up).

Any ideas?
Any ideas on a fix for the above question?
Reply With Quote
  #21  
Old 02-14-2006, 01:42 AM
TrueDeath's Avatar
TrueDeath TrueDeath is offline
 
Join Date: Sep 2004
Location: London
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Pocketbike Planet
Any ideas on a fix for the above question?
Please get in direct contact so i can replicate this and fix 4 you
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:15 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.05943 seconds
  • Memory Usage 2,301KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete