The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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: |
#2
|
|||
|
|||
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 |
#3
|
|||
|
|||
Unashamedly bumped
|
#4
|
||||
|
||||
no guaranty cause I am no coder but try
as 1st line: <?php and as last: ?> between that your query hope it helps |
#5
|
||||
|
||||
Use this ;
Code:
<?php error_reporting(E_ALL & ~E_NOTICE); if (!is_object($vbulletin->db)) { exit; } $vbulletin->db->query_write(" [high]SQL UPDATE QUERY HERE[/high] "); ?> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|