miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /   

Stop / disable / suspend forums for maintenance ("on/off button")

Author marsbar
Associated Member
#1 | Posted: 1 Dec 2004 12:21 | Edited by: marsbar 
Hello Team,
Would you consider including a 'maintenance mode' feature in future releases? By 'maintenance mode', I am referring to an option to allow miniBB admin to shut down most operations of the discussion board while maintenance is being performed.
I do not know what other miniBB admins do when they need to take their board offline temporarily, but I try to redirect the forum's home page to a page explaining what is going on. Sadly, however, I do not know how to redirect requests to other forum-related pages to the explanation page. If visitors follow a link to a specific topic in my forum, they get a 404 error. So, I think an option to 'switch to maintenance mode' would be very handy and nice to have.
Thanks for your time.
- mb

Author zorglub
Registered
#2 | Posted: 1 Dec 2004 12:30 
maybe you could just change the index.php file to whatever you want...

?action= things wouldn't be interpreted and that's it !

Author Team
8-)
#3 | Posted: 1 Dec 2004 12:33 
When we do upgrades on our site, I do the following:

*) Create index.php1, and paste there something like:

<?php
echo 'Site is temporary unavailable. Please, come again in a few minutes.';
?>

*) Rename index.php to index.php2

*) Rename index.php1 to index.php

;)

*) Set $indexphp='index2.php' in setup_options.php (and set it back to 'index.php' when you're ready).

After roll this back and that's all.

So, sorry... no on/off button ;)

Since miniBB's operation are all based on index.php, I guess, we don't need some "maintenance" mode or something at all.

Author Team
8-)
#4 | Posted: 1 Dec 2004 12:34 
P.S. Yeah, zorglub posted the same time as me and the same thing as me :)

Author marsbar
Associated Member
#5 | Posted: 1 Dec 2004 13:03 | Edited by: marsbar 
Ah, the solution is remarkably simple! Why didn't I think of it before? The problem is not nearly as complicated as I imagined; I did not realise miniBB's operations are all based on index.php.
Many thanks for your very helpful reply, zorglub. And thanks, Team, for making miniBB so easy to switch to 'maintenance mode'! :-D
Cheers,
mb

Author testing
Registered
#6 | Posted: 13 Oct 2005 14:52 
or redirect anyone trying to visit http://www.yourdomain.com/forum/* to whatever u want. This way any one going to any file in that folder is redirected. Its more secure.

Author h4tt3n
Registered
#7 | Posted: 13 Oct 2005 18:37 
Ok, thanks!

h4tt3n

Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications / Stop / disable / suspend forums for maintenance ("on/off button") Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

 ?
You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Install the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB