PDA

View Full Version : On/Off Forum CronJobs


TrueDeath
12-18-2005, 10:00 PM
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! (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=103259)

Supports all 3.5 version boards.

TrueDeath
12-19-2005, 01:27 AM
FAQ
Q: Does this backup the database?
A: No, it closes and opens the forum for whilst a backup is in process.

Q: Where can I recieve support for this?
A: In this thread or by sending a private message to me or Chris M.

Q: Do i need to CHMOD any of the files?
A: No, they should be set as 644 as default.

Chris M
12-19-2005, 01:31 AM
Installed :D

Chris

Robert Basil
12-19-2005, 01:46 AM
Installed. (And paid for). ;)

Snake
12-19-2005, 06:14 AM
Installed!

Tidy
12-19-2005, 06:30 AM
Very Good Idea!

/me Clicks Install

TrueDeath
12-19-2005, 08:56 AM
Hehe glad this is getting more attention than expected :)

MentaL
12-19-2005, 10:02 AM
very good :)

Kru
12-19-2005, 12:50 PM
Good idea! Installed. :)

---MAD---
12-19-2005, 01:26 PM
looks cool, i may install it later :)

TrueDeath
12-19-2005, 02:23 PM
looks cool, i may install it later :)

Please do ^.^

KTBleeding
12-19-2005, 04:22 PM
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,

Guest190829
12-19-2005, 04:45 PM
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.

TrueDeath
12-19-2005, 06:52 PM
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.

nighteyes
12-19-2005, 08:35 PM
Excellent hack will install when I finally finish our upgrade to 3.5. Will be absolutely perfect AS IS for us.

TrueDeath
12-20-2005, 12:57 AM
Added some FAQ's.

yahoooh
01-13-2006, 07:20 AM
can be used for 3.0.7?

Robert Basil
01-16-2006, 03:56 AM
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?

Robert Basil
02-13-2006, 11:19 PM
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?

TrueDeath
02-14-2006, 01:42 AM
Any ideas on a fix for the above question?

Please get in direct contact so i can replicate this and fix 4 you

Paul M
02-14-2006, 02:36 AM
I haven't looked at it, but you can't normally call a cron script direct.

Robert Basil
02-14-2006, 02:40 AM
I haven't looked at it, but you can't normally call a cron script direct.

I tried that as well but no luck. Most of my servers run on Linux but the one I'm having trouble with is a Windows box.

SwissPegasus
02-23-2006, 08:25 AM
Hy

I try this the last night. The Idea was to turn off the forum for about 5 minutes.
Install was not a problem, also the add of the both cronjobs. But...there was nothing going on. There is no entry in the log for the off an also not for the forum on.

So, now i don't know whats going on and whats not going on.

Anybody any idea?

cu
SwissPegasus

Edit: If i start this manualy in the admin cp, everything works fine. Maybe there is a problem on building datastore?

TrueDeath
04-04-2006, 06:51 AM
*Works fine on 3.5.4* :)

Neo_obs
07-01-2006, 09:11 AM
for some reason it is not turning the forum back on

could this be because cron jobs dont work while the forum is offline? (read that on VB.com)

also running 3.5.0

anychance we can get it to just turn off the forum for 10 minutes or 15 minutes and then turn it back on? instead of having 2 cron jobs. And anything that will display a custom message?

Bulent Tekcan
07-05-2006, 09:48 AM
This cron working in my forum,I see in schedule.But forum not closed.

Any idea for that ?

Edit: Same problem for me

Hy

I try this the last night. The Idea was to turn off the forum for about 5 minutes.
Install was not a problem, also the add of the both cronjobs. But...there was nothing going on. There is no entry in the log for the off an also not for the forum on.

So, now i don't know whats going on and whats not going on.

Anybody any idea?

cu
SwissPegasus

Edit: If i start this manualy in the admin cp, everything works fine. Maybe there is a problem on building datastore?


Also I find this message from vb

http://www.vbulletin.com/forum/showpost.php?p=952367&postcount=2

TrueDeath
07-05-2006, 11:44 AM
This cron working in my forum,I see in schedule.But forum not closed.

Any idea for that ?

Edit: Same problem for me




Also I find this message from vb

http://www.vbulletin.com/forum/showpost.php?p=952367&postcount=2

Ill see what i can do when i get Home.

Bulent Tekcan
07-06-2006, 05:30 AM
Are you still in work :)

TrueDeath
07-06-2006, 01:38 PM
Ok attachment updated, please tell me if you have any more problems :)

Bulent Tekcan
07-07-2006, 06:08 AM
Did you try this cron realy ? Because still same,cron is working I see in logs,manual working is OK but automatic closed still not working.

Neo_obs
07-08-2006, 08:33 AM
now it doesnt turn off forums.

it turned them off for me before but now it doesnt.

Neo_obs
07-08-2006, 09:04 AM
i get an unexpected t_string on line 26

it appears it doesnt like semi colons

Neo_obs
07-23-2006, 09:14 AM
CAN anyone get this working the right way?