6 Comments Already

commenter
catchpen Said,
July 12th, 2008 @8:37 pm  

Good tutorial. I would definitely suggest customizing it to only the bookmarking services your site would benefit from to keep this list less complicated. Too bad members that are less web savy don’t take time to use bookmark sharing tools like this!

commenter
August 7th, 2008 @6:48 pm  

Well…I’m a little late on this…but just wanted to say thanks and genius!

commenter
August 8th, 2008 @1:18 am  

I’m having the strangest problem…randomnly the sharethis button isn’t showing up on some stories - but its not at a regular pattern or in a specific category etc. Anyone else ever have this?

commenter
August 8th, 2008 @2:45 am  

So, I found a bit of an issue. Appears the ShareThis button doesnt support single quotes in the title/story. I’ve seen this issue also has been reported by Drupal users and on the ShareThis forums. Is anyone else using code to escape these single quotes?

commenter
August 8th, 2008 @3:33 am  

Lets see how long I can talk to myself. :-) Actually, I figured out the solution. You just have to add an escape clause to have it change out those nasty single quotes, thus the code should look this:

{literal}

SHARETHIS.addEntry({
title:’{/literal}{$title_short|escape}{literal}’,
url:’{/literal}http://yoursite.com{$story_url}{literal}’,
summary:’{/literal}{$story_content|escape}{literal}’,
icon: ‘http://path.to/icon’
}, {button:true} );
 
{/literal}

Pingback & Trackback
mygif
July 12th, 2008 @1:50 pm  

Related Post

  • Nothing found related with this post topic
Please Leave Your Comments Below

Please Note: All comments will be moderated