Redirct from homepage to member.php???

I need help here.  In index.php page, i already changed from

define('BX_INDEX_PAGE', 1); to  define('BX_JOIN_PAGE', 1);

That's for splash. If not-logged-in members go to www.homepage.com, it will take them to the splash page.  The splash part works great but now how do i redirect logged-in mebers if they go to our homepage like www.homepage.com?  I want to take logged-in members to member.php page, not homepage?

I feel that the homepage is overwhelming and another wasting page. I need to get rid of it. 

Any ideas? Thanks!

Patrick

Quote · 8 Feb 2011

You can do so

Add this code to you splash page, but rember it should be written in PHP

require_once( 'inc/header.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'admin.inc.php' );

require_once( BX_DIRECTORY_PATH_INC . 'db.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'profiles.inc.php' );

if ($_COOKIE[memberID]) {
header("Location: http://".$_SERVER[SERVER_NAME]."/member.php");

}

Maybe some of those files are not required, I do not remember which ones are required, but it will work anyway.

The php splash page should be located in your Dolphin root.

Let me know if you need further asisstance

Web Development, Multimedia Design and Social Media.
Quote · 8 Feb 2011

Thank you so much!! I appreciate your help.  It works great.  Perfect answer!  Laughing

You can do so

Add this code to you splash page, but rember it should be written in PHP

require_once( 'inc/header.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'admin.inc.php' );

require_once( BX_DIRECTORY_PATH_INC . 'db.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'profiles.inc.php' );

if ($_COOKIE[memberID]) {
header("Location: http://".$_SERVER[SERVER_NAME]."/member.php");

}

Maybe some of those files are not required, I do not remember which ones are required, but it will work anyway.

The php splash page should be located in your Dolphin root.

Let me know if you need further asisstance

 

Quote · 8 Feb 2011
Oh and remember to put that code at the begin of your file, before any other function. If you send a PM to me I can give you a more detailed code later, i am a little in hurry now =D
Web Development, Multimedia Design and Social Media.
Quote · 8 Feb 2011

Yes, worked great.  Yobilab you are a genius!

Quote · 12 Oct 2011
 
 
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.