FeedForAll Forum Index  
 Home  •  FAQ  •   Search   •  Register   •  Profile   •  Log in
 FutureRSS allow users to set expiration dates too? View next topic
View previous topic
Post new topicReply to topic
Author Message
seancom



Joined: 26 Apr 2007
Posts: 13

PostPosted: Thu Jul 26, 2007 1:01 pm Reply with quoteBack to top

Hi,

I finally got FutureRSS to work and I've got podcasts scheduled through September, so thanks for a great tool.

I read on the forum that if I want to limit the content that is shown, I have to use RSSMesh - which I am still trying to figure out how to make work for me. I saw someone ask in the forum if a setting for an "expiration date" might be built into a future version of FutureRSS/FeedforAll, but I didn't see a response - so I thought I'd raise it again.

Since I'm not a programmer, having a layman's FeedforAll user interface to allow me to set both the future publish and expiration dates for each item would be really helpful.

There are plenty of radio broadcasters like me who are making their programs available as a podcasts. But unlike some podcasters, we want to only allow a certain window of podcasts so that we can drive sales of archived shows.

Thanks,

Eric
View user's profileYahoo Messenger
Tech Support



Joined: 27 Aug 2004
Posts: 2782

PostPosted: Sun Jul 29, 2007 1:52 pm Reply with quoteBack to top

With a little bit of work, you could probably get the RSSFilter script to do that for you.

_________________
Create RSS Feeds
Audio Recording and Editing
View user's profile
MacSupport



Joined: 24 Feb 2005
Posts: 2805

PostPosted: Sun Jul 29, 2007 1:59 pm Reply with quoteBack to top

seancom wrote:
Hi,

I finally got FutureRSS to work and I've got podcasts scheduled through September, so thanks for a great tool.

I read on the forum that if I want to limit the content that is shown, I have to use RSSMesh - which I am still trying to figure out how to make work for me. I saw someone ask in the forum if a setting for an "expiration date" might be built into a future version of FutureRSS/FeedforAll, but I didn't see a response - so I thought I'd raise it again.

Since I'm not a programmer, having a layman's FeedforAll user interface to allow me to set both the future publish and expiration dates for each item would be really helpful.

There are plenty of radio broadcasters like me who are making their programs available as a podcasts. But unlike some podcasters, we want to only allow a certain window of podcasts so that we can drive sales of archived shows.

Thanks,

Eric


Actually it is very easy with the "Natural Language" functions of PHP's data functions. The following script will show all times in the feed from 3 weeks ago to today.

Code:
<?PHP

// The URL of the feed.
$XMLfilename = "http://www.feedforall.com/blog-feed.xml";

$outputCacheTTL = 3600;
$useOutputCaching = 0;
//
// The function that decides if the current item will be used.
// return TRUE to use the itme, FALSE to not
if (!isset($_REQUEST["buildScript"])) {
  Function rssFilter_useItem($currentItem) {
    // the default fall through is to use the item
    if ($currentItem->beforeOrOnDate("~~~ItemPubDateAsNumber~~~", "today", 0) &&
      $currentItem->afterDate("~~~ItemPubDateAsNumber~~~", "3 weeks ago", 0)) {
      return TRUE;
    }
    return FALSE;
  }
}

//
// Since we are calling rssFilter.php from here, we don't want
// to include a separate script file.
$FilterScriptFilename = "DO_NOT_INCLUDE_SCRIPT";
if (!isset($_REQUEST["buildScript"])) {
  @include_once("rssFilter.php");
}

$matchType = "AND";
$filterElements = Array(
// Entry #1
Array("Field" => "~~~ItemPubDateAsNumber~~~",
      "Filter" => "beforeOrOnDate",
      "Value" => "today",
      "MatchCase" => "0"
      )
,

// Entry #2
Array("Field" => "~~~ItemPubDateAsNumber~~~",
      "Filter" => "afterDate",
      "Value" => "3 weeks ago",
      "MatchCase" => "0"
      )
);


?>


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
seancom



Joined: 26 Apr 2007
Posts: 13

PostPosted: Mon Jul 30, 2007 3:04 pm Reply with quoteBack to top

Thanks for your assistance! I have a question about the logical order of the files:

I read through the RSSFilter materials and configured a filter so that I only show 12 weeks of items at a time. The filter has the podcast address in it (actually the FutureRSS script), so do I give the FilterRSS file address to Feedburner? Essentially does it come in line after my FutureRSS file, which comes after my podcast xml file?

You can see the filter file here:

http://media.hiskids.net/paws/RSSFilter/pntpodcast12weeks.php

My FutureRSS file is here:

http://media.hiskids.net/paws/pntpodcast.php

My XML is here:

http://media.hiskids.net/paws/pntpodcast.xml
View user's profileYahoo Messenger
MacSupport



Joined: 24 Feb 2005
Posts: 2805

PostPosted: Mon Jul 30, 2007 3:50 pm Reply with quoteBack to top

seancom wrote:
Thanks for your assistance! I have a question about the logical order of the files:

I read through the RSSFilter materials and configured a filter so that I only show 12 weeks of items at a time. The filter has the podcast address in it (actually the FutureRSS script), so do I give the FilterRSS file address to Feedburner? Essentially does it come in line after my FutureRSS file, which comes after my podcast xml file?

You can see the filter file here:

http://media.hiskids.net/paws/RSSFilter/pntpodcast12weeks.php

My FutureRSS file is here:

http://media.hiskids.net/paws/pntpodcast.php

My XML is here:

http://media.hiskids.net/paws/pntpodcast.xml


You don't need the futureRSS script any more, rssFilter is doing that. And, yes all you have to do is use the URL for the filter script. It looks like you pasted the filter script into a Microsoft editor that tried to keep the formating and totally corrupted the file.

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
seancom



Joined: 26 Apr 2007
Posts: 13

PostPosted: Mon Jul 30, 2007 3:56 pm Reply with quoteBack to top

Jim,

Thanks for the quick reply. I have some confusion. The FilterRSS will provide the functionality I need to future schedule my podcasts from here on out - so I don't need FutureRSS any longer - I simply enter the future dates into the FeedforAll interface as before?

I will launch a new podcast in the next few weeks and want to do the same type of thing - limit the number of live items and schedule into the future, do I just use the filter file and set it up similarly?

I will clean up the formatting on the filter file - thanks for pointing that out.

Eric
View user's profileYahoo Messenger
MacSupport



Joined: 24 Feb 2005
Posts: 2805

PostPosted: Mon Jul 30, 2007 4:36 pm Reply with quoteBack to top

seancom wrote:
Jim,

Thanks for the quick reply. I have some confusion. The FilterRSS will provide the functionality I need to future schedule my podcasts from here on out - so I don't need FutureRSS any longer - I simply enter the future dates into the FeedforAll interface as before?

I will launch a new podcast in the next few weeks and want to do the same type of thing - limit the number of live items and schedule into the future, do I just use the filter file and set it up similarly?

I will clean up the formatting on the filter file - thanks for pointing that out.

Eric


Yes, the script I posted will do the same filtering as futureRSS, with the addition of not showing items more the 3 weeks old.

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
seancom



Joined: 26 Apr 2007
Posts: 13

PostPosted: Mon Jul 30, 2007 5:17 pm Reply with quoteBack to top

Jim,

Thanks for your assistance. Okay - I pasted the script above into a text editor without additional Windows formatting (I think). Anyway - I want 12 weeks of content to show instead of 3 and changed all instances of that variable accordingly. I then renamed the php file as the same as my xml file (overwriting what had been my futureRSS file).

Since I currently have less than 12 weeks of items to display, I tested at 3 weeks and 12 and everything seems to work well I think. So my next podcast and enclosure items should publish around midnight Saturday.

If it's not an imposition, would you check it too to make sure it looks formatted correctly?

http://media.hiskids.net/paws/rssfilter/pntpodcast.php

Many thanks!
View user's profileYahoo Messenger
MacSupport



Joined: 24 Feb 2005
Posts: 2805

PostPosted: Mon Jul 30, 2007 5:31 pm Reply with quoteBack to top

seancom wrote:
Jim,

Thanks for your assistance. Okay - I pasted the script above into a text editor without additional Windows formatting (I think). Anyway - I want 12 weeks of content to show instead of 3 and changed all instances of that variable accordingly. I then renamed the php file as the same as my xml file (overwriting what had been my futureRSS file).

Since I currently have less than 12 weeks of items to display, I tested at 3 weeks and 12 and everything seems to work well I think. So my next podcast and enclosure items should publish around midnight Saturday.

If it's not an imposition, would you check it too to make sure it looks formatted correctly?

http://media.hiskids.net/paws/rssfilter/pntpodcast.php

Many thanks!


Looks good to me.

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