Topic-icon FB-share button does not show unless

Active Subscriptions:

None
9 years 2 months ago #51276 by simonadrian
The Facebook share-button can not be shown in box-button mode without the facebook Like-button.

Earlier - when using the free Fancy-pugin - I had a count for the sharing. I do not want people to like my stories - only my site.

How do I configure it to only show the sharing-button - preferably with a count of sharing.
The topic has been locked.
Support Specialist
9 years 2 months ago #51279 by mel
It looks as if you are using the Content plugin to display the sharing buttons. There is a bug in the current version of 6.2.4 that displays the sharing button only if the Like button is also displayed, but this will be resolved in the next version of JFBConnect. Additionally, if you use the content plugin to display the share, the share button will be for the URL of the page it is displayed on, not the URL of your homepage.

To share your homepage instead of the current URL, you will have to use another option that's not the content plugin. You can either use our SCSocialWidget module or manually add the {JFBCShare} easy-tag to your content. For both cases, you would have to set the URL to your homepage.

Here's a link describing the 3 different ways to add the share:
www.sourcecoast.com/jfbconnect/features/...ook-share-for-joomla

-Melissa
The topic has been locked.
Active Subscriptions:

None
9 years 2 months ago #51290 by simonadrian
When you update the plugin to show Facebook Share button in box-mode independently of the Like-button, then you should also update the module, which has the same problem.

I hope the update is soon to come.
The topic has been locked.
Support Specialist
9 years 2 months ago #51293 by mel
We are not planning on putting out a release until next month. If you'd like to manually make the change, please do the following:

In /plugins/content/jfbccontent/jfbccontent.php, around line 246 replace the function for _getLikeButton that's there with the following:
function _getLikeButton($article, $buttonStyle, $showFacebook, $showFaces, $showShareButton, $showLinkedInButton, $showTwitterButton, $showGooglePlusButton, $showPinterestButton, $width, $verbToDisplay, $font, $colorScheme, $pinImage, $pinText, $renderKeyString, $isJoomla)
    {
        $url = SCArticleContent::getCurrentURL($article, $isJoomla);
        $widthField = '';
        $likeText = '';

        //Only set width for standard layout, not box_count or button_count
        if ($buttonStyle == 'standard')
            $widthField .= ' width=' . $width;

        //show like or with share button
        if($showFacebook)
        {
            $likeText .= '{JFBCLike layout=' . $buttonStyle . ' show_faces=' . $showFaces . ' share=' . $showShareButton
                . $widthField . ' action=' . $verbToDisplay . ' font=' . $font
                . ' colorscheme=' . $colorScheme . ' href=' . $url . $renderKeyString . '}';
        }

        //show share button only
        else if($showShareButton && !$showFacebook)
        {
            if($buttonStyle == 'standard' || $buttonStyle == 'button')
                $style = 'button';
            else if($buttonStyle == 'box_count')
                $style = 'box_count';
            else
                $style = 'button_count';

            $likeText .= '{JFBCShare layout=' . $style . $widthField . ' href=' . $url . $renderKeyString . '}';
        }

        $buttonText = '<div style="position: relative; top:0px; left:0px; z-index: 99;" class="scsocialbuttons '.$buttonStyle.'">';
        if ($showLinkedInButton || $showTwitterButton || $showGooglePlusButton || $showPinterestButton)
        {
            $extraButtonText = SCSocialUtilities::getExtraShareButtons($url, $buttonStyle, false, false, $showTwitterButton, $showGooglePlusButton, $renderKeyString, $showLinkedInButton, '50', $showPinterestButton, $pinImage, $pinText);
            $buttonText .= $extraButtonText;
        }
        $buttonText .= $likeText;
        $buttonText .= '</div><div style="clear:left"></div>';
        $likeText = $buttonText;

        return $likeText;
    }
The topic has been locked.