Project Detail

Small Fix for PunBB RSS Feed  

Small Fix for PunBB RSS Feed is project number 208976
posted at Freelancer.com. Click here to post your own project.

 

| More Free Trial For New Buyers
 

Status:

Selected Providers: frustum

Budget: $30-100

Created: 01/01/2008 at 9:19 EST

Bid Count: 1

Average Bid:
N/A

01/02/2008 at 9:19 EST

Project Creator: hurry
Employer Rating: 10/1010/1010/1010/1010/1010/1010/1010/1010/1010/10 (3 reviews)

Bid On This Project
 

Description

I am having a small problem with the rss.php RSS MOD file for generating a RSS feed for the PunBB forum. This rss.php 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: http://alexking.org/projects/punbb/rss.zip 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.

Messages Posted:0 View project clarification board Post message on project clarification board

Bid On This Project
 

If you are the project creator or one of the bidders Log In for more options

Bids are hidden by the project creator. Log in as the project creator or as one of the bidders to view bids. You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.


    Bid on this Project