WordPress.org

Ready to get started?Download WordPress

Forums

Sidebar Login
Registration link (3 posts)

  1. WP AAM
    Member
    Posted 2 years ago #

    Hi jolley_small,
    One request. I was using this plugin several times and always have the same problem - registration link.
    It means I'm not satisfied with standard WordPress registration form that is why I'm using profile builder. And I need no change the link to registration page.
    In your plugin this link is hardcoded. The easiest solution is to add filter for this link in code.

    Thanks,

    http://wordpress.org/extend/plugins/sidebar-login/

  2. WiseCapra
    Member
    Posted 2 years ago #

    I second this motion!
    I'm looking to open the registration page of wp (or simple-forum) in a lightbox after the reg page has been skinned to match the site theme. Sadly the registration link is hardcoded in sidebar-login.php. Now mine is calling "sblogin".

    'theregister'=>__('Register','sblogin'),

    I would like to call:

    <a data-lightbox="transitionIn:elastic;transitionOut:elastic;width:400;height:600;" href="/wp-login.php?action=register&view=forum">Register</a>

    Does anybody have a suggestion which was would be the easiset to change it?

    Cheers,
    Wise

  3. invisnet
    Member
    Posted 2 years ago #

    @WiseCapra: Just ran into a similar issue today.

    As Vasyl Martyniuk said, the problem is that the plugin builds the link itself; it really should call wp_register(). If you change line 170 of sidebar-login.php to:

    $links .= wp_register('<li>','</li>',false);

    in functions.php you can then do something like (N.B. I've not tested this):

    function fixup_link($link) {
        return '<a data-lightbox="transitionIn:elastic;transitionOut:elastic;width:400;height:600;" '.substr($link,3);
    }
    add_filter('register','fixup_link');

    Hopefully the author can be persuaded to change the plugin too....

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic