We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1932
    • 137 Posts
    THIS SNIPPET IS NOW DEPRECATED

    Please see FeedX: http://modxcms.com/forums/index.php/topic,12657.0.html

    ;)
      • 23491 ☆ A M B ☆
      • 1,056 Posts
      This is so sweet! Nice add, Apoxx. I really like the flexibility with the way it can handle my favorite music, thumbnails, etc. Really cool!
        Mike Reid - www.pixelchutes.com
        MODx Ambassador / Contributor
        [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
        ________________________________
        Where every pixel matters.
        • 14050
        • 788 Posts
        I would vote on using SimplePie instead of Magpie. I think Jason converted SimplePie into a snippet for MODx in one of these threads and I used it for GoogleEvents.
          Jesse R.
          Consider trying something new and extraordinary.
          Illinois Wine

          Have you considered donating to MODx lately?
          Donate now. Every contribution helps.
          • 1932
          • 137 Posts
          Thanks for the info jester444. Looks like the thread for simplepie (pieX) is located here: http://modxcms.com/forums/index.php?topic=11066.10

          I’ll play around with it and see if I can think of any way to improve it as well as attempt to duplicate the functionality of xScrobbler.
            • 1932
            • 137 Posts
            I’ve done some testing and determined that SimplePie is incapable of parsing the xml feeds provided by Audioscrobbler because they are in a non-standard format.

            So anyway, it looks like coding this snippet wasn’t done entirely in vain. grin I may improve the easy scrobbler class by storing the cached xml in an intermediate file format for slightly faster parsing (similar to what SimplePie does).

            Ideally, it seems, a feed parser should be able to generate a hierarchical data structure regardless of the feed’s content or structure. I’d like to see a snippet run different chunks based on element hierarchy with placeholders set to the values of each xml entity. I’m planning on writing a class/snippet like this when I have some extra time.
              • 14050
              • 788 Posts
              This might be of interest to you Apoxx. This was a post by a developer on the forum:

              The latest trunk build of SimplePie supports the parsing of ALL elements within a feed (including media: namespaced elements). We’re still working on API methods for calling them, but they can be grabbed from the data array manually. print_r($feed->data), I believe.

              They are still working on their 1.0 release too and have some neat features in the pipeline.

              You might want to peruse their blog here:

              http://simplepie.org/blog/
                Jesse R.
                Consider trying something new and extraordinary.
                Illinois Wine

                Have you considered donating to MODx lately?
                Donate now. Every contribution helps.
                • 1932
                • 137 Posts
                COOL! Thanks again for the info jester, I’ll grab the latest trunk and do some testing.