The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Open and close forum by cronjobs?
Can you please tell me how can I write a script that will use cronjobs and will be able to make a forum open and visible at a certain time and close it and make invisible at a certain time as well?
Thank you! |
#2
|
||||
|
||||
Your cronscript will have to change the forums database entry so that it's invisible/closed.
I would recommand making two scripts, one to open and one to close the forums. |
#3
|
|||
|
|||
I'm not too good in PHP, maybe you show me simple example of that script?
Thank you! |
#4
|
||||
|
||||
it would have to have
require_once(global.php); and would need to do something like: $DB_site->query("UPDATE " . TABLE_PREFIX . "forums SET x = y WHERE forumid = z"); |
#5
|
|||
|
|||
Thank you! Now I got it!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|