First of all, thanks for this fantastic module!
However, for the site I'm currently working on, I find that the count bubbles are kind of too large (pure estetics of course, but still...).

Is there an easy way to hide these? (Found a way for google+, but not for the other buttons...)

Thanks in advance for any pointers, and again, thanks a lot for this module! :)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dude4linux’s picture

FileSize
4.34 KB

+1 for eliminating bubbles. Also in my browser, firefox, the icon sizes vary and alignment is slightly off. See the attached screenshot.

alexweber’s picture

Title: Hide count bubbles? » Allow hiding count bubbles
Category: support » feature

Thanks guys for the bug reports, we will try to implement the suggestion.

louielouielouie’s picture

I want this as well, I tried hiding it via css it didn't work, javascript doesn't work as well, preprocess or not, it doesn't work, is there a quick fix for this, while waiting for the patch? I just want to hide it...

dbassendine’s picture

Version: 7.x-2.8 » 7.x-2.9
FileSize
3.96 KB

I have created a patch that will take you most of the way. This patch adds:
* a hide count bubble option for twitter
* a hide count bubble option for linkedin (I've added a configuration section, as there wasn't one previously)

Facebook actually doesn't provide an option for hiding the count in its API, surprisingly (see http://developers.facebook.com/docs/reference/plugins/like/, http://goo.gl/QaXkZ). The best way to do this right now, unfortunately, is to decrease the horizontal width - which thankfully you can already do in the Facebook settings section (I set it to 49). This has drawbacks (like cutoffs in different languages), but it seems to be the only way right now.

This is against 7.x-2.9.

Thanks, David

alexweber’s picture

Status: Active » Needs review

@dbassendine, wow, thanks this is awesome!

I'll take a deeper look and most likely commit it as soon as possible!

Thanks again!!

- Alex

dbassendine’s picture

@alexweber No problem and thanks again for the awesome module!

One thing to flag up: I realised after creating the patch that I haven't declared the variables I've added as you do for the others. This should be easy enough to add in when you review, but let me know if you'd like me to add this to the patch.

Thanks! David

alexweber’s picture

David, dude if you could please take a couple extra to do that it would really help me out! :)

I have tons on my plate and unfortunately I haven't had time to work on Easy Social in the past months really...

I'm actually considering rewriting parts of this from scratch and integrating with Socialite.js in a new 3.x branch. But that's another story...

Thanks again for the contribution!!!

dbassendine’s picture

Version: 7.x-2.9 » 7.x-2.x-dev
Assigned: Unassigned » dbassendine
FileSize
5.79 KB

I've made a couple of changes and re-rolled against 7.x-2.x-dev. The changes are:
* declared new variables properly
* changed the checkbox logic: hide (default off) > display (default on) - I thought this made better sense
* add help text to facebook and google+ pages - explains how to hide the counts

A couple of questions / possible improvements:
* facebook: in vertical mode hiding the count is impossible as there's no option to set the widget height - should we add one? (if possible)
* google+: right you have to set Annotation = none, but I think we should rework to use a checkbox for consistency - agree?

Thanks, David

alexweber’s picture

Status: Needs review » Fixed

Comitted in 398b6d4.

Thanks David!

About your other points, let's address them each in separate issues and I'd be more than happy to commit any other patches you throw our way! :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

polishyourimage’s picture

David,

You mentioned facebook doesn't allow hiding of the count? I noticed the 'Standard' button doesn't include the count:
https://developers.facebook.com/docs/reference/plugins/like/

Why can't that version be used in this module?

Thanks,
Jase

rsalah’s picture

Issue summary: View changes

Try this javascript code :

jQuery("iframe[name='f29ca755f4']").attr("src",jQuery("iframe[name='f29ca755f4']").attr('src').replace("box_count","button"))

Carlos Miranda Levy’s picture

deleted my comment.
(Facebook still showing bubble though)