WordPress.org

Ready to get started?Download WordPress

Forums

Simplified Social Sharing
[resolved] social sharing buttons won't show in Groups (4 posts)

  1. diabolique65
    Member
    Posted 8 months ago #

    Hi,
    The social sharing buttons only show up in the Forum section of our community site, but not in Groups. Groups is actually the core functionality of BuddyPress. Does your product not function for Groups?

    http://wordpress.org/plugins/simplified-social-share/

  2. loginradius
    Member
    Plugin Author

    Posted 8 months ago #

    Hi Diabolique65,

    Please follow the steps mentioned below to resolve the issue:-
    1. Open "wp-content/plugins/simplified-social-share/LoginRadius_socialShare.php" (located in your WordPress website root folder) in your favorite code editor.
    2. Search following code (around line 35) :-

    // show horizontal sharing
    if((isset( $loginRadiusSettings['horizontal_sharehome']) && is_front_page()) || ( isset( $loginRadiusSettings['horizontal_sharepost'] ) && (is_single() || $post -> post_type == 'post')) || ( isset( $loginRadiusSettings['horizontal_sharepage'] ) && is_page() ) || ( isset( $loginRadiusSettings['horizontal_shareexcerpt'] ) && has_excerpt() ) || ( isset( $loginRadiusSettings['horizontal_sharearchive'] ) && is_archive() ) || ( isset( $loginRadiusSettings['horizontal_sharefeed'] ) && is_feed() )){
    if(isset($loginRadiusSettings['horizontal_shareTop'] ) && isset($loginRadiusSettings['horizontal_shareBottom'])){
    $content = $horizontalDiv.''.$content.''.$horizontalDiv;
    }else{
    if(isset($loginRadiusSettings['horizontal_shareTop'])){
    $content = $horizontalDiv.$content;
    }
    elseif(isset($loginRadiusSettings['horizontal_shareBottom'])){
    $content = $content.$horizontalDiv;
    }
    }
    }

    3. Replace the code searched above with following :-

    // show horizontal sharing
    if((isset( $loginRadiusSettings['horizontal_sharehome']) && is_front_page()) || ( isset( $loginRadiusSettings['horizontal_sharepost'] ) && (is_single() || $post -> post_type == 'post')) || ( isset( $loginRadiusSettings['horizontal_sharepage'] ) && is_page() ) || ( isset( $loginRadiusSettings['horizontal_shareexcerpt'] ) && has_excerpt() ) || ( isset( $loginRadiusSettings['horizontal_sharearchive'] ) && is_archive() ) || ( isset( $loginRadiusSettings['horizontal_sharefeed'] ) && is_feed() ) || bp_current_component() == 'groups' ){
    if(bp_current_component() == 'groups'){
    if(current_filter() == 'get_the_excerpt' && (isset($loginRadiusSettings['horizontal_shareTop'] ) || isset($loginRadiusSettings['horizontal_shareBottom']))){
    $content = $horizontalDiv.$content;
    }
    }else{
    if(isset($loginRadiusSettings['horizontal_shareTop'] ) && isset($loginRadiusSettings['horizontal_shareBottom'])){
    $content = $horizontalDiv.''.$content.''.$horizontalDiv;
    }else{
    if(isset($loginRadiusSettings['horizontal_shareTop'])){
    $content = $horizontalDiv.$content;
    }
    elseif(isset($loginRadiusSettings['horizontal_shareBottom'])){
    $content = $content.$horizontalDiv;
    }
    }
    }
    }

    Hope this helps!

  3. WPyogi
    Volunteer Moderator
    Posted 8 months ago #

    @loginradius - please use the code buttons when posting code on these forums -

    http://codex.wordpress.org/Forum_Welcome#Posting_Code

    I've fixed the code above, though it may have been damaged.

  4. loginradius
    Member
    Plugin Author

    Posted 6 months ago #

    Thanks WPyogi!
    Will surely take this into consideration going forward.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.