Page 1 of 1
[Solved] Anxious to Pay you! Formatted RSS feed from News Module
Posted: Tue Jan 15, 2008 11:10 pm
by casidougal
I'm looking for a developer who can provide a solution to having the News Module create RSS feeds that are formatted/styled. Currently the RSS feeds from my CMSMS installs v1.0.8 have all text run together with no breaks and do not include photos, links, etc. A more complete description of the issue and desired solution can be found on this post:
http://forum.cmsmadesimple.org/index.ph ... 340.0.html
I would be looking for a solution that includes general guidelines so the solution can be applied to existing CMSMS sites and new ones as we launch them.
You can contact me by clicking the mail icon to the left of this post or call me directly at 208.475.3192
Thanks,
Doug
Re: Create a formatted RSS feed from News Module
Posted: Wed Jan 16, 2008 4:10 pm
by casidougal
mark wrote:
When I look at it in Sage, Firefox RSS reader extension, it looks just like all the other ones I have...
Thanks for the reply, Mark... how do all the feeds look to you? Formatted or with the text all run together with no breaks?
Myself and other users are observing a significant difference in the RSS feeds produced by the News Module (on multiple CMSMS 1.0.8 installs) as compared feeds from other sources.
For example if you go to Blogger's main feed and open the feed in Firefox you'll notice that the feed (specifically the content of each article) is formatted (line breaks, hyperlinks, photos, etc.)
http://feeds.feedburner.com/BloggerBuzz
or as seen in this random blogger feed I just found:
http://krhunt.blogspot.com/feeds/posts/default?alt=rss
It's the content of each article that I'm looking at . . . with other RSS feeds like blogger the styling, formatting, photos & such are included in the feed.
Here's a another CMSMS feed, notice that the content of each article are just run together in one big string of text with no formatting.
And another example I just set up. Notice on the"News Module Installed" post I added paragraph breaks, formatting, a hyperlink and a photo.
http://calvaryromania.org/cluj/index.php?page=blog
But if you look at
the feed none of that is represented.
From what I can see this RSS feed behavior is the same across all versions of CMSMS.
Re: Anxious to Pay you! Formatted RSS feed from News Module
Posted: Wed Jan 16, 2008 10:32 pm
by Nullig
Don't know if this would work, or not, but you could try editing the action.rss.php file and change the following lines:
Code: Select all
$onerow->strippedcontent = strip_tags($onerow->content);
$onerow->strippedsummary = strip_tags($onerow->summary);
to:
Code: Select all
$onerow->strippedcontent = $row['content'];
$onerow->strippedsummary = $row['summary'];
Nullig
Re: Anxious to Pay you! Formatted RSS feed from News Module
Posted: Thu Jan 17, 2008 9:07 pm
by casidougal
Thank you for the reply. I tried your suggestion but the RSS feed shows the following in the content area under each article post.
Code: Select all
string(43) "Smarty error: eval: missing 'var' parameter"
The
news page is here if you would like to take a look.
If you think this is something you might be able solve I am ready to pay you for your time

Please contact me if you're interested.
Re: Anxious to Pay you! Formatted RSS feed from News Module
Posted: Thu Jan 17, 2008 9:18 pm
by calguy1000
I'd take you up on this stuff, but honestly, I'm swamped

Re: Anxious to Pay you! Formatted RSS feed from News Module
Posted: Sat Feb 09, 2008 5:57 pm
by casidougal
The second option you posted seems to do the trick:
Code: Select all
$onerow->strippedcontent = $row['news_data'];
$onerow->strippedsummary = $row['summary'];
THANK YOU!!