Subscribe: RSS
  • Using FeedX to pull in a WordPRess feed and have it configured accurately (I believe). Here is the call:
    [!FeedX? &url=`http://equestriansurfaces.com/blog/feed/` &preset=`rss` &caheTime=`3600` &debug=`1` &maxElements=`1`!]


    The feed is directly from the WordPRess generated feed link.

    When I run it, I get an "Error Retrieving Feed" message.

    Specs:
    MODx 1.0.4
    FeedX 0.1.2
    WordPress is 3.0.1
    PHP 4.4.7

    Thanks,
    Chuck
    • Quote from: danielw at Sep 29, 2009, 02:24 AM

      There has previously been some mention about the ability to merge several feeds into one useing this snippet.

      Is this possible, and if so, how is it done?

      The idea would be to merge several feeds and then sort them by a common parameter (e.g. price).

      Any help would be appreciated. Thanks.

      Has anyone done this before?...if so I would really appreciate a little how to. Thanks in advance!!
      • I'm going absolutely bonkers huh over this one, I've used FeedX many times before without any hassle so I didn't think twice when someone wanted the Facebook notes rss feed published on their ModX site.

        Here is the snippet call.
        [!FeedX? &url=`http://www.facebook.com/feeds/notes.php|xq|id|xe|145235602203095|xa|viewer|xe|581913898|xa|key|xe|4064c4fb2e|xa|format|xe|rss20` &preset=`rss` &debug=`1`!]


        and all I get in the debug console is "ERROR RETRIEVING FEED", yet if I copy and paste the url from the debug console she work's a beaut.

        I feel like I'm missing something blatantly obvious and I know I'm going to kick myself when I find the answer. embarrassed

        FYI here's the original page link where I got the rss url from
        http://www.facebook.com/notes.php?id=145235602203095

        Here's the unescaped rss url
        http://www.facebook.com/feeds/notes.php?id=145235602203095&viewer=581913898&key=4064c4fb2e&format=rss20
        • Woot! I solved it!

          In feedx.class.inc.php add the following line around line 284
          			curl_setopt($curl, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
          


          It turns out that some sites (like facebook in my example above) require a valid user agent!

          You could hard code the agent as an alternative also
          			curl_setopt($curl, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9) Gecko/2008052906 Firefox/3.0');
          • Problem fixed, done with multiple FeedX calls
            • Anybody knows how to create TPL to parse this xml:
              <plavby>
              <plavba>
              <plavba_id>1</plavba_id>
              <nazev_plavby>Řecké ostrovy přes Santorini</nazev_plavby>
              <ubytovani>
              Vnitřní nebo vnější kajuta v optimální knihovací třídě
              </ubytovani>
              <jmeno_lode klimatizace="ano" >MSC Armonia</jmeno_lode>
              <zeme kod="IT">Itálie</zeme>
              <zeme kod=" GR">Řecko</zeme>
              <zeme kod=" ME">Černá Hora</zeme>
              <misto>Venice</misto>
              <misto>Ancona</misto>
              <misto>Corfù</misto>
              <misto>Santorini</misto>
              <misto>Piraeus</misto>
              <misto>Argostoli</misto>
              <misto>Kotor</misto>
              <misto>Venice</misto>
              ...

              I need to select only records with specific number in <plavba_id> and create list of <misto>
              so for example something like this:
              [!FeedX? &url=`.../export.xml` &preset=`TPL` &pass_parameter_with_id=`5,23,45` !]

              and get:
              <h2>Plavba_ID<h2>
              <ul>
              <li>Venice<li>
              <li>Ancona</li>
              <li>Corfù</li>
              <li>Santorini</li>
              <li>Piraeus</li>
              <li>Argostoli</li>
              <li>Kotor</li>
              <li>Venice</li>
              </ul>

              problem is, that number of <misto> is variable

              UPDATE:filtering works with this parameter:
              &filterElements=`PLAVBA(PLAVBA_ID NE /1/)`

              but <misto> returns only first record <li>Venice<li> not all of them...
              • I'm wondering how to format [+PUBDATE+] so that it doesn't display like this:

                Wed, 28 Sep 2011 02:34:08 +0000

                I would prefer to be able to use: [+PUBDATE:date=`%d/%m/%Y`+] but it spits out: 31/12/1969
                • I've been working on updating this for Revolution - it's littered with deprecated calls, and I'm relatively new to Mod-X - anyone interested in assisting? I may have it mostly completed, I tweeted at the original author (didn't find an email for him).

                  I may end up throwing it on github once it's a little more solid.
                  • is it possible to pass a username and password or otherwise have FeedX authenticate the URL?
                    • I just used FeedX to make my own YouTube embedded player, info is here in case you all want to try it.

                      forgive the formatting on the snippets, they were making video players even after I wrapped them in code tags and I just didnt have the energy to go fix it so I made an image in one place and then just added spaces to the code so you can read it. take them out if you use it. I might fix it later.

                      http://www.redtoadmedia.com/blog/?p=692&preview=true&preview_id=692&preview_nonce=dbe0ef6977
                        ________

                        Anne
                        Toad-in-Chief
                        Red Toad Media - Web Design, Louisville KY
                        Hear me tweet: http://www.twitter.com/redtoadmedia
                        "Bring on the imperialistic condiments." - Rory Gilmore