The ShareThis links should not show on pages meant for printing (i.e. output produced when clicking the Drupal 'print' module's print friendly link on nodes).
The attached patch adds a trivial function which checks if the page will be printed, and sharethis_nodeapi calls that function. The code could be simpler but I added the extra helper function in case there might be other modules that flag pages as print-only with something besides $node->print.
| Comment | File | Size | Author |
|---|---|---|---|
| sharethis-hide-on-print-pages.patch | 1.15 KB | shark |
Comments
Comment #1
jcnventuraThis patch is no longer applicable. Sharethis should test for the build/view mode and should only display in full, and depending on configuration also the teaser mode.
Comment #2
avpadernoI am closing this issue, since Drupal 6 isn't supported.