Wordpress plugin: Redirect after login...

Discussion in 'Customization & add-ons' started by sc0tsman, Mar 30, 2011.

  1. sc0tsman

    sc0tsman Member

    Joined:
    Nov 25, 2009
    Messages:
    119
    Is it possible to have my homepage as my login page then have it redirect to another page after login?

    Alex suggested updating my protection folder however that never worked.

    Any ideas guys n girls.
  2. sc0tsman

    sc0tsman Member

    Joined:
    Nov 25, 2009
    Messages:
    119
    I was thinking of a landing page with the WP aMember login box would that be possible and if so where can I get the WP aMember login box code from please?
  3. sc0tsman

    sc0tsman Member

    Joined:
    Nov 25, 2009
    Messages:
    119
    OK i sorted out a basic landing page however it loops back to login and doesn't redirect anyone got any idea why not ?

    PHP:
    <!-- Widgetized Sidebar -->
    <
    div class="widgetized">
    <
    div id="amemberwidget-3" class="block widget widget_text"><h2></h2> <form name="loginform" id="loginform" action="http://www.------------.tv/amember/login.php" method="POST">
    <
    p><label>Login</label><br/>
    <
    input type="text" name="amember_login" class="input" id="user_login" size="15"></p>
    <
    p><label>Password</label><br/>
    <
    input type="password" name="amember_pass" id="user_password" class="input" size="15"></p>
    <
    input type="hidden" name="amember_redirect_url" value="/beta/?page_id=521">

    <
    class="submit">
    <
    input type="submit" name="wp-submit" id="wp-submit" value="Login">
    </
    p>
    </
    form>
    <
    p><a href="http://www.------------.tv/amember/signup.php">Signup Here</a><br/> <a href="http://www.------------.tv/amember/member.php">Lost Password</a></p>

    </
    div>
    </
    div>

    <!-- 
    Widgetized Sidebar -->
  4. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,274
    From this code user will be redirected to /beta/?page_id=521 Is this login page? or page with content?
  5. sc0tsman

    sc0tsman Member

    Joined:
    Nov 25, 2009
    Messages:
    119
    Login always reverts back to login landing page.

Share This Page