Jump to:

1842 Posts in 1600 Topics by 558 members

Blog Module

SilverStripe Forums » Blog Module » TweetMeme's retweet button - not working, any ideas?

Discuss the Blog Module.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 2556 Views
  • missboo
    Avatar
    Community Member
    3 Posts

    TweetMeme's retweet button - not working, any ideas? Link to this post

    Hi,

    I'm trying to use TweetMeme's retweet button (http://help.tweetmeme.com/2009/04/06/tweetmeme-button/) but for some reason it refuses to show up on any page. I put the<script> code directly into the ss files for blog summary and entry. I know the button code works, I've tried it on a page outside of my SilverStripe install and it shows up just fine.

    There are no javascript errors, the link to the .js is definitely correct.. is there some kind of Javascript validation behind the scenes that's causing this javascript to not be processed correctly?

    If anyone come across this issue or anything similar before, how did you solve it? Or any ideas at all would be very appreciated..

    Thanks
    -boo

  • missboo
    Avatar
    Community Member
    3 Posts

    Re: TweetMeme's retweet button - not working, any ideas? Link to this post

    Still no solution..

    After a bit more research I came across a few posts here that kind of related to my problem. I tried putting this line into the BlogEntry.ss where I want the button to show up:

    <% require javascript(http://tweetmeme.com/i/scripts/button.js) %>

    and added this to _config.php:

    ContentNegotiator::disable();

    but no luck

  • missboo
    Avatar
    Community Member
    3 Posts

    Re: TweetMeme's retweet button - not working, any ideas? Link to this post

    This is the javascript error I get when I tried the above:

    Error: uncaught exception: [Exception... "Operation is not supported" code: "9" nsresult: "0x80530009 (NS_ERROR_DOM_NOT_SUPPORTED_ERR)" location: "http://tweetmeme.com/i/scripts/button.js Line: 1"]

  • ajshort
    Avatar
    Community Member
    244 Posts

    Re: TweetMeme's retweet button - not working, any ideas? Link to this post

    That's because document.write isn't supported with a script XHTML document. I would reccomend just changing your website to use a HTML doctype.

    2556 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.