FeedForAll Forum Index  
 Home  •  FAQ  •   Search   •  Register   •  Profile   •  Log in
Search found 6 matches
Author Message
Topic: Bullets & Numbered Lists in HTML Editor
zebrafactory

Replies: 1
Views: 17894

PostForum: Feature Requests (FFA Mac)   Posted: Thu May 31, 2007 8:22 am   Subject: Bullets & Numbered Lists in HTML Editor
This would make my life a lot easier. It's easy enough to hand code but I have a client who wants to generate their own feeds and grumble as soon as a tag is even mentioned.
Topic: Idiots guide to using the scripts
zebrafactory

Replies: 10
Views: 43027

PostForum: FutureRSS (Automatic Content Publisher)   Posted: Thu Jan 04, 2007 11:39 pm   Subject: It works....
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.
Topic: Idiots guide to using the scripts
zebrafactory

Replies: 10
Views: 43027

PostForum: FutureRSS (Automatic Content Publisher)   Posted: Thu Jan 04, 2007 9:50 pm   Subject: &amp should be &
Some how got mucked up by C + P

Links should be:

http://www.thermomix.com.au/beta/rss2html.php?XMLFILE=http://www.thermomix.com.au/beta/genericnews.php&TEMPLATE=http://www.thermomix.com.au/beta/02-template.html&MAXITEMS=20;

&

http://www.thermomix.com.au/beta/rss2html.php?XMLFILE=http://www.thermomix.com.au/beta/genericnews.xml&TEMPLATE=http://www.thermomix.com.au/beta/03-template.html&MAXITEMS=20;
Topic: Idiots guide to using the scripts
zebrafactory

Replies: 10
Views: 43027

PostForum: FutureRSS (Automatic Content Publisher)   Posted: Thu Jan 04, 2007 9:48 pm   Subject: Future Feeding
Hi

Basically it's the situation where someone will be doing the various updates on a Monday. They might want to hold an article until that coming Thursday but won't be in front of the machine then to republish the feed.

I've managed to get the result I need using the following:

http://www.thermomix.com.au/beta/rss2html.php?XMLFILE=http://www.thermomix.com.au/beta/genericnews.php&TEMPLATE=http://www.thermomix.com.au/beta/02-template.html&MAXITEMS=20;

Item 2 is set for a publication date of Jan 27.

The genericnews.php file is a clone of FutureRSS.php with a reference to the original XML file included therein.

The problem is that I have 11 separate feeds and I can't help but imagine that there has to be a more elegant solution than to use a clone of the FutureRSS for every XML file.

I tried mucking around in Javascript with the following but it's a bit like Latin for me --- The concept feels right but it doesn't work in 'reality':

~~~BeginItemsRecord~~~
<script type="text/JavaScript">
<!--
function checkdate() {

var pubWhen = ~~~ItemPubDate~~~;
var nowWhen = new Date();
var pubDateTime = pubWhen.getTime();
var nowDateTime = nowWhen.getTime();
var ShoworNo = nowDateTime - pubDateTime;

if (ShoworNo > 0) {
document.write('<h3>~~~ItemTitle~~~</h3>');
document.write('<p>~~~ItemDescription~~~</p>');
document.write('<hr size="1" noshade="noshade">');
}
}
//-->
</script>
~~~EndItemsRecord~~~

URL for that is:
http://www.thermomix.com.au/beta/rss2html.php?XMLFILE=http://www.thermomix.com.au/beta/genericnews.xml&amp;TEMPLATE=http://www.thermomix.com.au/beta/03-template.html&MAXITEMS=20;
Topic: Idiots guide to using the scripts
zebrafactory

Replies: 10
Views: 43027

PostForum: FutureRSS (Automatic Content Publisher)   Posted: Wed Jan 03, 2007 10:53 pm   Subject: Sort of works but not sure if best route
So... mucked it (and it worked) with Future RSS but not sure if it's the best way.

Essentially I renamed FutureRSS to 'genericnews.php' and entered the original XML file (genericnews.xml) in the appropriate place in the script. My RSS2HTML call then became:

http://www.mydomain.com/rss2html.php?XMLFILE=http://www.mydomain.com/genericnews.php&TEMPLATE=http://www.mydomain.com/template.html&MAXITEMS=X;

As mentioned before I have 11 feeds so I'm not too sure if there is a better way other than me cloning FutureRSS 11 times (?)

Not such a techhead so any help appreciated.
Topic: Idiots guide to using the scripts
zebrafactory

Replies: 10
Views: 43027

PostForum: FutureRSS (Automatic Content Publisher)   Posted: Wed Jan 03, 2007 10:21 pm   Subject: Idiots guide to using the scripts
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~~~
<?php
$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 "<h3>~~~ItemTitle~~~</h3>";
echo "<p>~~~ItemDescription~~~</p>";
echo "<hr size="1" noshade="noshade">";
}
?>
~~~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.
 

 Jump to:   


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