View Full Version : Script Settings for Rss Feed?
big123
04-18-2006, 06:16 PM
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??
Thanks.
Patrick
04-18-2006, 06:29 PM
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.
big123
04-18-2006, 06:48 PM
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.
Patrick
04-18-2006, 10:25 PM
Here is the file that you will need to update for the PHP 4.x system.
This file should replace the current /forum-news/classes/access/xml.php file.
(file is attached to this post).
big123
04-19-2006, 12:35 PM
Hi Patiek,
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
BTW, I changed the folder forum-news to just news
Patrick
04-19-2006, 12:42 PM
I forgot about the rss.php file as well.
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.
big123
04-19-2006, 12:50 PM
Thanks Patiek, no hurry man. I really appreciate everything :)
big123
04-22-2006, 10:30 AM
Sorry to be impatient and a pest Patiek, I know your busy, but when can I expect that file brotha. Your script is too good not to be in use :)
Patrick
04-22-2006, 12:10 PM
I will post it later today.
Patrick
04-23-2006, 02:40 PM
I guess I didn't post it later that day.
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
big123
04-23-2006, 04:23 PM
Hi Patiek,
I uploaded and rewrote the rss.php and generated code and now I'm getting this warning on my page where the code is
Warning: fopen(root): failed to open stream: No such file or directory in /public_html/news/classes/access/xml.php on line 42
Error reading XML file: root
Thanks
Patrick
04-23-2006, 05:20 PM
Try this one (I forgot some PHP4 required links).
Also double check your RSS/XML source URL.
big123
04-24-2006, 09:17 PM
Hi Patiek,
I rewrote the new rss.php and checked about 10 different rss feed URL's and still getting the same error
Warning: fopen(root): failed to open stream: No such file or directory in /public_html/news/classes/access/xml.php on line 42
Error reading XML file: root
Has this RSS feature on this script been tested before?
I have another php parser that parses the rss feeds fine but it doesn't have the items and character limit like this one does.
Thanks
Patrick
04-25-2006, 02:55 AM
Hi Patiek,
I rewrote the new rss.php and checked about 10 different rss feed URL's and still getting the same error
Warning: fopen(root): failed to open stream: No such file or directory in /public_html/news/classes/access/xml.php on line 42
Error reading XML file: root
Has this RSS feature on this script been tested before?
I have another php parser that parses the rss feeds fine but it doesn't have the items and character limit like this one does.
Thanks
The RSS feature was only tested under PHP 5 environment. It was intended to work under PHP 4 as well but was never officially tested.
the xml.php is doing all of the dirty work, including all of the actually xml fetching, etc. The RSS.php is simply a file that utilizes the xml object and allows for interaction with the news script by sporting the necessary methods of all forum modules. The only reason it doesn't work by default is due to accessing some objects via $something->function_1()->function_2();
I can probably fix the problem in less than an hour if you PM me your FTP login and script location.
There are also a couple of bug fixes and improvements that I am sitting on at the moment (I will release the new version in a few weeks once I finish another mod/hack/script I am working on).
I will place the script under a PHP 4 environment in the next 24 hours and get it working.
big123
04-25-2006, 03:06 AM
OK Patiek. I have never used an FTP client. I use c-panel file management strictly. I never got into uploading by FTP. It's a pain in the ass ocassionally when I have to manually upload every file of a software or upgrade.
Should I PM you my c-panel log in?
Thanks
Patrick
04-25-2006, 03:27 AM
Ok, this should be it.
I fixed the problem. The problem was mostly due to the difference in the alpha version that I use and the current version that you are using (which normally I would open up the old script and work under that... but as I said these are unusual circumstances since I am reorganizing many of my files).
This file replaces the xml.php file that have come to love. It has been tested under a PHP 4 environment and, along with the updated RSS.php file, is working.
big123
04-25-2006, 12:51 PM
Hi Patiek,
It works good now but there is 2 things that I was wondering about.
1. It doesn't give a link back to the real news source, all of the rss feed links are my domain name.
2. The latest headline news it fetches from the feed is about from 5 days ago, it doesn't pull the latest news from the feed and is displayed in somewhat of a different order.
My other php rss parser I use to fetch the same rss feed has everything current, in order and a links back to the full articles.
Is there anything you can modify to make it at least give a link back to the source articles?
Thanks
Patrick
04-25-2006, 01:16 PM
Where is the news feed (so that I can see what is happening)?
big123
04-25-2006, 01:25 PM
Here is the News Feed
http://feeds.feedburner.com/PokerGazette
Here is my site pulling the feed
http://www.topsixpoker.com/test.php (on the bottom of page) I'm currently designing the site now.
Here is my other site pulling the same feed with another php parser
http://www.sportscapperisland.com/pokernews.php
Patrick
04-26-2006, 04:26 PM
Most of your problems stem from the fact that the EP-Dev Forum News script doesn't fully support that feed and that the feed is missing some important data the script uses (such as specific dates for posts). However, the 2.x series of the script was designed to be specifically easily to edit and add various news sources, standards, and so on.
I have improved the RSS.php file that parses the XML for news posts to include support for the feedburner link style as well as to properly handle feeds that do not have individual publishing dates or post ids.
This file has only been tested under PHP 5, but it should also work fine under PHP 4. I have specifically tested it with the feed that you provided and I have confirmed that it is working (including proper ordering, comments link, etc).
Patrick
04-26-2006, 04:44 PM
Oh, there is also an updated version of the character limit around here somewhere. I suggest looking for it. It prevents cutting off in the middle of words.
Thus, for some "Some random phrase", instead of "Some rand..." you will get "Some random..."
EDIT:
Here is the improved character limit thread... look for display.php file: http://www.dev-forums.com/index.php/topic,226.0.html
Heh... just noticed that was you back then as well.
I really need to release an update as soon as I have a chance that includes all of these improved features, etc.
big123
04-26-2006, 06:35 PM
LOL, I just uploaded the new display.php file right before I read this post.
I uploaded the new rss.php file and it works great now. The only thing I don't understand is it doesn't give the feedburner URL's but I don't mind that at all.
The only problem with this particular feed http://feeds.feedburner.com/PokerGazette is sometimes it makes a crazy (A) mark instead of an apostraphe and some other puncuations.
I found the same feed http://www.pokergazette.com/simpnews/rss_news.php?category=1 and it doesn't do that. all is clean. But I tried it on your script as a news source for rss and it works but the only thing it doesn't do is give the URL's back to the news source.
I guess I'm getting a bit picky :)
Anyway, thanks for all of your help. I really appreciate it. I will give a link back to your site in my directory. I just put up a nice one 2 days ago.
big123
04-26-2006, 06:37 PM
Man, with me being such a pest, you will have the greatest scripts ever :)
Patrick
04-26-2006, 07:35 PM
LOL, I just uploaded the new display.php file right before I read this post.
I uploaded the new rss.php file and it works great now. The only thing I don't understand is it doesn't give the feedburner URL's but I don't mind that at all.
The URL of the particular news entry can be found with the tag !!NEWS_URL!! . There isn't any other place to put any other URL(s) that makes logical sense, without adding an additional tag.
big123
04-26-2006, 09:02 PM
Gotcha Patiek :)
How come the script gives the source URL's for the !!NEWS_URL!! tag for this particular rss feed http://feeds.feedburner.com/PokerGazette but when I try alot of other rss feeds it just gived my domain name as the !!NEWS_URL!! tag.
I don't get it. Alll of the rss feeds I've tried shows the titles and content but only a few gave the source URL's for the !!NEWS_URL!! tag and the rest gave me my domain name.
Patrick
04-26-2006, 10:44 PM
Some RSS feeds do not carry links.
If you have any feeds that you think do carry links and should have them in the EP-Dev forum script as well, post them here and I will see what is going on.
lover
09-06-2008, 02:42 AM
Some RSS feeds do not carry links.
If you have any feeds that you think do carry links and should have them in the EP-Dev forum script as well, post them here and I will see what is going on.
I know this post is 2 years old but I think I'm having this problem with a particular feed. I think it's with any feed generated by the IP.Blog compontent for Invision Power Board.
!!NEWS_URL!! isn't returning any data in the template for these RSS feeds, but I'm pretty sure they do carry links. You can try testing with the official Invision Power blog (http://forums.invisionpower.com/index.php?autocom=blog&req=syndicate) which has the problem.
Thanks for any help in advance! :)
Powered by vBulletin™ Version 4.0.0 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.