WordPress.org

Ready to get started?Download WordPress

Forums

BuddyPress Facebook
[resolved] Check field visibility before showing the button (3 posts)

  1. Nio
    Member
    Posted 1 year ago #

    I think is important to check field's visibility before showing the button, so I modified the facebook-members-extension.php file, by replacing the line 27, with this:

    <?php if ( bp_current_user_can( 'bp_xprofile_get_privacy_levels' ) ) : ?>
    <a class="bp-fb-profile" target="_blank" href="<?php echo $fbcj_username; ?>" ><img src="<?php bloginfo('wpurl'); ?>/wp-content/plugins/buddypress-facebook/img/facebook_social.gif" /></a>
    <?php endif ?>

    I also added the target="_blank", maybe this should be an option in plugin settings or just added by default to open in new tab/window.

    Great plugin, thanks, Samuel Costa!
    This could be easily be extended for others social networks... LinkedIn, Twitter, G+...

    http://wordpress.org/extend/plugins/buddypress-facebook/

  2. Samuel Costa
    Member
    Plugin Author

    Posted 1 year ago #

    i has changed. the update will be released soon.
    tks for cooperation!

  3. Nio
    Member
    Posted 1 year ago #

    My pleasure, thank you.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic