Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support Link error with RSS feed
BravoZulu
Posted on 27 Feb 2012, 00:40:55

Access: Member
Total Posts: 3
Joined: 2012-02-26

Hello and thank you for this great project :-)

I installed "N-13 News 4.0.2" and everything works ! (http://www.murieldubuis.com/index_fr.htm < "Agenda & Concerts")

Now I'm trying the "RSS feed": http://www.murieldubuis.com/news/rss.php?feed=Agenda_MD With only {title} everything works.

But when I want to show {article} I get the following error: Reference to undefined entity 'nbsp'. Line: 14 Car.: 55 &quot;<span fckbookmark="1" style="display: none">&nbsp;</span><a href="http://www.chorus.ch/" target="_blank" title="Chorus - Lausanne">Chorus</a>&quot; [Lausanne]<br />

Where is the problem ? Should I activate "FriendlyURLs" ?

Thank you for your answers,

Guy-Laurent (French speaking part of Switzerland)

#3760
Chris
Posted on 27 Feb 2012, 18:31:38

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

I can't seem to replicate this problem. Can you show me the RSS Code you're using for your feed? could you also add the {article} tag to the feed so that I can see the problem myself.

#3761
BravoZulu
Posted on 28 Feb 2012, 01:01:59

Access: Member
Total Posts: 3
Joined: 2012-02-26

Thank you for the answer. Here are the codes. I tested various versions.

Note that at first I wanted to display only the "article" and "url" (no date). But link show no News on the page! I'm on a html page! "AddType application/x-httpd-php .htm" in ".htaccess" file.

"Title" only (OK) - Agenda_MD :

http://www.murieldubuis.com/news/rss.php?feed=Agenda_MD

<item>
    <title>{title}</title>
</item>

"Title" + "Article" (Error link /Same with only "Article") - AgendaMDTest-Article :

http://www.murieldubuis.com/news/rss.php?feed=AgendaMDTest-Article

<item>
    <title>{title}</title>
    <article>{article}</article>
</item>

"Title" + "Others" (OK - Bad links - News empty) - AgendaMDTest-Link :

http://www.murieldubuis.com/news/rss.php?feed=AgendaMDTest-Link

<item>
    <title>{title}</title>
    <link>{url}</link>
    <description><![CDATA[{summary}]]></description>        
    <pubDate>{date} {timezone}</pubDate>
    <guid isPermaLink="false">{id}_{timestamp}</guid>
</item>

Thanks, Guy-Laurent

#3764
Last edited by BravoZulu at 2012-02-28 01:35:16 Reason: 2x underscore not visible in txt + url ? (Agenda_MD_Test...) Strange txt editor !?
Chris
Posted on 28 Feb 2012, 03:37:19

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

I'm a bit confused as to what you're using this RSS feed for. From what I understand it seems as if you're using the RSS feed then including it into an HTML page?

RSS feeds are simply XML data, their purpose is to allow users to read your sites content using RSS readers.

<item>
    <title>{title}</title>
    <article>{article}</article>
</item>

The code above is incorrect, there is no <article> tags in RSS feeds.

Use this code instead

<item>
    <title>{title}</title>
    <link>{url}</link>
    <description><![CDATA[{article}]]></description>        
    <pubDate>{date} {timezone}</pubDate>
    <guid isPermaLink="false">{id}_{timestamp}</guid>
</item>
#3765
BravoZulu
Posted on 28 Feb 2012, 21:35:02

Access: Member
Total Posts: 3
Joined: 2012-02-26

Thank you for this information.

As RSS is optional in N-13 I wanted to try. This is my first installation of RSS feeds.

I was misled as to the "article", by your instructions, without looking further. Admin > Options > RSS Feeds: Rss Code: Edit how your feed is displayed:

{title} - Displays the title of the article. ... {article} - Shows the article.

This is a mistake and now I found the specs:

http://www.rssboard.org/rss-specification (RSS specification) + http://www.rssboard.org/rss-validator (RSS validator) + http://feedvalidator.org/docs/rss2.html (Elements)

By cons that I rename my page .php or .htm no difference to the display of links. The page linked is empty. http://www.murieldubuis.com/news/rss.php?feed=AgendaMDTest-Link

Examples:

  • http://www.murieldubuis.com/index_fr.htm?id=23

  • http://www.murieldubuis.com/index_fr.php?id=23

  • http://www.murieldubuis.com/news/index.php?id=23

So what is the link to use for "News location"?

Is related to?:

<?php include 'news/index.php'; ?>

Thank you in advance for your response. Regards, Guy-Laurent

#3769
Last edited by BravoZulu at 2012-02-28 21:54:09 Reason: Formatting + "Agenda_MD_Test-Link"
Network-13.com © 2013