FeedForAll Forum Index  
 Home  •  FAQ  •   Search   •  Register   •  Profile   •  Log in
 RSSMesh problems with ?rss=news, ?rss=sports View next topic
View previous topic
Post new topicReply to topic
Author Message
robguy



Joined: 14 Jan 2007
Posts: 19
Location: Sunny Florida

PostPosted: Sat Feb 03, 2007 2:53 pm Reply with quoteBack to top

I'm in a bit of a pickle. The RSS provided by my site host is in these forms:

http://chronicleonline.com/?rss=news
http://chronicleonline.com/?rss=sports

and so on for all folders on the host's server

The RSS is provided via Userland software. All are valid RSS feeds, and are readable in any news reader. However, for some reason, I can't get rssMesh to recognize these feeds since they don't end in .xml.

Try the links for yourself. Any ideas? I would like to display multiple feeds, and have them passed to RSS2HTML for display, but rssMesh doesn't see the feeds and thus can't create an appropriate config file.

Thanks for any help.
View user's profileVisit poster's website
MacSupport



Joined: 24 Feb 2005
Posts: 2805

PostPosted: Sat Feb 03, 2007 6:33 pm Reply with quoteBack to top

robguy wrote:
I'm in a bit of a pickle. The RSS provided by my site host is in these forms:

http://chronicleonline.com/?rss=news
http://chronicleonline.com/?rss=sports

and so on for all folders on the host's server

The RSS is provided via Userland software. All are valid RSS feeds, and are readable in any news reader. However, for some reason, I can't get rssMesh to recognize these feeds since they don't end in .xml.

Try the links for yourself. Any ideas? I would like to display multiple feeds, and have them passed to RSS2HTML for display, but rssMesh doesn't see the feeds and thus can't create an appropriate config file.

Thanks for any help.


Putting them in my rssMesh config file works without a problem and produces a feed. At least with the two you have listed above.

Jim

_________________
Be sure to check out the FeedForAll Mac tutorials at: http://www.FeedForAll.com/tutorials/

FeedForAll Mac and rss2html.php
support@FeedForAll.com
View user's profileVisit poster's website
robguy



Joined: 14 Jan 2007
Posts: 19
Location: Sunny Florida

PostPosted: Sat Feb 03, 2007 7:28 pm Reply with quoteBack to top

I'm glad you got it to work.
View user's profileVisit poster's website
MacSupport



Joined: 24 Feb 2005
Posts: 2805

PostPosted: Sat Feb 03, 2007 8:15 pm Reply with quoteBack to top

robguy wrote:
I'm glad you got it to work.


Do you just have those two in your config? Or do you have more? I would start with just 1 and see if that works. There might be a specific feed that is causing a problem.

Jim

_________________
Be sure to check out the FeedForAll Mac tutorials at: http://www.FeedForAll.com/tutorials/

FeedForAll Mac and rss2html.php
support@FeedForAll.com
View user's profileVisit poster's website
robguy



Joined: 14 Jan 2007
Posts: 19
Location: Sunny Florida

PostPosted: Sat Feb 03, 2007 8:49 pm Reply with quoteBack to top

Using the rssMesh build.php:

XML Template used: rssMesh_Template.xml
Entry 1: http://chronicleonline.com?rss=news
Entry 2: http://chronicleonline.com?rss=sports

End of config file

==================

Code generated:

<?PHP

$useOutputCaching = 1;

$outputCacheTTL = 3600;

$XMLTemplate = "rssMesh_Template.xml";

$sortOutputByPubDate = 1;

$feedList = Array(

// Entry #1
Array("fileURL" => "http://chronicleonline.com/?rss=news",
"itemCount" => "4",
"feedTTL" => "3600"

)
,

// Entry #2
Array("fileURL" => "http://www.chronicleonline.com/?rss=sports",
"itemCount" => "4"

)
);

?>
====================

Feed view generated by RSSMesh:
http://chronicle-online.com/RSS_feeds/rssMesh/rssMesh.php?CONFIGFILE=rss_mesh_config.php

No items display

Trying one feed alone makes no difference.
View user's profileVisit poster's website
robguy



Joined: 14 Jan 2007
Posts: 19
Location: Sunny Florida

PostPosted: Sat Feb 03, 2007 10:35 pm Reply with quoteBack to top

I found the problem. I did not upload FeedForAll_Scripts_CachingExtension.php to my server.

I have a combined feed. I'm now off to figure out how to get RSS2HTML and RSSMesh to talk to each other so I can generate an HTML file to show the feeds.
View user's profileVisit poster's website
MacSupport



Joined: 24 Feb 2005
Posts: 2805

PostPosted: Sun Feb 04, 2007 7:32 am Reply with quoteBack to top

robguy wrote:
I found the problem. I did not upload FeedForAll_Scripts_CachingExtension.php to my server.


I will look at that need more closely.

Jim

_________________
Be sure to check out the FeedForAll Mac tutorials at: http://www.FeedForAll.com/tutorials/

FeedForAll Mac and rss2html.php
support@FeedForAll.com
View user's profileVisit poster's website
robguy



Joined: 14 Jan 2007
Posts: 19
Location: Sunny Florida

PostPosted: Sun Feb 04, 2007 11:35 am Reply with quoteBack to top

I appreciate your help. Many thanks.
View user's profileVisit poster's website
robguy



Joined: 14 Jan 2007
Posts: 19
Location: Sunny Florida

PostPosted: Sun Feb 04, 2007 12:43 pm Reply with quoteBack to top

A couple of approaches I've been working on:

1. The traditional PHP Include route. Mine has a little twist, though.
I created a base HTML page with the ~~~~ containers for all the fields I wanted to see. Next, I creaated the PHP page, with CSS, to contain each individual feed. For each feed I wanted to include on the PHP page, I let RSS2HTML create a page, then copied from the browser address bar the action I wanted to perform in the PHP include on the PHP page. For example, one include on the PHP page was for News:

<? include "http://chronicle-online.com/RSS_feeds/rss2html/rss2html.php?XMLFILE=http://chronicleonline.com/?rss=news&TEMPLATE=experimental3.html&MAXITEMS=8"
?>

I did this for each feed. I found the rssMesh approach did not allow me to differentiate between feeds with a title of my choosing, the result being that News was running into Sports, and figured readers would not care for that approach. So I scrapped the idea, but only for the time being. Nevertheless, the resulting page I ended up with (except for the Weather section of the page) is here: http://chronicle-online.com/RSS_feeds/rss2html/chronicle-combo.php.

In the final analysis, PHP created PHP (rss2HTML created input for the PHP page I created). I was pleased with the result.

2, I found there are only 2 other approaches to putting stuff on a page. The first is to change the .htaccess file to include php to allow embedding PHP on an HTML page, a process I would not recommend. The second approach, and one I took with the page above for the Weather section is with Javascript. Items from the National Weather service are minituare novels, in terms of how many words ae used to tell you your going to have fog in the morning, so I used the free service Feed2Js at Feed2js.org to create the piece of script I needed and then embedded it onto the PHP page. I needed this flexibility because Feed2js allows you to leave out fileds, truncate them to a certain amout of letters, allows links to open in a new window, style them with CSS, determne how many items will be displayed, etc. Anyway, the script I ended up with for the Weather section was:

<script language="JavaScript" src="http://www.chronicle-online.com/RSS_feeds/feed2js/feed2js.php?src=http%3A%2F%2Fwww.weather.gov%2Falerts%2Fwwarssget.php%3Fzone%3DFLZ042&amp;desc=300&amp;date=y&amp;targ=y&amp;pc=y" type="text/javascript"></script>

I could have done the whole page with Javascripts, but chose to use FeedForAll PHP scripts when possible, because I don't like a whole page of javascripts in front of surfers' eyes, some of whom may have their Javascript turned off.

As for PHP, I love it, but am not yet certain if pages this way are as spiderable by Google, Yahoo, etc., as HTML pages are, but I'll save that argument for a later day, because it is off topic for now.

As for my problem with not having the PHP cache used by rssMesh present on the server, I found, after backtracking my actions, that I had put rssMesh in the same folder as RSS2HTML, and although the cache file was there, it was not working for rssMesh. Once I moved the rssMesh files and reuploaded the PHP cache file into a new folder (not wanting to take any chances), all went well and rssMesh worked as advertised. Lesson learned: put each script in its own folder.

I wrote all of this narrative in the hopes it will help people who are searching for ways to implement FeedForAll scripts more easily. Sometimes the readme files are a bit murky, so maybe people will happen upon this bit of learning to help them hit the ground running (or at least walk faster).
View user's profileVisit poster's website
robguy



Joined: 14 Jan 2007
Posts: 19
Location: Sunny Florida

PostPosted: Sun Feb 04, 2007 12:47 pm Reply with quoteBack to top

The link I provided works, but don't used it with the period after it (like I indicated above).

The link for the result page (without the period):

http://chronicle-online.com/RSS_feeds/rss2html/chronicle-combo.php
View user's profileVisit poster's website
Display posts from previous:      
Post new topicReply to topic


 Jump to:   



View next topic
View previous topic


Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme