Closed (fixed)
Project:
AddThis
Version:
6.x-3.0-beta2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Mar 2011 at 20:59 UTC
Updated:
17 Mar 2012 at 22:47 UTC
Jump to comment: Most recent file
Comments
Comment #1
Treidge commentedTry this: go to admin/settings/addthis/custom, open collapsed field called "Add a service customization", and fill the form with following details ( from top to bottom ).
Service code:
facebook
HTML classes: <----- not sure if this one is necesarry
addthis_button_facebook_like
HTML attributes: <----- this one is what you're looking for
fb:like:width="150"
This should help, I think.
Comment #2
les limTreidge has the right idea. A few notes:
1) I think univac would be trying to redefine the "facebook_like" service code, so that's what should be used in the service customization.
2) The HTML class is definitely necessary when doing a custom service.
3) In order to generate the HTML exactly from the example, the HTML attributes should be like this:
fb:like:layout="button_count" fb:like:width="150"Comment #3
BrockBoland commentedI'm seeing the same issue. The count is available in the DOM within an iframe, but has a CSS class that's hiding it.
Before I realized there was a Customize Services tab I used the alter hook to implement the same solution (I think I'm looking at the same thread as univac: http://www.addthis.com/forum/viewtopic.php?f=3&t=29733):
This is outputting that
fb:like:widthattribute correctly, and it does use that width for theiframe, but the like counttdstill has thehidden_elemclass that has thedisplay:noneproperty on it.I also compared the output from the
facebook_like_counterandfacebook_likeoptions and they seem to be the same:facebook_like_counterjust adds an attribute (fb:like:layout="button_count"), but according to the an AddThis employee (second comment here: http://www.addthis.com/forum/viewtopic.php?f=5&t=26854) that's the default layout anyway.I'm not sure if this is an issue with this module or with the AddThis API.
Comment #4
Frederic wbase commentedBumping, i have the same problem. Changing the width of the button to 150px with the custom service doesen't fix it. Does any one has a real solution for this?
Since the widget translates the string on the button, wouldn't it be better to give the button a flexible width, calculated on the size of the string?
Comment #5
kenzol commentedDoes anyone know something new concerning this issue?
Comment #6
Frederic wbase commentedWell, for me the problem seems to be fixed. From the moment that the likke button is clicked for the first time the counter apears
Comment #7
knalstaaf commentedNot for me it isn't :)
Tried all of the above to no avail so far.
Comment #8
knalstaaf commentedComment #9
knalstaaf commentedOk, found the solution:
I went to
admin/settings/addthis/custom, and filled out the following fields:(See attachment)
Pretty much what's being described above.