WordPress.org

Ready to get started?Download WordPress

Forums

WP-FB-AutoConnect
[resolved] "Edit Profile" link to BuddyPress profile instead of backend? (6 posts)

  1. SheerHeartAttack
    Member
    Posted 1 year ago #

    Is there a way to do this? I see where it's specified in Widget.php but I'm not sure how to make it dynamically find the current logged-in user's BuddyPress profile URL. Thanks!

    http://wordpress.org/extend/plugins/wp-fb-autoconnect/

  2. justin_k
    Member
    Plugin Author

    Posted 1 year ago #

    The widget was designed to be used in WordPress, as Buddypress includes its own default login widget - so no, for the moment the link is just hardcoded to the WP profile url. I have been asked for this a number of times though, so I'll likely be adding it to the premium widget in a future release - once I've worked out some slightly more critical/important features. Until then, I can only suggest looking through the BP documentation for how to get a link to the BP user's profile.

  3. SheerHeartAttack
    Member
    Posted 1 year ago #

    OK, thanks.

  4. SheerHeartAttack
    Member
    Posted 1 year ago #

    I believe I got it working by changing the following line in Widget.php:

    <a href="<?php echo get_option('siteurl')?>/wp-admin/profile.php"><?php _e("Edit Profile")?></a> | <a href=" <?php echo wp_logout_url( $_SERVER['REQUEST_URI'] )?>"><?php _e("Logout")?></a>

    to

    <a href="<?php echo bp_loggedin_user_domain(); ?>"><?php _e("My Profile")?></a> | <a href=" <?php echo wp_logout_url( $_SERVER['REQUEST_URI'] )?>"><?php _e("Logout")?></a>

  5. justin_k
    Member
    Plugin Author

    Posted 1 year ago #

    Looks good :)

  6. adamfratino
    Member
    Posted 1 year ago #

    Excellent solution, exactly what I was looking for. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.