We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34162
    • 1 Posts
    This is an auto-generated topic for <a href="http://modxcms.com/extras/package/672">Twitter Feeds 1.0.0-Final</a> by Mayanktaker.

    Brief Description:
    * The snippet only pulls the latest tweet from the RSS, no timestamps or other information.

    * The snippet is pulling from a file on the Twitter servers, so you are still depending on that file being active.

    * As this snippet is pulling from an outside file, you still might experience some delay. Though the delay exists, it isn&apos;t much a difference from the JavaScript method that is currently available.

      • 36549
      • 572 Posts
      Thanks for the snippet,

      What’s the ’normal’ delay for tweets using this snippet?

      Seems to take over 2hours for me which is way to long as you can imagine. Any reasons for this?

      Cheers
        www.9thwave.co.uk
           WEB | DESIGN | PRINT
        • 9674
        • 170 Posts
        huh it seems the version of the file available for download is misnamed, it saves as twitter no extension....
        It would be cool to know that you need to open it using your zipper....

        This is to help people that tried and ... tried ! wink

        Thanks for the snippet anyway grin


          • 28042 ☆ A M B ☆
          • 24,524 Posts
          Probably a space in the filename. The repository download breaks the filename at a space.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 9674
            • 170 Posts
            Found a problem with the snippet while using URL rewriting

            correction is adding the line :

            $tweet = str_replace("&quot;", "’", $tweet);

            after the two lines :

            $tweet = str_replace("&lt;", "<", $tweet);
            $tweet = str_replace("&gt;", ">", $tweet);

            the correction allow people to click on the links even with URL rewriting enabled.

            There is still one issue for me, even with &rpp=10 I only grab one line of the tweets.... huh

            Thanks again anyway for the work already done.

            Phil


              • 3349
              • 126 Posts
              Has anyone had any success with this snippet?

              I have installed correctly but no tweets are being pulled through?

              The prefix and suffix text is appearing fine but no tweets in between?

              Any ideas?
                • 18913
                • 654 Posts
                I haven’t tried this code, but instead took the approach seen here
                http://modxcms.com/forums/index.php/topic,51695.msg331681.html#msg331681
                to get one or more twitter lines from a feed.

                If I read the description of this one correctly, it only pulls one tweet (the latest one).
                MattC