We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

redirect after registration not working

Development and Programming

techyogi's avatar
techyogi
35 posts
17 years ago
techyogi's avatar techyogi

np. in fact when i am done with this site, i am going to send you my code for 2 modules, ~12 plugins and 1 half working extension as a thank you for all your input on my EE issues.

the one you may like right away is the redirect_helper plugin which sets the return url for the login form to be the previous page before the login. i use it like this {form_declaration return="{exp:tbn_redirect_helper}”}

please feel free to repurpose any of it.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
17 years ago
Mark Bowen's avatar Mark Bowen

You are too kind. Definitely looking forward to all that lot. Very kind indeed.

Actually the login form re-direct part I did get working with a cookie based solution which I posted about in the WIKI so that you can have multiple log-in return pages which is quite nice but definitely would like to see that plugin so thanks for the kind offer.

Speak to you soon.

Best wishes,

Mark

       
techyogi's avatar
techyogi
35 posts
17 years ago
techyogi's avatar techyogi

yea i saw that and it’s a nice implementation, but i must do this server side….

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
17 years ago
Mark Bowen's avatar Mark Bowen

Well I’m definitely interested in seeing all those goodies that you have promised 😉 Do you have a teaser list at all 😉

Best wishes,

Mark

       
theVitalPath's avatar
theVitalPath
23 posts
15 years ago
theVitalPath's avatar theVitalPath

this thread looks like it was from a while ago, but still, just in case anyone else is wondering, you need to edit the following file: mod.member_register.php in the modules/member folder.

around the end of the file (for me its around lines 833-838) you have:

$data = array(    'title'     => $LANG->line('mbr_registration_complete'),
                        'heading'    => $LANG->line('thank_you'),
                        'content'    => $LANG->line('mbr_registration_completed')."\n\n".$message,
                        'redirect'    => '',
                        'link'        => array($return, $site_name)
                     );

you can put in $_POST[‘RET’] in the redirect area so it looks like this:

'redirect' => $_POST['RET'],

Now, you may want to run some tests first not to just take in any POST form and also make sure its not blank.

Hope this helps someone…I know there was another post about doing this, but it mentioned editing the mod.member.php file rather than mod.member_register.php

       
1 2

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.