SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Member
    Join Date
    Apr 2006
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    RSS help needed, my new rss feed not working properly

    Hi All
    it seems my newly inserted RSS feed isnt working properly.
    I am hoping someone could point out my problem.

    At lkeast at my end it seems to be working ok with firefox, but on IE nothing happens when I click on the link+ my customer said (I dont know which browser he was on at the time) that clicking the liunk gave him a page with bunch of code - not the desired result either.

    My site is here

    The rss feed xml file followes this format:

    HTML Code:
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <rss version="0.91">
    
    <channel>
    <title>Loan Modification Studio</title>
    <link>http://www.loanmodificationstudio.com</link>
    <description>Loan Modification services and resources to help homeowners stop foreclosure</description>
    <language>en-us</language>
    
    <image>
    <title>Loan Modification Studio</title>
    <url>http://www.loanmodificationstudio.com/rss/lmsrss.png</url>
    <link>http://www.loanmodificationstudio.com</link>
    <width>48</width>
    <height>48</height>
    </image>
    
    <item>
    <title>H4H - Hope For Homeowners</title>
    <link>http://www.loanmodificationstudio.com/articles/H4H.html</link>
    <description>
    What is the quality, the current effectivness and state of the H4H program under today&apos;s conditions.
    </description>
    </item>
    
    </channel>
    </rss>

    and its found here

    To me it all seems to check out but my experiences are telling me otherwise..

    I appreciate all help, thanks

    Sami

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    16,448
    Mentioned
    160 Post(s)
    Tagged
    1 Thread(s)
    I guessing that your RSS feed is working properly. RSS feeds are meant to be viewed in a feed parser, not a browser. The thing that can be confusing, is that some browsers have the parser "built in" (Firefox, Opera). IE does not, but instead shows the XML tags (the "bunch of code" ??), similar to what you see in view-source.

  3. #3
    SitePoint Member
    Join Date
    Apr 2006
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hi thanks for the comment
    thats what I thought but wehn I try IE myself I get no action at all. like the link was dead. as far as what my cleint said yes it could indeed be the fact that what he saw was what you explained. he did mention he though it wasnt working with google chrome either.
    I guess I need to investigate more, but what you say make me feel a little better thansk.

    Sami

  4. #4
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    16,448
    Mentioned
    160 Post(s)
    Tagged
    1 Thread(s)
    AFAIK, chrome doesn't read RSS files either (yet). So something like
    Code XML:
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <rss version="0.91">
     
    <channel>
    <title>Loan Modification Studio</title>
    <link>http://www.loanmodificationstudio.com</link>
    <description>Loan Modification services and resources to help homeowners stop foreclosure</description>
    <language>en-us</language>
    .......
    would render as
    Loan Modification Studiohttp://www.loanmodificationstudio.comLoan Modification services and resources to help homeowners stop foreclosureen-us

    But I imagine the tags would show in view-source.

    I don't get the feed in IE either. You need to serve the file with an XML header. i.e. with PHP preferrably
    header("Content-type: application/rss+xml");
    or at least
    header("Content-type: text/xml");

    http://validator.w3.org/feed/check.c...tionstudio.rss

  5. #5
    SitePoint Member
    Join Date
    Apr 2006
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hi guys
    thanks for the comments.
    Mittineague - does that header go just at the top of the xml file then as is?
    Thanks

    Sami

  6. #6
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    16,448
    Mentioned
    160 Post(s)
    Tagged
    1 Thread(s)
    No, that's PHP code not XML. So if the feed file is created by PHP, it's something like
    Code:
    <?php
    header(....);
    echo "<?xml ....
    But there are other ways to do this. If you have an Apache server, you can add the file type to httpd.conf or htaccess so that Apache will send all files with the ".xml" extension with the XML header. eg.
    Code:
    AddType application/xml .xml
    or in your case maybe
    Code:
    AddType application/rss+xml .rss
    might be better.

    If you don't feel comfortable changing your Apache files (simple mistakes can really mess things up), check your site's admin CP. It most likely has a way to do this through an interface.

  7. #7
    SitePoint Member
    Join Date
    Apr 2006
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hi mittineague

    Thanks for the advice, I tried both of those altering my .httaccess file to

    # -FrontPage-

    IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*


    AddType application/xml .xml

    <Limit GET POST>
    order deny,allow
    deny from all
    allow from all
    </Limit>
    <Limit PUT DELETE>
    order deny,allow
    deny from all
    </Limit>
    AuthName loa...

    and when that didnt work I inserted the other line in its place but I couldnt see any effect.
    Is my syntax wrong?

    Sami

  8. #8
    SitePoint Addict
    Join Date
    Nov 2000
    Posts
    224
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry was meant to be a new post *embarassed*


Bookmarks

Posting Permissions

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