Käynnissä

Small Fix for PunBB RSS Feed

I am having a small problem with the [url removed, login to view] RSS MOD file for generating a RSS feed for the PunBB forum. This [url removed, login to view] mod is originally by Alex King. It is showing all the html in posts including flash objects, img src images, ahref links etc. perfectly. But it is not showing the link breaks in the posts posted on the forum. It is showing the line breaks of html posts which I import via the rss poster mod (designed separately)since they have <br /> tags I guess.

But the main problem is that it is not showing the line breaks of all posts directly posted on the forum. It shows them as jumbled up into one paragraph.

The mod is available here: [url removed, login to view] I have a line break problem with this Alex's mod. I have trying to find a solution for the last few days but nothing till now.

<description>".encode_xml($data)."</description> (line 213)

The above code displays all the post html perfectly in the RSS feed including flash objects, img src, ahref links etc. which is great. But all the post content is jumbled up in a big paragraph i.e. it strips out all the line breaks in the posts. I tried the changes suggested on punbb forums but they lead to another problem. I tried to replace that line by: <description><![CDATA[".$data."]]></description> Now the line breaks are properly displayed but then all the html is not. The html appears only in the post body as code and does not display the flash objects, photos, links etc.

I tried changing it to ".nl2br(encode_xml($data))." to introduce line breaks but that removes the post content itself from the feed. I want this line break problem to be fixed in the generated feed but I also want the full html display in the feed to remain as it is. This is my requirement. Fyi, Punbb does not support html in posts by default so I am using the Allow Html mod and it works fine.

Taidot: PHP, XML

Näytä lisää: punbb rss, punbb rss feed, feed punbb, find rss punbb, punbb posts rss, the fix it, the big lead, my fix, fix support, find the solution for, find a solution for, rss feed punbb, fix rss feed showing html tags, punbb rss feed poster, rss feed description line break, rss description line break, punbb line break code html, rss feed creator strips line breaks, punbb forum rss, punbb rss feed problem, rss php description linebreak cdata, punbb last posts html, punbb rss mod, punbb rss options, punbb rss import

Tietoa työnantajasta:
( 3 arvostelua ) LA, United States

Projektin tunnus: #208976