WordPress.org

Ready to get started?Download WordPress

Forums

SimpleModal Login
SimpleModal Login Not working with Buddypress (7 posts)

  1. Chris Collins
    Member
    Posted 3 years ago #

    I can't get simpleModal to work with my buddypress child theme. All it does is redirect to the wordpress login page.

  2. Eric Martin
    Member
    Plugin Author

    Posted 3 years ago #

    Chris, I haven't used BuddyPress, so I'm not sure what the issue is.

    I'll try to investigate soon, but am pretty short on free time right now.

    If you are able to find anything out, let me know.

    Thanks,
    Eric

  3. Chris Collins
    Member
    Posted 3 years ago #

    Well the only thing I can think of may be this.

    Buddypress has its whole huge library of files. Some of them replace the wordpress default ones.

    This is what I do know, when I try to use your plugin with a regular wordpress site, it works great. On a buddypress enabled site it redirects to the wordpress login.

    What files of wordpress's does SimpleModal Login change?

  4. Eric Martin
    Member
    Plugin Author

    Posted 3 years ago #

    So, I downloaded the BuddyPress plugin and was able to get SimpleModal Login working.

    I opened plugins/buddypress/bp-core/bp-core-adminbar.php and changed:

    echo '<li class="bp-login no-arrow"><a href="' . $bp->root_domain . '/wp-login.php?redirect_to=' . urlencode( $bp->root_domain ) . '">' . __( 'Log In', 'buddypress' ) . '</a></li>';

    To:
    echo '<li class="bp-login no-arrow"><a class="simplemodal-login" href="' . $bp->root_domain . '/wp-login.php?redirect_to=' . urlencode( $bp->root_domain ) . '">' . __( 'Log In', 'buddypress' ) . '</a></li>';

    If that doesn't work for you, let me know.

  5. Eric Martin
    Member
    Plugin Author

    Posted 3 years ago #

    Chris, can you please let me know if my suggestion worked or not and mark the topic resolved if it did.

    Thanks,
    Eric

  6. TG16
    Member
    Posted 3 years ago #

    Hello Eric,
    I'm new to buddypress too but what I gatherd from online information - it is recommended to create new file bp-custom.php and then add any new features in that file rather than modifying bp-core files.
    Your plugin is really good. But I would like to know if you are going to make it work with Buddypress in near future? ie., adding all fields that are in Buddypress registration to your SimpleModal? That would be really helpful.
    By the way your blog theme is very impressive.

  7. Eric Martin
    Member
    Plugin Author

    Posted 3 years ago #

    Thanks TG16.

    I think integration with BuddyPress would be nice, but I haven't had the time to evaluate the feasibility and time required to make that happen.

    I'll keep it in mind when I find some time though.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic