I am working on my site and wish to not allow any members to join, how do I put something like "Under Construction" message whilst it is being made ready.
Thanks
I am working on my site and wish to not allow any members to join, how do I put something like "Under Construction" message whilst it is being made ready. Thanks |
hello just create a page named main.html and put this in index.php if (!isAdmin()) { header ("Location: main.html"); exit; } and use the backend admin login. anyone who is not admin will go to main.html. Good luck so much to do.... |
I tried doing this but no luck in 7.1. Added the main in the main directory and in template. Added the code in index.php but I dont get redirected. Also trying to hide this installer from people when I make fresh installs :/ |
It work, add the code after check_logged();
check_logged(); |
hey thanks, ill check it out and let you know! |
This is a pretty easy work around I use all the time.. http://www.boonex.com/forums/topic/Splash-page-2012-08-21.htm This is just an example, our .htaccess looks different, make backup's ... Apache looks for file names by default (in the order they appear): [edit] make your page, name it anything you want i.e. splash.html but make sure you do the same in .htaccess DirectoryIndex splash.html index.php
This is a working example for you to see. ManOfTeal.COM a Proud UNA site, six years running strong! |
Modification to the upper one. This will redirect users from anywhere on the site. Edit inc/design.inc.php at line 91 function PageCode($oTemplate = null) { if (!isAdmin()) { header("Location: /main.html"); exit; } global $echo; global $_page; global $_page_cont; global $oSysTemplate;
if(empty($oTemplate)) $oTemplate = $oSysTemplate;
header( 'Content-type: text/html; charset=utf-8' ); $echo($oTemplate, 'page_' . $_page['name_index'] . '.html'); } Add the green code and it should work. Everything is same like the previous one. Just now it will redirect from any page. Enjoy :D
so much to do.... |