Topic-icon How do I get the large share button?

Active Subscriptions:

None
7 years 6 months ago - 7 years 6 months ago #59900 by dageke
Hi again, from what I read on Facebook Developers, there is a choice of Share Button - small or large. The code seems to involve "data-size"

Is there a way I can get the large size? I don't see it under "Content Plugin - K2 Like"

Ex: www.thailandstidende.com/component/k2/it...-000-hus-til-fattige

I have both Twitter and Facebook buttons, but I don't really need Twitter, if they don't have a large button same as Facebook...


One more thing: Under Social - Notifications/Analytics there is the option "Send Email Notification on New Likes". If I only have the Facebook Share button activated, will I get a notification on every share...? How about if I have both Twitter Tweet and Facebook Share activated?
Last edit: 7 years 6 months ago by dageke.
The topic has been locked.
Support Specialist
7 years 6 months ago #59908 by alzander
The data-size="large" looks like a new attribute. We'll have to add support for that.

Right now, if you set the Layout Size the 'Box' in the Social settings area, it should create a larger Share buton for you, but may be the older style. Test and let us know if that improves things.

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

None
7 years 6 months ago #59909 by dageke
Hi, I'm not able to locate where to "set the Layout Size the 'Box' in the Social settings area", could you provide some more detail?

Also, did you see my second questions?:

One more thing: Under Social - Notifications/Analytics there is the option "Send Email Notification on New Likes". If I only have the Facebook Share button activated, will I get a notification on every share...? How about if I have both Twitter Tweet and Facebook Share activated?
The topic has been locked.
Support Specialist
7 years 6 months ago #59914 by mel

Hi, I'm not able to locate where to "set the Layout Size the 'Box' in the Social settings area", could you provide some more detail?

In JFBConnect backend > Social > Content Plugin - K2 Like, once the option for "Show in K2 Item View", "Show in K2 Category View", etc are set to Top, Bottom or Both, then the "Layout Style" option becomes available. The setting value that Alex was referring to is called box_count

One more thing: Under Social - Notifications/Analytics there is the option "Send Email Notification on New Likes". If I only have the Facebook Share button activated, will I get a notification on every share...? How about if I have both Twitter Tweet and Facebook Share activated?

This is only for Facebook Like actions, not Shares. We are subscribing to the edge.create and edge.remove events. You can read more about the events here if you would like more information about available events.

-Melissa
The topic has been locked.
Active Subscriptions:

None
7 years 6 months ago #59919 by dageke
Hi, the Box_count doesn't work for me, because I don't want the Number, just the Button... And the button didn't increase in size anyway...

Keep me posted when you have support for the larger button, or if you can think of some kind of workaround I can use

Best
The topic has been locked.
Support Specialist
7 years 6 months ago #59932 by mel
Ahh gotcha. In 7.0.3 we added support for the new size options for the FB widgets, but it doesn't look like that got incorporated into the jfbccontent plugin yet.

In /plugins/content/jfbccontent/jfbccontent.php

1) around line 188 you can replace
$likeHTML .= '{JFBCLike layout=' . $buttonStyle . ' show_faces=' . $showFaces . ' share=' . $showShareButton
                . $widthField . ' action=' . $verbToDisplay . ' font=' . $font
                . ' colorscheme=' . $colorScheme . ' href=' . $url . $this->renderKeyString . '}';
with
$likeHTML .= '{JFBCLike size=large layout=' . $buttonStyle . ' show_faces=' . $showFaces . ' share=' . $showShareButton
                . $widthField . ' action=' . $verbToDisplay . ' font=' . $font
                . ' colorscheme=' . $colorScheme . ' href=' . $url . $this->renderKeyString . '}';

and 2) around line 203 replace
$likeHTML .= '{JFBCShare layout=' . $style . $widthField . ' href=' . $url . $this->renderKeyString . '}';
with
$likeHTML .= '{JFBCShare size=large layout=' . $style . $widthField . ' href=' . $url . $this->renderKeyString . '}';

This is untested, but should be a pretty simple fix. Choose whatever layout style you want and the above will hardcode it to the large size button. I can add an issue to the tracker to add this as an option in the next release.

-Melissa
The topic has been locked.
Active Subscriptions:

None
7 years 6 months ago #59939 by dageke
Hei, I did this, but to no effect. I've cleared cache on server and in my browser and waited.... but still no large button.

www.thailandstidende.com/component/k2/it...tudietur-til-myanmar
The topic has been locked.
Support Specialist
7 years 6 months ago #59944 by mel
Hmm. I just ran that code change on our test site and verified that the larger style share button was present, just by putting "size=large" into the easy-tag. I get
File Attachment:

instead of
File Attachment:


Looking at your Autotune results, the last time you ran Autotune was for version 6.5.3. Just double-checking that you've upgraded to the latest JFBConnect which has support for this size parameter?
The topic has been locked.
Active Subscriptions:

None
7 years 6 months ago #59949 by dageke
Hi, I ran Autotune. Still not getting a larger button...
The topic has been locked.
Support Specialist
7 years 6 months ago #59956 by mel
It looks like you have 7.0.2. The support for the size option was added in 7.0.3. Updating to .3 plus the small change should hopefully do it.

Changelog - www.sourcecoast.com/jfbconnect/docs/general/changelog
The topic has been locked.