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,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
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,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
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
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
1 members (1 invisible), 859 guests, and 196 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)