Previous Thread
Next Thread
Print Thread
Hop To
#253829 10/18/2013 9:51 AM
Joined: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
Hi,

I run regular backups in the night dumping my sql.

Does anyone have a way to close the forums for a give time?
Run it on a cron job or such ?

But how?

Cheers


BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo
Joined: Jan 2004
Posts: 2,474
Likes: 3
D
Pooh-Bah
Pooh-Bah
D Offline
Joined: Jan 2004
Posts: 2,474
Likes: 3
If only it were a database setting... but it's not frown

It's in the config array in config.inc.php which is set by dotoggleopen.php (admin)

I think the only way around this would be to write a script to read and set config.inc.php

Mind you saying that, the code you need is in dotoggleopen.php - just not sure how to get around $admin->doAuth()


Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
Okay I found a mod by Yarp at ubbdev for v7.3 that will close the board on a schedule.
https://www.ubbdev.com/forums/ubbthreads.php/topics/317296.html#Post317296


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
I'd say to just make a copy of your config file with the forum closed in one then have cron change your config file from one config to the other during a backup...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
Cheers guys both valid options.

I was also thinking like gizmo to rename the config to a static closed config. Im thinking because its closed its closed so I dont think it would matter what the actual configuration content is as long as it contains the off status and a reason why it could be as simple as that.
However I did like the method on the link too.

Thanks guys.


BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
0 members (), 744 guests, and 147 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)