Announcement

Collapse
No announcement yet.

Turn board off and on by cron?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Turn board off and on by cron?

    Hi!

    I would like to have my board turned off an on automatically.
    Can someone help me how to do that?
    Thank you folks.

    Stefan

  • #2
    I don't know how to implement cron jobs, but these are the queries you need to run (courtesy of John):

    Turn Off:
    UPDATE datastore SET data=REPLACE(data,'"bbactive";s:1:"1"','"bbactive";s:1:"0"') WHERE title='options'

    UPDATE setting SET value=0 WHERE varname='bbactive'



    Turn On:
    UPDATE datastore SET data=REPLACE(data,'"bbactive";s:1:"0"','"bbactive";s:1:"1"') WHERE title='options'

    UPDATE setting SET value=1 WHERE varname='bbactive'


    If you use table prefixes then you need to change datastore and setting to include the prefix.

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X