Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 15 of 15

Thread: RSS questions

  1. #1
    Senior Coder jerry62704's Avatar
    Join Date
    Oct 2007
    Location
    Springfield, IL
    Posts
    1,100
    Thanks
    13
    Thanked 87 Times in 87 Posts

    Question RSS questions

    I recently added one to a web page (http://www.liberalswin.com/Polls/O_O...oll_Detail.php and registered it with http://www.rss-syndication.com/.

    I subscribed to the page using Outlook. But after updating the page last night nothing showed up in Outlook today. Here are the steps I followed:

    1) added an xml file to the site
    2) added the button and link to the page
    3) registered the page with them
    4) clicked on the button and choose Outlook

    Anything obvious that I missed?
    .
    .
    ...and gladly would he learn and gladly teach

    Visit www.LiberalsWin.com for humor and the unique Bush/Obama Approval Polls

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,472
    Thanks
    8
    Thanked 1,085 Times in 1,076 Posts
    I think your XML (RSS feed) is malformed. Description is a text field; therefore, you need to use CDATA to render HTML. You didn't mention how your RSS feed(s) are created in the first place. Typically, a PHP script grabs info from a database and creates the XML file (used for the RSS feed).

    Try this and see if it works better ...

    Code:
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <rss version="2.0">
    <channel>
      <title>Liberals Win Obama Poll Page</title>
      <link>http://www.liberalswin.com/Polls/O_Obama_Poll_Detail.php</link>
    	<item>
    	<description><![CDATA[<a href='http://www.liberalswin.com/O_Obama_Poll_Detail.php'><img src='http://www.liberalswin.com/graphics/Obama_Poll.png' style='float:left; padding-right:10px;' /></a>Aggregate All Current non-partisan Polls ]]></description>
    	</item>
    </channel>
    </rss>

  • #3
    Senior Coder jerry62704's Avatar
    Join Date
    Oct 2007
    Location
    Springfield, IL
    Posts
    1,100
    Thanks
    13
    Thanked 87 Times in 87 Posts
    I wrote it from various web sources. I could put it in the PHP that most of the pages are created from. None of them mention putting the description with CDATA. The original doesn't have a link in the description.

    Code:
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <rss version="2.0">
    
    <channel>
      <title>Liberals Win Obama Poll Page</title>
      <link>http://www.liberalswin.com/Polls/O_Obama_Poll_Detail.php</link>
      <description>Aggregate All Current non-partisan Polls</description>
      <image>
        <url>http://www.liberalswin.com/graphics/Obama_Poll.png</url>
        <title>Liberals Win Obama Poll Page</title>
        <link>http://www.liberalswin.com/O_Obama_Poll_Detail.php</link>
      </image>
    </channel>
    </rss>
    I ran it through a validator and the only complain was the URL of the image is not the same as the link.
    .
    .
    ...and gladly would he learn and gladly teach

    Visit www.LiberalsWin.com for humor and the unique Bush/Obama Approval Polls

  • #4
    Senior Coder jerry62704's Avatar
    Join Date
    Oct 2007
    Location
    Springfield, IL
    Posts
    1,100
    Thanks
    13
    Thanked 87 Times in 87 Posts
    Has anyone here written RSS? Once you are past the prior syntax questions, how do you add any content?
    .
    .
    ...and gladly would he learn and gladly teach

    Visit www.LiberalsWin.com for humor and the unique Bush/Obama Approval Polls

  • #5
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,472
    Thanks
    8
    Thanked 1,085 Times in 1,076 Posts
    Most websites that contain content use a database of some kind, usually MySQL. PHP scripting queries data and dynamically creates the XML file (for RSS feed).

    How is content stored on your website?

  • #6
    Senior Coder jerry62704's Avatar
    Join Date
    Oct 2007
    Location
    Springfield, IL
    Posts
    1,100
    Thanks
    13
    Thanked 87 Times in 87 Posts
    I use PHP to determine what will show each day and once a week I update those pages.

    I looked at one RSS source and it had half a page of altered (< becomes the code &lt code. I don't know if he did this or some automated system did it.
    .
    .
    ...and gladly would he learn and gladly teach

    Visit www.LiberalsWin.com for humor and the unique Bush/Obama Approval Polls

  • #7
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,472
    Thanks
    8
    Thanked 1,085 Times in 1,076 Posts
    And by update you mean that you log into some admin section and change, add, alter the content of the page? You aren't just manually editing HTML on static pages are you?

  • #8
    Senior Coder jerry62704's Avatar
    Join Date
    Oct 2007
    Location
    Springfield, IL
    Posts
    1,100
    Thanks
    13
    Thanked 87 Times in 87 Posts
    I'm not sure I'd call PHP developed pages static, but whatever floats your boat.

    We seem to be getting pretty far afield from the question of what content and format is used with RSS, aren't we?
    .
    .
    ...and gladly would he learn and gladly teach

    Visit www.LiberalsWin.com for humor and the unique Bush/Obama Approval Polls

  • #9
    Senior Coder
    Join Date
    Aug 2006
    Posts
    1,233
    Thanks
    10
    Thanked 270 Times in 269 Posts
    What's the question again? If you're going to use tags like <a href... inside xml data descriptions, you need to put then in CDATA blocks. And last time I managed an RSS file, the data was in a database, with appropriate tools to edit the database, and then a program generated the rss xml file from that.

  • #10
    Senior Coder jerry62704's Avatar
    Join Date
    Oct 2007
    Location
    Springfield, IL
    Posts
    1,100
    Thanks
    13
    Thanked 87 Times in 87 Posts
    The question is about how the data, if any, looks in an RSS file. I know the description tag is NOT supposed to have any html negating CDATA needs. I believe there is another tag for that purpose. But what I'm after is what is in the RSS file, not how it got there.
    .
    .
    ...and gladly would he learn and gladly teach

    Visit www.LiberalsWin.com for humor and the unique Bush/Obama Approval Polls

  • #11
    Senior Coder
    Join Date
    Aug 2006
    Posts
    1,233
    Thanks
    10
    Thanked 270 Times in 269 Posts
    Not sure where the official rss spec is kept, but Wikipedia has a pretty good description of the fields - http://en.wikipedia.org/wiki/RSS

  • #12
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,472
    Thanks
    8
    Thanked 1,085 Times in 1,076 Posts
    It is important how your content (data) is stored. I would consider it crucial to your question about RSS format. The reason is this: If a PHP script is used to generate your RSS feeds, it would be one script that does it all. Every RSS feed would be formatted and structured the same way each time. PHP can't do that very well unless it can grab its data from a database of some kind.

    You've said this:

    I use PHP to determine what will show each day and once a week I update those pages.
    So set me straight on this ....
    Do you want a PHP script to generate your RSS feeds automatically?
    Or, are you going to manually create each RSS feed using a text editor?

    I've figured-out so far that you are not using WordPress. I know you are using PHP for something. I don't know if you are using MySQL. I have a hunch that every page (like the jokes) are a separate PHP script ... If that is true, I'm bewildered.

    I'm not trying to jerk you around ... I'm trying to find the best way to a solution. I'm having a hard time understanding how your pages are being created, and how you plan on creating the RSS feeds (regardless of the format).

    To me, your website seems to fit the exact reason to use WordPress. You have a ton of information that is date specific. You offer what should be searchable data, and you wish to offer RSS feeds for your data.

    I'm just trying to offer you some ideas on how to improve your site and make it easy to manage. If I'm crossing the line, let me know and I'll stand back.

    And PS ...
    I find the information on your site interesting. Social integration (comments, tweets, etc) would be an interesting addition to your site.


    .
    Last edited by mlseim; 08-01-2013 at 01:17 AM.

  • #13
    Senior Coder jerry62704's Avatar
    Join Date
    Oct 2007
    Location
    Springfield, IL
    Posts
    1,100
    Thanks
    13
    Thanked 87 Times in 87 Posts
    Yeah, I wouldn't have imagined it being so hard to find out how the RSS is formatted.
    .
    .
    ...and gladly would he learn and gladly teach

    Visit www.LiberalsWin.com for humor and the unique Bush/Obama Approval Polls

  • #14
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,472
    Thanks
    8
    Thanked 1,085 Times in 1,076 Posts
    I assume you've already been here:
    http://www.rssboard.org/rss-specification

    How about this?
    http://nscraps.com/XML/348-generate-...ed-website.htm

    You may want to take the example feed in the nscraps site, upload it to your site and check for validation. See if you can get validation on someone else's RSS feed ... by creating a fake one just for testing.


    .
    Last edited by mlseim; 08-01-2013 at 02:27 PM.

  • #15
    Senior Coder jerry62704's Avatar
    Join Date
    Oct 2007
    Location
    Springfield, IL
    Posts
    1,100
    Thanks
    13
    Thanked 87 Times in 87 Posts
    Thanks for the cites! I'll have to read them in detail. I just looked them over.
    .
    .
    ...and gladly would he learn and gladly teach

    Visit www.LiberalsWin.com for humor and the unique Bush/Obama Approval Polls


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •