We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12013
    • 61 Posts
    Hi Guys, I have been reading this thread with great interest. I am still reading it to get as much info as possible but was hoping someone could help me out. I am looking to add a weather feed but the best feed for my purposes is from snowforecast.com the exact one is:

    http://www.snow-forecast.com/resorts/morzine/feed.xml

    I am trying to implement it on my site but without much luck. any help and comments would be most welcome.

    I have looked into this further and have kind of got it working, well the feed comes through but I guess I have to make new templates but not sure where to start really. I have turned on the debugger and get loads of information none of which is of any help.

    again if anyone can provide smoe words of wisdom I will be eternally grateful.
      • 11316
      • 81 Posts
      Really liking this FeedX but one thing is missing from the every folder for security - the little "Unauthorized" index file. Added myself but though the it could be repackaged with it included~
        • 19646
        • 31 Posts
        News Feed from Major news channel such as CNN or BBC into my site.

        I have set up a basic FeedX call which brings in the news feed as RSS output from the relevant news provider.

        I now have THREE questions for you

        1) I am used to ditto and so on where I can add parameters like a tpl which will help style the output.

        Can I do this with FeedX ?

        2) Can FeedX be told to remove / not display the title that is sent with the RSS feed as I add a prettier version directly in the page of the site.

        3) Can I add a scroller to the information output ?
        (if so would I output into a javascript array which I then scroll on screen, or do you folks have a better plan ??


        I appreciate any help given to allow me to integrate MODx into a local community web site ata atime that they need it most...


        regards

        Steve
          • 6659
          • 18 Posts
          I’ve been having a bit of a problem with FeedX and quote marks. I was dragging in my Twitter RSS feed, and one latest entry was of the form:

          content content "content content" content

          Unfortunately, it was being rendered like this:

          content content"content content"content

          The whitespace around the quotes was being removed. The problem is caused by the PHP XML parser splitting lines with whitespace, and although FeedX is written to handle this, this line (in feedx.class.inc.php) means that whitespace within tag data is trimmed when it shouldn’t be:

          374: $data = trim($data);


          So, comment out (or remove) the above line and add the following to the beginning of the tagEnd function, and quote marks will be handled properly within content:

          $this->elements[count($this->elements)-1]['value'] = trim($this->elements[count($this->elements)-1]['value']);
            • 9496
            • 113 Posts
            So I originally had a snippet call like this:
            [!FeedX? &url=`http://news.search.yahoo.com/news/rss;_ylt|xe|A0WTTkqLu7ZJFR0AMCXQtDMD;_ylu|xe|X3oDMTA3MTBsZGZsBHNlYwNhZG0%20-|xq|ei|xe|UTF-8&p|xe|water` &preset=`rss` &maxElements=`ITEM(3)` &debug=`1`!]

            I also tried it with a google news feed but I get the same problem.

            Like I said verything was working fine, but my service provider updated PHP and it no longer works. Its strange because it appears to be something url special characters are not being encoded when the snippet parses, For instance this url parses fine:
            http://rss.cnn.com/rss/cnn_topstories.rss

            So I’m thinking it has something to do with the special charachters |xe|, |xq|, |xa| or possibly the % sign. Not really sure which. In my debugpanel I get this:

            http://news.search.yahoo.com/news/rss;_ylt=A0WTTkqLu7ZJFR0AMCXQtDMD;_ylu=X3oDMTA3MTBsZGZsBHNlYwNhZG0 %20-?ei=UTF-8 [ERROR RETRIEVING FEED]

            which resolves okay. Ive sifted this topic about 100 times to no avail (tried pretty much everything suggested. Im still trying to wrap my head around whether its my end or a php problem. The php info can be found at:

            http://beta.ruralwateralliance.com/phpInfo.php

            ANy help would be greatly appreciated-
            P

              • 9496
              • 113 Posts
              Looks like it was a character limit problem. From what I understand (and that aint much he he) it looks like a security measure within PHP (Curl module) but thats well above my paygrade to figure out. But just in case anyone else comes up with a similar problem, try using a shorter URL (if possible)

              -P
                • 30699
                • 3 Posts
                Hi everyone! Does anyone know how I can filter unknown characters on the rss feed? Because one news entry is displaying an unknown character, it’s a box with with 0095 numbers in it. How can I filter characters like this? Is it possible to use regex on this? I just want to know what you guys think. Thanks!
                  • 28788
                  • 79 Posts
                  Hi guys,

                  I’m wondering if its possible to use FeedX and I guess PHx to set a start and end date for displayed feed results? For example display items between 01/01/09 and 01/02/09.

                  Cheers in advance

                  J
                    • 25969
                    • 118 Posts
                    Anyone get FeedX working with weather.com or wunderground weather tpls? The bundled tpl folders don’t seem to work anymore.
                      • 6316
                      • 92 Posts
                      It works perfectly with Flickr out of the box. Thank you for the great snippet!