AddThis (http://drupal.org/project/addthis) and AddtoAny (http://drupal.org/project/addtoany) or any other social sharing modules are not working on content that loads after scrolling. I have seen the solution for individual facebook and twitter buttons. But, is there any sharing module that works with VIS?

Comments

SebCorbin’s picture

These modules should use some kind of ajax behaviors to trigger loading of their on the content added by Ajax

quickly’s picture

The add-to-any module works fine with the content loaded by ajax using the http://drupal.org/project/ajax_links_api module. Why isn't it working with the content loaded by VIS?

miccelito’s picture

Same problem with displaying Google maps (Gmap) on content that loads after scrolling.

Garry Egan’s picture

It tool me a week to figure out what was causing my images to load BLANK. I non-chalantly activated the ADDTHIS module while doing several other tasks and the next morning I awoke to have my site unstable with blank images loading. Only after I started de-enabling modules did I figure out it was a conflict between ADDTHIS and VIS.

That one cost me a week. So, no, I wouldn't suggest using the two together or use the manual like button code.

simone960’s picture

Any update ? I'm using this module with addtoany, but there's an incompatibility issue with AJax views... what a pity...

sibany’s picture

Assigned: Unassigned » sibany
Issue summary: View changes
Status: Active » Fixed
Issue tags: +addthis, +views infinite scroll, +bugfix
StatusFileSize
new3.3 KB

Hey All,

hope this fix your problem :)

i have fixed this by adding this code to the js file ...

using addthis module for facebook like button counter ...

views_infinite_scroll.js

at line 41->

load: function() {
$('div#views_infinite_scroll-ajax-loader').remove();
addthis.toolbox('.addthis_toolbox');
Drupal.attachBehaviors(this);
}

and in the views disable the Ajax...to No.

i have attached the file...

Best regards
M.sibany

sagannotcarl’s picture

Status: Fixed » Needs work

@sibany please make a patch of your change so it can be reviewed.

danny englander’s picture

Version: 7.x-1.1 » 7.x-1.x-dev
Component: Miscellaneous » Code
Assigned: sibany » Unassigned
StatusFileSize
new63 bytes

Here's a patch based on #6 above, the fix worked for me.

danny englander’s picture

Here is a better patch, tested and against the latest dev.

tvn’s picture

honza pobořil’s picture

Status: Needs work » Closed (outdated)
Issue tags: -
honza pobořil’s picture