Skip to:
Content
Pages
Categories
Search
Top
Bottom

Login section ideas & questions

  • Avatar of Mike Pratt
    Mike Pratt
    Participant

    @mikepratt

    Currently running bleeding everything but this is generally a 1.2 related topic:

    Re: the login area and functionality in sidebar.php for bp-default theme. I am soliciting ideas for handling the following situations, which, imho, could be handled better in the current state.

    -> User inputs incorrect username or password. Result: redirect to error message as part of /wp-login page. Issue: you leave the themed site environment to the WP admin environment. Fatal? No. But I’d like to keep the user on the same page or similar, keep the feel the same and provide an error message and get them back on track.

    I can add a “lost password” link but that is only to the wp-login url -> http://domain.com/wp-login.php?action=lostpassword and the experience is still WP back end.

    So my question is: Is this a matter of skinning the few WP related pages somehow or recreating them in the BP world? I know it may seem trivial to some but it’s throwing many of my users (maybe that’s saying something in and of itself :-)

Viewing 4 replies - 1 through 4 (of 4 total)
  • Avatar of Bowe
    Bowe
    Participant

    @bowromir

    Mike to solve your problem with the login direction thing.. I’ve solved that with some jquery stuff which opens the reset password dialog:

    examples:

    http://emberapp.com/bowromir/images/firefox-6

    http://emberapp.com/bowromir/images/firefox-7/

    The code to display the reset password:

    <h6>If you've forgotten your login details you can reset your password. Fill in your email or username and you'll receive an email with further instructions on how to reset your password.</h6><p></p>
    <form name="lostpasswordform" id="lostpasswordform" action="<?php echo site_url('wp-login.php?action=lostpassword', 'login_post') ?>" method="post">
    <p>
    <label><?php _e('Username or E-mail:') ?><br />
    <input type="text" name="user_login" id="user_login" class="loginpanel" value="<?php echo esc_attr($user_login); ?>" size="20" tabindex="10" /></label>
    </p>
    <?php do_action('lostpassword_form'); ?>
    <p class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button-primary" value="<?php esc_attr_e('Get New Password'); ?>" tabindex="100" /></p>
    </form>

    Another thing you could do for the time being is style the wp-login page with your own logo:

    http://wordpress.org/extend/plugins/bm-custom-login/

    Avatar of Bowe
    Bowe
    Participant

    @bowromir

    Ow and you can solve the logout redirect like this:

    http://themysite.com/wp-login.php?action=logout&redirect_to=http://mysite.com

    :)

    Avatar of Bowe
    Bowe
    Participant

    @bowromir

    Sorry for the tripple post.. the correct logout redirection is:

    <?php echo wp_logout_url(site_url() ); ?>

    Avatar of Mike Pratt
    Mike Pratt
    Participant

    @mikepratt

    interesting approach, Bowe. Thanks for the idea. Trying now.

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.