Author |
Message |
zebrafactory
Joined: 03 Jan 2007
Posts: 6
Location: Perth, Australia
|
Posted: Wed Jan 03, 2007 10:21 pm |

|
I've been trawling and no matter I can't seem to get items with dates in the future to NOT display.
I tried the NOFUTUREITEM thing in both the URL of the general RSS2HTML call as well as in the HTML template itself.
I also tried doing the following in the HTML template without success.
~~~BeginItemsRecord~~~
$okayToDisplay = 0;
// Only find the time/date of an item if there was a PubDate
if ("~~~ItemPubDate~~~" != "" ){
$pubDateTime = strtotime("~~~ItemPubDate~~~");
$now = time();
if ((0 <= ($now - $pubDateTime)) {
$okayToDisplay = 1;
}
}
if ($okayToDisplay == 1) {
echo "~~~ItemTitle~~~";
echo "~~~ItemDescription~~~ ";
echo " ";
}
?>
~~~EndItemsRecord~~~
I have a project with 11 different feeds that are being integrated. If I was to go the FutureRSS route do I need to somehow integrate a separate PHP script for each XML file? How then do I apply my HTML template like in RSS2HTML? Do I use the new PHP script, the original XML and the HTML like in RSS2HTML?
Basically, I'm not too sure how to use the FutureRSS script as the instructions are a bit cryptic.
Feeling a bit thick at the moment.
|
|
|

|
 |
zebrafactory
Joined: 03 Jan 2007
Posts: 6
Location: Perth, Australia
|
Posted: Wed Jan 03, 2007 10:53 pm |

|
|

|
 |
MacSupport
Joined: 24 Feb 2005
Posts: 2805
|
Posted: Thu Jan 04, 2007 6:15 am |

|
zebrafactory wrote: |
I've been trawling and no matter I can't seem to get items with dates in the future to NOT display.
I tried the NOFUTUREITEM thing in both the URL of the general RSS2HTML call as well as in the HTML template itself.
I also tried doing the following in the HTML template without success.
~~~BeginItemsRecord~~~
$okayToDisplay = 0;
// Only find the time/date of an item if there was a PubDate
if ("~~~ItemPubDate~~~" != "" ){
$pubDateTime = strtotime("~~~ItemPubDate~~~");
$now = time();
if ((0 <= ($now - $pubDateTime)) {
$okayToDisplay = 1;
}
}
if ($okayToDisplay == 1) {
echo "~~~ItemTitle~~~";
echo "~~~ItemDescription~~~ ";
echo " ";
}
?>
~~~EndItemsRecord~~~
I have a project with 11 different feeds that are being integrated. If I was to go the FutureRSS route do I need to somehow integrate a separate PHP script for each XML file? How then do I apply my HTML template like in RSS2HTML? Do I use the new PHP script, the original XML and the HTML like in RSS2HTML?
Basically, I'm not too sure how to use the FutureRSS script as the instructions are a bit cryptic.
Feeling a bit thick at the moment. |
Okay, the simplest place to start is with a very simple template and rss2html.php?buildURL. In there fillin your feed and use the sample template and check the "no future items" check box. After clicking on submit click on the test link.
If you are still having problems, we can help you more with the real URLs
Jim
|
_________________
Be sure to check out the FeedForAll Mac tutorials at: http://www.FeedForAll.com/tutorials/
FeedForAll Mac and rss2html.php
|
|

|
 |
zebrafactory
Joined: 03 Jan 2007
Posts: 6
Location: Perth, Australia
|
Posted: Thu Jan 04, 2007 9:48 pm |

|
|

|
 |
zebrafactory
Joined: 03 Jan 2007
Posts: 6
Location: Perth, Australia
|
Posted: Thu Jan 04, 2007 9:50 pm |

|
|

|
 |
zebrafactory
Joined: 03 Jan 2007
Posts: 6
Location: Perth, Australia
|
Posted: Thu Jan 04, 2007 11:39 pm |

|
|

|
 |
MacSupport
Joined: 24 Feb 2005
Posts: 2805
|
Posted: Fri Jan 05, 2007 8:06 am |

|
zebrafactory wrote: |
http://www.thermomix.com.au/beta/rss2html.php?XMLFILE=http://www.thermomix.com.au/beta/genericnews.xml&TEMPLATE=http://www.thermomix.com.au/beta/02-template.html&MAXITEMS=20&NOFUTUREITEMS=1;
Don't know why it didn't work before, but it seems to work now. As most of the users will be using the website rather than Readers then that fulfils the requirements. |
Glad it works.
|
_________________
Be sure to check out the FeedForAll Mac tutorials at: http://www.FeedForAll.com/tutorials/
FeedForAll Mac and rss2html.php
|
|

|
 |
vickywebworld
Joined: 29 Dec 2009
Posts: 1
|
Posted: Tue Dec 29, 2009 12:54 pm |

|
|
 |
 |
FeedForAll Sales
Joined: 10 Jun 2009
Posts: 249
|
Posted: Tue May 04, 2010 9:04 am |

|
|

|
 |
jerryTheJerry
Joined: 22 Aug 2011
Posts: 1
Location: San Francisco, CA
|
Posted: Mon Aug 22, 2011 7:25 pm |

|
I know this is an easy one, but I'm new to this stuff and am trying to figure out how to add links to a few RSS feeds on my PHP site, Bay area junk removal . Can anyone point me in the right direction?
|
|
|

|
 |
Tech Support
Joined: 27 Aug 2004
Posts: 2683
|
Posted: Wed Aug 24, 2011 12:47 pm |

|
The best way to start would be to download our program FeedForAll and give the trial version a shot. It'll take you through creating and uploading an RSS feed to your website.
|
_________________
Create RSS Feeds
Audio Recording and Editing
|
|
 |
 |
|