Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Murray Roke 503 posts 967 karma points c-trib
    Feb 16, 2010 @ 00:03
    Murray Roke
    0

    user_timeline does not count correctly

    Hi

    I've obseved and read a post  that there's a problem with the twitter API in that if we ask for 3 tweets, and the last 3 are re-tweets I get none! sigh!

    So... a hack work-arround is to ask for lots of tweets, then filter down to the number you want yourself, to o this update the xslt like so:

    line 60:

    <xsl:variable name="twitterXMLUrl" select="concat('http://twitter.com/statuses/user_timeline/', $twitterUsername ,'.xml?count=200')"/> <!-- or some more sensible number -->

    then add a condidtion around your template line 77:

    <xsl:if test="position() &lt; $noStatus">....</xsl:if>
  • Warren Buckley 2106 posts 4836 karma points MVP 7x admin c-trib
    Feb 17, 2010 @ 13:29
    Warren Buckley
    0

    Hiya Murray thanks for the advice.
    But surely it would show the last 3 tweets that were not retweets instea rather than nothing?

    Warren

  • Murray Roke 503 posts 967 karma points c-trib
    Feb 22, 2010 @ 02:13
    Murray Roke
    0

    Yo'd think so wouldn't ya! even the biggest sites do some pretty odd things at times, especially in the social networking area ;-)

  • Warren Buckley 2106 posts 4836 karma points MVP 7x admin c-trib
    Feb 22, 2010 @ 11:31
    Warren Buckley
    0

    hmm ok thanks to bringing to my attention, it's low on my priority to fix currently.

    If it's a really annoying problem create an issue on the codplex page for me please, so I dont forget about it

    http://twitter4umbraco.codeplex.com/
    http://twitter4umbraco.codeplex.com/WorkItem/Create.aspx

    Thanks,
    Warren

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies