I want to use an rss feed from a site and I just wanted to know if you can use the script settings on an rss feed, like setting the char limit and the number of items to display, the same as forum posts basically or does this script* just pull the rss feed as is??
The script settings should work on RSS feeds just fine when they can. For example, smilies won't be formatted because the RSS feed doesn't have a smilie database . However, stuff like char limit, etc, should work fine as they are global features that apply to all news sources.
Just a little note, I have a newer version of EP-Dev Forum News that has been modified and ready to go for months now (with the exception of a little updater editing). I will release that in a few weeks. The reason I mention it is that it contains an updated XML/RSS class that is compatible with PHP 4. The current version of the script only works with PHP 5. This was a bug that I didn't notice before the last release but I fixed later. If you are using PHP 4 then feel free to reply here and I will provide you the updated class file (that replaces the old, broken one under PHP 4). If your system is using PHP 5 then you do not need the updated file.
Thanks Patiek. My system is running PHP version 4.4.2 . So I guewss I'll need the new core file for the rss feed to work correctly.
I have another site I'm building now that I want to pull an RSS feed so I'll have to upload your script again to the new site. The rss feed has about 30 news items and I really wanted to chop that down to 5.
I'm running your news script on my sports site to fetch forum posts and it works great, Thanks.
I uploaded the news script, set the source to rss, put in the rss url and uploaded the xml file, then generated the code and put it in my .php page and got this error.
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /public_html/news/classes/sources/RSS/RSS.php on line 108
I know it seems like I am being sloppy, but in truth I am transitioning to a new OS and trying to provide you support at the same time .
Let me finish switching over to my new operating system and then I will post the updated RSS.php file.
The problem is the syntax $something->another()->final() that is acceptable in PHP 5 but not PHP 4. I will post the updated RSS.php file here in a bit.
I haven't tested this yet (other than with PHP 5 parser). Tell me if it works or if it still throws up an error (and post the entire error that it gives).
(attached again)
The file replaces /forum-news/classes/sources/RSS/RSS.php