Problems with RSS feed and php include

gshupe's Avatar

gshupe

26 Aug, 2009 06:38 PM via web

I have suffered through having to reassemble a blog page several times with lost blog entries... that now seems to be fixed with the latest version of RW... but now I have three new problems:

1) for several years it has worked ok, but now my blog page doesn't show the RSS feed badge (up in the location bar) when I load it - although the RSS feed appears to be updating (link in the sidebar works fine). I assume this is something in the header that is not exporting, but I can't find any documentation on how to fix it.
see: http://stone.web.brevard.k12.fl.us/html/

2) Rapidweaver doesn't appear to export plain text even though I have pasted as plain text and told it to ignore formatting. I have even used an html page. I have troubleshot this with Adam Merrifield of Seydesign (he has generously offered an rss include php snippet): On line 105 you have two strings that are breaking the code:
'–', '—' which are supposed to be:
'–', '—', see: http://stone.ms.brevardschools.org/test/index.php
source file attached

3) So then I went elsewhere to find a way to accomplish this- http://www.rssinclude.com. They are hosting the code snippet, (which I am not particularly happy about as a public school webmaster), but it works... except they are only catching the title of my items, not the following first couple of sentences of the content. Their support contact gave me the following reason- is there any way to fix this or change RSS spec types within RW so it will work?
Our systems looks for the tag in RSS feeds. Your feed does
not have such a tag. The long text in your feed is stored
in a <content:encoded> tag.
If you want rssinclude to show your description, please use the
tag in the XML code.
see http://stone.ms.brevardschools.org

  1. 2 Posted by Aron Carroll on 27 Aug, 2009 02:31 PM

    Aron Carroll's Avatar

    Hi there,

    1) Which version of RapidWeaver are you using to publish http://stone.web.brevard.k12.fl.us/html/ ? It looks like it may be an old version of RapidWeaver, if so it may not include the link in the header that is picked up by browsers.

    2) There is a bad line of PHP in the code you have sent me. On line 105 it reads.

    $inputs = array('&ndash;', '&mdash;', ''', ''', '"', '"', '&hellip;', '[', ']');
    

    It looks like it needs to read. Note the three quotes '''.

    $inputs = array('&ndash;', '&mdash;', "'", "'", '"', '"', '&hellip;', '[', ']');
    

    As for RapidWeaver encoding the entities with ignore formatting on, this does indeed look like a bug, I have filed a ticket to get this looked into, however it works just fine in an HTML page.

    3) I'm afraid I'm not entirely sure what your trying to do with the scripts? The RapidWeaver RSS feed doesn't include the <description> tag so it would appear that the rssinclude.com script may not work.

    Please let me know if I can be of further assistance.

    Cheers,

    Aron

  2. 3 Posted by gshupe on 27 Aug, 2009 03:47 PM

    gshupe's Avatar

    Greetings Aron,

    1) I am using RW Version 4.2.3 (4728)

    2) The issue was the conversion of

    - and     –
    to     &ndash; and     &mdash;'
    

    It did not work correctly for me in an HTML page either... the page source I sent you was generated by a RW HTML page template file.

    3) What I am trying to accomplish is two includes for my homepage that automatically update themselves based on the RSS feed generated by my 'Stone Students Rock!' page (generated by RW blog template) and a PHP iCal feed.
    The rssinclude.com solution works, I just have to manually change the feed that RW generates (every time I do a blog update, I will have to use BBedit do a find and replace for <content:encoded> and change it to

    <description>. )
    

    My hope is that there is a way to fix the output of the html page so that it doesn't generate smart characters. Is there anyway this could be the fault of the theme that I am using? Ideally, I would like to use the RSS include script provided by Adam Merrifield of Seydesign, because as a public school, I am really not supposed to insert content into my homepage off another server (as I would if I use the rssinclude.com script).

  3. 4 Posted by Aron Carroll on 28 Aug, 2009 08:04 AM

    Aron Carroll's Avatar

    Hi,

    If you'd like to send me the script Adam sent you in it's original
    form I'd be happy to take a look for you.

    Cheers,

    Aron

    ---

    Aron Carroll
    Web Developer, Realmac Software

  4. 5 Posted by gshupe on 31 Aug, 2009 06:33 PM

    gshupe's Avatar

    Thanks Aron,

    Just to mention- I am still puzzled by the unrelated issue of browsers not showing a RSS badge on a blog page even though the RSS feed is being updated by Rapidweaver.

    Regarding the script that is getting messed up - Here is the source that is giving me the problem:
    http://realmacsoftware.com/addons/snippets/show-recent-posts/

    thank-you so much for your help!
    gs

  5. 6 Posted by Aron Carroll on 07 Sep, 2009 05:48 PM

    Aron Carroll's Avatar

    Hi again,

    I'm very sorry for the delayed reply, I've been away for a week. I've
    just taken a look at the snippet in question. It seems that it is the
    snippet rather than RapidWeaver that is encoding the characters. If
    you cut the snippet out of an HTML page and re-paste it using Edit >
    Paste as Plain Text it does not encode the characters.

    With regard to the missing RSS badge, would it be possible for you to
    zip up your site file and attach it to this email?

    We will than take a look into what may be causing the issue.

    Cheers,

    Aron

    ---

    Aron Carroll
    Web Developer, Realmac Software

  6. 7 Posted by gshupe on 17 Sep, 2009 05:33 PM

    gshupe's Avatar

    Hi Aron,

    I have gotten distracted as well. Here is the zipped file:

    gs

  7. 8 Posted by Aron Carroll on 18 Sep, 2009 03:17 PM

    Aron Carroll's Avatar

    Hi,

    Just taken a look at the site file and all is working just fine on an
    exported version of the site with the Alpha theme.

    I'm thinking that this may actually be an issue with the theme. It
    looks like it may be missing the snippet of code that includes the RSS
    feed.

    Would you be able to zip this up also and I'll check it out. It can be
    found in ~/Library/Application Support/RapidWeaver/

    Cheers,

    Aron

    ---

    Aron Carroll
    Web Developer, Realmac Software

  8. 9 Posted by gshupe on 21 Sep, 2009 03:44 PM

    gshupe's Avatar

    Hi Aron,

    Here is the theme file. What is strange about this is that it has been
    working for several years, and just stopped this summer.

    gs

  9. 10 Posted by Aron Carroll on 21 Sep, 2009 05:26 PM

    Aron Carroll's Avatar

    Hi there,

    Just had a look at the file, it was missing the quite a few of the
    theme tags. I've added them into the theme now so it should work just
    fine.

    Just double click to reinstall it,

    Cheers,

    Aron

    ---

    Aron Carroll
    Web Developer, Realmac Software

  10. 11 Posted by gshupe on 25 Sep, 2009 05:02 PM

    gshupe's Avatar

    Yeah! that worked...

    thanks Aron!

    gs

Comments are currently closed for this discussion. You can start a new one.