How to redirect to a custom page after joining using facebook connect?

Any idea how to make the user be redirected to a custom page after he/she joined using facebook connect? Am using version 7.0.5 and it only has to redirect to member, index, pedit, avatar and join. HELp? any ideas?

Quote · 13 Feb 2011

Where do you want the member to be redirected?

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

to a custom page eg. www.mysitename.com/page/something

Quote · 13 Feb 2011

amin/advanced settings/other,

should be able to change it there

Back to pulling my hair out! (ouch, ouch,ouch)
Quote · 13 Feb 2011

Easy.

Use the member setting in the configuration, then modify the code that processes that.

Open modules\boonex\facebook_connect\classes\BxFaceBookConnectModule.php

Look for this at line 392

//check redirect page
switch($this -> _oConfig -> sRedirectPage) {
case 'join' :
return $this -> _getJoinPage($aProfileFields, $aProfileInfo['id']);           

case 'pedit'  :
$sRedirectUrl = BX_DOL_URL_ROOT . 'pedit.php';
break;

case 'avatar' :
$bAvatarRedirect = true;
break;

case 'index'  :
$sRedirectUrl = BX_DOL_URL_ROOT;
break;

case 'member' :
default       :   
$sRedirectUrl = BX_DOL_URL_ROOT . 'member.php';
break;
}


Change member.php to the name of the page you want.

https://www.deanbassett.com
Quote · 13 Feb 2011

Hi, 

Thanks for you support on forums, I did it the same way, but when in signin via fb connect, it is still redirecting to member.php instead of index.php (that's what I need, redirection to index.php)

What I did:

Changed settings in Admin > Modules > FB Connect > Setting > "Redirect page after first sign in" selected index.php in dropdown.

Then I edited: modules\boonex\facebook_connect\classes\BxFaceBookConnectModule.php

and replaced member.php with index.php

case 'member' :
default       :   
$sRedirectUrl = BX_DOL_URL_ROOT . 'member.php';
break;
}

Then cleared the cache via admin panel.

But problem is still there.


Am I missing anything?

 

Easy.

Use the member setting in the configuration, then modify the code that processes that.

Open modules\boonex\facebook_connect\classes\BxFaceBookConnectModule.php

Look for this at line 392

//check redirect page
switch($this -> _oConfig -> sRedirectPage) {
case 'join' :
return $this -> _getJoinPage($aProfileFields, $aProfileInfo['id']);           

case 'pedit'  :
$sRedirectUrl = BX_DOL_URL_ROOT . 'pedit.php';
break;

case 'avatar' :
$bAvatarRedirect = true;
break;

case 'index'  :
$sRedirectUrl = BX_DOL_URL_ROOT;
break;

case 'member' :
default       :   
$sRedirectUrl = BX_DOL_URL_ROOT . 'member.php';
break;
}


Change member.php to the name of the page you want.

 

Quote · 22 Aug 2011

Also, I want the users to redirect to index page instead of member / avatar page, when they Signup...

Quote · 22 Aug 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.