![]() |
Need to turn on/off all the forum at set times
Could anyone help me with this task. I need to activate the turn off function at 18:30 at nite and reactivate it at 06:00 Monday to friday. Also off all weekend. How would it carry this out as a scheduled task?
I have seen some sql querys that would do it....but the task window only uses php. I'm sure this can be done :ermm: |
Ok, so a few views but no responses as of yet. Hope I'm asking this in the right forum, I believe I am.
Right what I have learnt so far is that there are query's I can run, that allow me to turn off and on vb........ Quote:
Quote:
So now I understand these can be put into 2 php files, boardoff.php and boardon.php. These can then be run from the cron folder via scheduled tasks. What I need is the php code that I need to put into each file for each function. I assume its just a bit of php telling it to run the following query. But I know sod all about php coding, well very little! Can anybody help? Thanks in advance, Boss |
Unashamedly bumped
|
no guaranty cause I am no coder but try
as 1st line: <?php and as last: ?> between that your query hope it helps |
Use this ;
Code:
<?php |
All times are GMT. The time now is 02:42 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|