Redirect Guests to splash.php and Join page

I got it for splash page but i forgot about when the user is joining the site how can i make it so they can go to the Join page a sign up without getting Redirect  ( so only the join page and splash.php anyone so be able to use/see)

 

this is for the splash page 

function PageCode($oTemplate = null) {
global $echo;
global $_page;
global $_page_cont;    
global $oSysTemplate;

if(empty($oTemplate))
$oTemplate = $oSysTemplate;

/* Deanos Redirect Guests to splash.php - Code Add - Start */
/* NOTE: If this is a dolphin page that uses the dolphin template system then this */
/* may cause a loop.
if ((int)$_COOKIE['memberID'] == 0) {
header('Location: ' . BX_DOL_URL_ROOT . 'splash.php');
}
/* Redirect Guests to splash.php - Code Add - End */

header( 'Content-type: text/html; charset=utf-8' );
$echo($oTemplate, 'page_' . $_page['name_index'] . '.html');
}

Quote · 21 Aug 2011

Updated code to take care of that problem.

/* Deanos Redirect Guests to splash.php - Code Add - Start */
/* NOTE: If this is a dolphin page that uses the dolphin template system then this */
/* may cause a loop. */
if ((int)$_COOKIE['memberID'] == 0) {
    if ($_page['header'] != 'Join') {
        header('Location: ' . BX_DOL_URL_ROOT . 'splash.php');
    }
}
/* Deanos Redirect Guests to splash.php - Code Add - End */

https://www.deanbassett.com
Quote · 21 Aug 2011

Thanks a lot worked

Quote · 21 Aug 2011

 Do you know how i can get the Forget password ,About Us Privacy Terms Invite A Friend FAQ Help  Contact us

 

pages to work without getting Redirect 

thanks

Quote · 25 Aug 2011

Yes. Use this code instead.

/* Deanos Redirect Guests to splash.php - Code Add - Start */
/* NOTE: If this is a dolphin page that uses the dolphin template system then this */
/* may cause a loop. */
if ((int)$_COOKIE['memberID'] == 0) {
    if (
        $_page['header'] != 'Join' &&
        $_page['header'] != 'About Us' &&
        $_page['header'] != 'Privacy Policy' &&
        $_page['header'] != 'Terms of use' &&
        $_page['header'] != 'FAQ' &&
        $_page['header'] != 'Invite a friend' &&
        $_page['header'] != 'Contact us' &&
        $_page['header'] != 'Help' &&
        $_page['header'] != 'Advice' &&
        $_page['header'] != 'Forgot password?'
        ) {
        header('Location: ' . BX_DOL_URL_ROOT . 'splash.php');
    }
}
/* Deanos Redirect Guests to splash.php - Code Add - End */

https://www.deanbassett.com
Quote · 25 Aug 2011

Thanks 

All worked but Forgot password? "forgot.php"


Quote · 25 Aug 2011

Sorry. It's case sensitive. The p in password needs to be uppercase. Password.

/* Deanos Redirect Guests to splash.php - Code Add - Start */
/* NOTE: If this is a dolphin page that uses the dolphin template system then this */
/* may cause a loop. */
if ((int)$_COOKIE['memberID'] == 0) {
    if (
        $_page['header'] != 'Join' &&
        $_page['header'] != 'About Us' &&
        $_page['header'] != 'Privacy Policy' &&
        $_page['header'] != 'Terms of use' &&
        $_page['header'] != 'FAQ' &&
        $_page['header'] != 'Invite a friend' &&
        $_page['header'] != 'Contact us' &&
        $_page['header'] != 'Help' &&
        $_page['header'] != 'Advice' &&
        $_page['header'] != 'Forgot Password?'
        ) {
        header('Location: ' . BX_DOL_URL_ROOT . 'splash.php');
    }
}
/* Deanos Redirect Guests to splash.php - Code Add - End */

https://www.deanbassett.com
Quote · 25 Aug 2011

Your the best! thanks for the fast answers working

Quote · 25 Aug 2011

Great patch!!

I will make a guest can visit all mainpages from the modules.

What I must insert for News, Blogs and Orca????

All other modules are working but this don't...... Cry

Please help and many thanks for your excellent help!!!

Rappi

Bezirzer.de, elbrocker.de, tierschutz-community.de
Quote · 20 Sep 2011

And the Mainpage (index.php) don't working too Cry

Bezirzer.de, elbrocker.de, tierschutz-community.de
Quote · 20 Sep 2011

This was designed to redirect guests to a spash page. The index page is not suppose to work for guests. Otherwise there is no point to this mod.

https://www.deanbassett.com
Quote · 20 Sep 2011

Ok, but what is with the modules?

It's the same as the pages (About us, Help, ...)

With the Bands and Sites Module all is working fine. Guests can show the mainpage from this modules and no one more.

Only the News, Blogs and Forum don't work.

Rappi

Bezirzer.de, elbrocker.de, tierschutz-community.de
Quote · 20 Sep 2011

Ok. Forget it.

I have make a Guest-Membershiplevel with many restrictions and a hidden loginformular, that give the guest-logon to Dolphin. So guests can login and test the site with one click on "Logon as guest".

Rappi

Bezirzer.de, elbrocker.de, tierschutz-community.de
Quote · 20 Sep 2011

Hello Deano

 

i have page in other language and dont work me with header

 

how redirect to url , url1, url2, url3 ...

Quote · 21 Apr 2016
 
 
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.