Topic-icon Wrong order of social buttons, Content Plugin - K2 Like

Active Subscriptions:

None
Hi

i'm using Content Plugin - K2 Like for my K2Items.
I have set to yes show send, twitter and google+ buttons.
Also the layout style is "button_count".
The order they appear from left to right is first the twitter button then google+, then Like and last Send.
How can i change the order? I want Like, Send and then the rest...

I can send in PM the login details... if needed
File Attachment:
File Attachment:
The topic has been locked.
Support Specialist
We don't have a setting that you can use to change the ordering of those buttons. The Like/Send are set to the right because, in the Standard mode, there is text that goes off to the right. So, for that mode, they need to be on the right and that's how we've defaulted them.

If you'd like, we can help provide some code you'd need to modify to re-order things. However, you'd need to make that change every time you upgrade JFBConnect, so be aware that that could get tedious as we provide updates.

Just let us know, and we can try to get you an answer in a day or so.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
ok then no problem, if you could please provide me with the fix code that would be great.
I don't mind doing that every time :rolleyes:
I'll try my best
The topic has been locked.
Support Specialist
Looks like a pretty easy change if you just want Like/Send first, and then the other buttons in the same order they are already in. If so, edit /plugins/content/jfbccontent/jfbcontent.php . Around line 226, you'll see a block of code like:
$buttonText = '<div style="position: relative; top:0px; left:0px; z-index: 98;" class="scsocialbuttons">';
        if ($showLinkedInButton || $showTwitterButton || $showGooglePlusButton)
        {
            $extraButtonText = SCSocialUtilities::getExtraShareButtons($url, $buttonStyle, false, false, $showTwitterButton, $showGooglePlusButton, $renderKeyString, $showLinkedInButton);
            $buttonText .= $extraButtonText;
        }
        $buttonText .= $likeText; // <------ Move this line up
You just need to move that last line above the if statement. When you're done, it will look like:
$buttonText = '<div style="position: relative; top:0px; left:0px; z-index: 98;" class="scsocialbuttons">';
        $buttonText .= $likeText;
        if ($showLinkedInButton || $showTwitterButton || $showGooglePlusButton)
        {
            $extraButtonText = SCSocialUtilities::getExtraShareButtons($url, $buttonStyle, false, false, $showTwitterButton, $showGooglePlusButton, $renderKeyString, $showLinkedInButton);
            $buttonText .= $extraButtonText;
        }
Test that and let us know how it goes.

Good luck,
Alex
The topic has been locked.
Active Subscriptions:

None
It works perfectly, thank you very much.
The topic has been locked.
Support Specialist
Fantastic! Glad to hear that got you the results you were looking for. If you need anything else, just let us know.

Finally, if you haven't already, please consider leaving a rating and review for JFBConnect, or our support, on the Joomla Extension Directory. It certainly isn't required, but is very appreciated:
extensions.joomla.org/extensions/social-...ook-integration/7215

Thanks,
Alex
The topic has been locked.