Redirect to member.php after joining as a new user

How can I redirect a new member following the join form to member.php rather than /m/avatar/&join_text=_EMAIL_CONF_SENT ? We achieved this with our 7.0.9 version but I can't remember how!

Quote · 10 Nov 2012

It looks like this is controlled in BxDolJoinProcessor.php via the following line:

        if ('EXIT' == BxDolService::call('avatar', 'join', array ($iMemID, $sStatusText))) {

Any ideas what to change for the page to direct to 'member.php' after signing up? 

Quote · 10 Nov 2012

http://www.boonex.com/m/Redirect_to_any_page_after_logon_

Quote · 10 Nov 2012

404 Page Not Found.

Does it cover redirection following a JOIN though... or simply LOGON? 

Quote · 10 Nov 2012

 

http://www.boonex.com/m/Redirect_to_any_page_after_logon_

 Paste link in your browser - Redirect to any page after logon. This is a frre product by deano92964

Quote · 11 Nov 2012

I already applied this customisation - it's for logon... not sign-up redirection.

Quote · 11 Nov 2012

Any ideas for this? It's for redirection after joining as a new user (as per the topic subject title), not logging on. I'd like the page to default to member.php and not avatar.

Quote · 11 Nov 2012

Hello

Take a look at inc/classes/BxDolJoinProcessor.php file -> showFinishPage function. You may replace the following code

if ('EXIT' == BxDolService::call('avatar', 'join', array ($iMemID, $sStatusText))) {
exit;
}

with this one

if($iMemID) {
header("Location: " . BX_DOL_URL_ROOT . "member.php");
exit;
}

I think it should work. If the you need you may add check for the exact result ($sStatus) in IF statement.

Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV
Quote · 12 Nov 2012

Thanks Anton - this works find with our Facebook Connect login (it goes to member.php and also logs the user in with the new information), however, the standard join.php form adds the new user to the database and sends them to member.php but not as a logged in member - it shows the view of a logged out member. Any ideas how to solve this?

Quote · 12 Nov 2012

The problem appears because of "Auto Login" action is performed in Avatar module just berfore redirection to create avatar page. Try to add  

bx_login ((int)$iMemID);

just before header(...); line in the code I've posted.

Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV
Quote · 12 Nov 2012

Job done, many thanks AntonLV!

Quote · 12 Nov 2012

You are welcome! :)

Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV
Quote · 13 Nov 2012

 

You are welcome! :)

 Hi Anton.. How to redirect to profile edit page instead?

Quote · 7 Jul 2013

simply change the header line to this to redirect to profile edit page.

header("Location: " . BX_DOL_URL_ROOT . "pedit.php?ID=".$iMemID);

so much to do....
Quote · 7 Jul 2013

 

simply change the header line to this to redirect to profile edit page.

header("Location: " . BX_DOL_URL_ROOT . "pedit.php?ID=".$iMemID);

 Thanks Prashank...

Quote · 7 Jul 2013

is work fine, but if an user upload an Avatar on join is not insert in this mode, is possible that if an user not insert Avatar go on a determinate page but if user upload Avatar go on page to modification avatar?

Quote · 28 Sep 2014
 
 
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.