FeedForAll Forum Index  
 Home  •  FAQ  •   Search   •  Register   •  Profile   •  Log in
 Future-rss.php and rssmesh.php View next topic
View previous topic
Post new topicReply to topic
Author Message
MacSupport



Joined: 24 Feb 2005
Posts: 2805

PostPosted: Tue Oct 10, 2006 3:42 pm Reply with quoteBack to top

Becky Lash wrote:
Is there a good way to use these two scripts together? I like keeping my xml files separate so I can keep monthly archives.

I've tried combining the two scripts, but I'm not a .php programmer.

Thanks for any ideas that I can test.

Becky


rssMesh.php creates an XML file as it's output. You can then just point futureRSS.php at rssMesh.php with the same configuration you use to run rssMesh.php

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
MacSupport



Joined: 24 Feb 2005
Posts: 2805

PostPosted: Tue Oct 10, 2006 4:08 pm Reply with quoteBack to top

Becky Lash wrote:
Thanks for the quick response. I tried that and didn't have much luck. I'll try that again.

Becky


Lets say that you run rssMesh.php like
Code:

http://www.yoursite.com/rssMesh.php?CONFIGFILE=yourconfigfile.php


Edit your future-rss.php configuration to contain
Code:

$cfg["rss_feed"]='http://www.yoursite.com/rssMesh.php?CONFIGFILE=yourconfigfile.php';


I am not an expert on future-rss.php, but that should work. But you will want to make sure at least some of the <pubDate>s created by rssMesh.php are in the past.

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
MacSupport



Joined: 24 Feb 2005
Posts: 2805

PostPosted: Tue Oct 10, 2006 4:20 pm Reply with quoteBack to top

Becky Lash wrote:
Hmmmm not much luck. I must be missing something obvious here.

I tried using this in the future-rss.php file:

$cfg["rss_feed"]='http://www.epictrends.com/usability-technical-writing-copywriting-multimedia/rssMesh.php?rssMesh_SampleConfig.php';


I also tried this

$cfg["rss_feed"]='rssMesh.php?rssMesh_SampleConfig.php';

Neither worked when I plugged this into my browser:

'http://www.epictrends.com/usability-technical-writing-copywriting-multimedia/future-rss.php

Any ideas on what I'm missing?


Looks like we cross posted.

If I remember correctly you are also using rss2html.php, right? That defaults to using cURL since fopen() has been disabled on my ISPs. However, it looks like future-rss.php defaults to fopen(). Try changing it to cURL.
Code:
$cfg['fetch_method'] = "curl";


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
MacSupport



Joined: 24 Feb 2005
Posts: 2805

PostPosted: Tue Oct 10, 2006 4:37 pm Reply with quoteBack to top

Becky Lash wrote:
Thanks for the suggestions. I know I am missing something obvious. I tried your suggestions, but no luck. Here's the code for future-rss.php:

$cfg["rss_feed"]="http://www.epictrends.com/usability-technical-writing-copywriting-multimedia/rssMesh.php?CONFIG=rssMesh_SampleConfig.php";


$cfg['fetch_method'] = "curl"; // fopen, curl
$cfg['url_override'] = true; // Warning! security unsafe!
// use "url" parameter to pass RSS feed to script
// example: http://localhost/rss_proxy.php?url=<url>

$cfg["filter_method"] = "time"; // time - display item if ITEM_TIME <= CURRENT_TIME
// date - display item if ITEM_TIME <= endOfDay(CURRENT_TIME)

++++++++++++++++++++++++++++++

+++++++++++++++Here's the code for rssMesh_SampleConfig.php:

<?PHP

$useOutputCaching = 0;

$outputCacheTTL = 3600;

$XMLTemplate = "usability-technical-writing-copywriting-multimedia.xml;"

$sortOutputByPubDate = 1;

$feedList = Array(

// Entry #1
Array("fileURL" => "http://www.epictrends.com/usability-technical-writing-copywriting-multimedia/200610.xml",
"itemCount" => "50",
"feedTTL" => "3600"
)
,

// Entry #2
Array("fileURL" => "http://www.epictrends.com/usability-technical-writing-copywriting-multimedia/200609.xml",
"itemCount" => "50",
"feedTTL" => "3600"
)
,

// Entry #3
Array("fileURL" => "http://www.epictrends.com/usability-technical-writing-copywriting-multimedia/200608.xml",
"itemCount" => "50",
"feedTTL" => "3600"
)
);

?>

++++++++++++++++++

Any ideas? Thanks for your help so far!
Becky


I tried it on my server here I use for the other scripts and it worked. I will give a shout to the other developer.

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
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