Why am I having problems adding a StumbleUpon button to blogger

If you're having trouble following StumbledUpon's directions to add a button to your blogspot blog, the problem is a simple formatting one on the StumbledUpon site. Their directions use some kind of screwed up single quotes where the first one looks different from the second one. They don't look like regular single quotes/apostrophes, they look like a 6 and a 9. You just need to replace them each with an apostrophe.

Maybe it's just a problem I'm having when I cut and paste. I dunno. But when I changed the stupid 69 type quotes to simple apostrophes, it worked.

These are the two pages you'll need

https://www.stumbleupon.com/dt/badges/create
https://www.stumbleupon.com/help/business-tools/badges#integration

If it doesn't work, look for the single quote problem.

I ended up having to change all the fancy single quotes to apostrophes.




Long story short, I looked for this:


      <data:post.body/>

and stuck this right below it:

<div:if cond='data:blog.pageType ==”item”'>
<div style='clear: both;'/>
<!-- Place this tag where you want the su badge to render -->
<su:badge layout="5"></su:badge>

<!-- Place this snippet wherever appropriate -->
<script type="text/javascript">
  (function() {
    var li = document.createElement('script'); li.type = 'text/javascript'; li.async = true;
    li.src = 'https://platform.stumbleupon.com/1/widgets.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(li, s);
  })();
</script>



Maybe, she said, “the problem is that I havesmart quotes turned on. And by ‘smart’ I mean stupid, freaking drive me insane these things out to be outlawed.



No comments:

Post a Comment