Under Construction

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

Quote · 28 Feb 2012

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....
Quote · 28 Feb 2012

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 :/

Quote · 17 Dec 2012

It work, add the code after check_logged();

 

check_logged();

if (!isAdmin()) {
header ("Location: main.html");
exit;
}

Quote · 17 Dec 2012

hey thanks, ill check it out and let you know!

Quote · 17 Dec 2012

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):

index.html
index.htm
home.html
welcome.html

The .htaccess directive "DirectoryIndex" can be used to override this behavior. In your .htaccess file, type the following line:

DirectoryIndex index.html index.php

[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

In the above example Apache is forced to look for index.html first (construction page) and look for index.php only if there is no index.html file present.

 

This is a working example for you to see.

http://mynewbeetle.net/7.1/

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 17 Dec 2012

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....
Quote · 20 Dec 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.