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!
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! |
It looks like this is controlled in BxDolJoinProcessor.php via the following line: |
404 Page Not Found. |
Paste link in your browser - Redirect to any page after logon. This is a frre product by deano92964 |
I already applied this customisation - it's for logon... not sign-up redirection. |
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. |
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))) { with this one if($iMemID) { 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 |
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? |
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 |
Job done, many thanks AntonLV! |
You are welcome! :) Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV |
You are welcome! :) Hi Anton.. How to redirect to profile edit page instead? |
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.... |
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... |
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? |