ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Return parameter in forum module login form?

February 01, 2012 3:33pm

Subscribe [2]
  • #1 / Feb 01, 2012 3:33pm

    imagehat

    68 posts

    It doesn’t appear to be possible, but I’m wondering if you can set a return parameter in the forum module login form. E.g. the in the forums themes forum_login/login_form.html template? I’d like to continue using the forum login form but redirect logged in user to a different starting page than the forum home.

    Or is that kind of flexibility only available in a normal template using the {exp:member:login_form} tag?

    thanks!

  • #2 / Feb 02, 2012 7:12pm

    Sean C. Smith

    3818 posts

    Hi imagehat,

    I am unable to find any information on that at the moment. I am going to ping one of the devs to give a definitive answer on that for you though.

    Sean

  • #3 / Feb 03, 2012 10:29am

    imagehat

    68 posts

    Thanks Sean. After a little digging in the module code I’m thinking the answer will be no.

    For now I’ve worked around it with a bit of javascript that tweaks the hidden “RET” input to make the client happy, but it would be good to get the definitive answer. (And make a feature request if need be).

  • #4 / Feb 03, 2012 3:21pm

    Robin Sowell

    13255 posts

    Ah- indeed, there isn’t a parameter for it.  That said- you could (as an alternative to the JS) just hard code in the RET as a hidden field.  With forms, if the same field is specified twice, only the last one ‘counts’ if you will.

    So:

    {form_declaration}
    <input type="hidden" name="RET" value="http://127.0.0.1:8888/g20/index.php/somewhere_else/" />
    <div class="spacer"> </div>

    That said?  It would make a good feature request.  For almost any form, it’s nice to know you can override the return!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases