We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12288
    • 12 Posts
    OK, sorry for that faulty code I gave, but the same result occur if I use addresses http://modxcms.com/forums/index.php?sa=recent;type=rss2;action=.xml&limit=6
    or
    http://www.ap3.ee/RSS.aspx?type=3 in the same code.
      • 22303 MODX Staff
      • 10,725 Posts
      Did you read the thread re: URLs with query string parameters? There are replacement characters you must use when using URLs with any ? & or = signs in them.
        • 12288
        • 12 Posts
        Yes, I did. And used. I have tried for now next options:
        1. call in the content field:
        [[NewsParserX? &url='http://modxcms.com/forums/index.php|xq|sa|xe|recent;type|xe|rss2;action|xe|.xml|xa|limit|xe|6']]



        2. call in snippet [[ParseNews]]
        return $modx->runSnippet('NewsParserX',array('url'=>'http://modxcms.com/forums/index.php|xq|sa|xe|recent;type|xe|rss2;action|xe|.xml|xa|limit|xe|6'));

        and
        $snippetOutput .= $modx->runSnippet('NewsParserX',array('url'=>'http://modxcms.com/forums/index.php|xq|sa|xe|recent;type|xe|rss2;action|xe|.xml|xa|limit|xe|6'));


        + the same without query string parameters as I thought that in the snippet call I don’t have to use them. Anyway, the result is the same.
          • 23714
          • 13 Posts
          How can I remove the first URL in the RSS feed? A.k.a. the channel URL.

          i was able to comment out a line which removed the name of the feed, but the url remains.
            • 17878
            • 6 Posts
            Hi smiley

            First, thanks for a great snippet - after poking around I’ve pretty much got it displaying exactly as I want using the css classes, and adding some tweaks to the HTML output so that it gives me an unordered list.

            My problem is with the data returned by the rss feed. I seem to have a gap in between the feed items; having looked at the code, the feed is returning some extra empy image links and an old-style br tag, which mucks up the whole thing. Since the extra code is within the feed text, the only way I can think of around it is if I could specify a cutoff for the description display after a set number of characters. Is there any way this could be done easily?

            This is the code the feed is adding:

            <p>
            <a href="http://feedads.g.doubleclick.net/~a/CFK5VA6mY6GFhxOPVWVjWhzDfBA/0/da"><img src="http://feedads.g.doubleclick.net/~a/CFK5VA6mY6GFhxOPVWVjWhzDfBA/0/di" border="0" ismap="true"></img></a><br/>
            <a href="http://feedads.g.doubleclick.net/~a/CFK5VA6mY6GFhxOPVWVjWhzDfBA/1/da"><img src="http://feedads.g.doubleclick.net/~a/CFK5VA6mY6GFhxOPVWVjWhzDfBA/1/di" border="0" ismap="true"></img></a></p>


            The /img tags particularly bamboozle me...

            The url of the feed is: http://feeds.feedburner.com/Pinknews

            The feed code I am using is: [!NewsParserX? &url=`http://feeds.feedburner.com/Pinknews|xq|format|xe|xml` &limit=`2` &descr=`1`!]

            Really grateful for any help you can provide,
            Many thanks
            Nic
              • 17878
              • 6 Posts
              Quote from: pooperscooper at Mar 17, 2010, 04:44 AM

              How can I remove the first URL in the RSS feed? A.k.a. the channel URL.

              i was able to comment out a line which removed the name of the feed, but the url remains.

              I did this by adding a class to my stylesheet as follows:
              .rssChannelLink {display:none;}


              The class is already applied by the script, so you can add this to any stylesheet you have referenced in your document.

              Nic
                • 17878
                • 6 Posts
                *bump*

                Would really appreciate help on this...

                Thanks
                Nic
                  • 27448
                  • 17 Posts
                  I transitioned a blogger.com blog from ftp hosting to Google hosting, and now the RSS feed won’t show up on my web site. The feed is http://blog.founders.org/rss.xml, and I just get a blank return.

                  Any ideas? Failing that, any help on tracking down the error?
                    • 22303 MODX Staff
                    • 10,725 Posts
                    Quote from: sjreeves at May 10, 2010, 08:47 PM

                    I transitioned a blogger.com blog from ftp hosting to Google hosting, and now the RSS feed won’t show up on my web site. The feed is http://blog.founders.org/rss.xml, and I just get a blank return.

                    Any ideas? Failing that, any help on tracking down the error?
                    What does this have to do with NewsParserX?
                      • 22303 MODX Staff
                      • 10,725 Posts
                      Quote from: maddiezahatter at Apr 04, 2010, 06:11 PM

                      This is the code the feed is adding:

                      <p>
                      <a href="http://feedads.g.doubleclick.net/~a/CFK5VA6mY6GFhxOPVWVjWhzDfBA/0/da"><img src="http://feedads.g.doubleclick.net/~a/CFK5VA6mY6GFhxOPVWVjWhzDfBA/0/di" border="0" ismap="true"></img></a><br/>
                      <a href="http://feedads.g.doubleclick.net/~a/CFK5VA6mY6GFhxOPVWVjWhzDfBA/1/da"><img src="http://feedads.g.doubleclick.net/~a/CFK5VA6mY6GFhxOPVWVjWhzDfBA/1/di" border="0" ismap="true"></img></a></p>


                      The /img tags particularly bamboozle me...

                      The url of the feed is: http://feeds.feedburner.com/Pinknews

                      The feed code I am using is: [!NewsParserX? &url=`http://feeds.feedburner.com/Pinknews|xq|format|xe|xml` &limit=`2` &descr=`1`!]
                      That’s just the content of the feed; it seems to add the ads automatically.