FeedForAll Forum Index  
 Home  •  FAQ  •   Search   •  Register   •  Profile   •  Log in
Search found 2805 matches
Author Message
Topic: RSSmesh Missing Entry #1 ????
MacSupport

Replies: 9
Views: 19974

PostForum: RSSmesh (Automatic Feed Aggregator)   Posted: Wed Aug 19, 2009 6:06 pm   Subject: RSSmesh Missing Entry #1 ????
With both at (1) nothing changes. It sounded to me that he was referring to the Entry #1 feed itself being backwards, nothing wrong in the mesh files.

There's gotta be an answer. What would you like to try next?

The solution, while kind of ugly will work just fine. You will have to run this feed through a copy of RSSMesh to put the feed in the right order. Then use the output of that RSSMesh in the second copy.

[code]
<?PHP

$useOutputCaching = 0;
$outputCacheTTL = 3600;
$XMLTemplate = "rssMesh_Template.xml";
$sortOutputByPubDate = 1;
$feedList = Array(

// Entry #1
Array("fileURL" => "http://www.realworldautomotive.com/questions-and-answers/rss/feed.html",
"itemCount" => "99999",
"feedTTL" => "3600"
)
);
//
// Since we are calling rssMesh.php from here, we don't want
// to include a separate config file.
$ConfigFilename = "DO_NOT_INCLUDE_CONFIG";
if (!isset($_REQUEST["buildConfig"])) {
@include_once("rssMesh.php");
}


?>
Topic: RSSmesh Missing Entry #1 ????
MacSupport

Replies: 9
Views: 19974

PostForum: RSSmesh (Automatic Feed Aggregator)   Posted: Wed Aug 19, 2009 5:57 pm   Subject: Re: $sortOutputByPubDate
Hi Jim,

I can only find $sortOutputByPubDate in the rssMesh.php file and the feed.php file in the mesh directory. rssMesh.php is at 1 and feed.php is at 0. Changing either one does not fix the problem.

$sortOutputByPubDate is not present in any of the files for the individual feeds.

So what makes Entry #1 backwards?

Alex

As I said feeds traditionally put the newest items at the beginning of the file. RSSMesh takes the first x entries. This feed is backwards from tradition in that it puts the new entries at the end.

Jim
Topic: RSSmesh Missing Entry #1 ????
MacSupport

Replies: 9
Views: 19974

PostForum: RSSmesh (Automatic Feed Aggregator)   Posted: Tue Aug 18, 2009 6:46 pm   Subject: Re: RSSmesh Missing Entry #1 ????
Here's the URL for the RSS mesh combining 5 feeds:

http://www.realworldautomotive.com/rss/mix/feed.html

And below is the script from the /feed.php file

Entry #1 is http://www.realworldautomotive.com/questions-and-answers/rss/feed.html

which is a good feed with new files entered up to today. However, on the mesh feed it stopped displaying new files on from this feed on July 25 (1995 Dodge Ram:).

All other entries are working up to date, all are on the same server, and they all work on the mesh feed except for Entry #1.

Can't figure out why. The data may have stopped going into the mesh from that feed the day I switched servers, but I don't see how that could make a difference, espeacilly seeing that all other entries are working correctly.

Help!


<?PHP

//
// Enable the caching for the resulting XML file.
$useOutputCaching = 0;

//
// The variable $outputCacheTTL controls how many seconds a cached copy of
// resulting RSS feed can be used before it must be recreated.
$outputCacheTTL = 3600;

//
// $XMLTemplate is the XML file that contains the outer, , items
// for the produced feed. This MUST be a valid RSS 2.0 feed without any
// 's. It must also specify "UTF-8" encoding, since all the produced
// items will be in UTF-8.
$XMLTemplate = "rssMesh_Template.xml";

//
// The variable $sortOutputByPubDate controls if the items in the resulting
// feed are sorted by their pubDate's, thus merging them together.
$sortOutputByPubDate = 0;

//
// The variable $feedList defines the feeds that will be used to create
// a new feed with.
$feedList = Array(

// Entry #1
Array("fileURL" => "http://www.realworldautomotive.com/questions-and-answers/rss/feed.html",
"itemCount" => "5",
"feedTTL" => "3600"
)
,

// Entry #2
Array("fileURL" => "http://www.realworldautomotive.c ...
Topic: Problem with Cache, not working
MacSupport

Replies: 10
Views: 15595

PostForum: RSS2HTML (RSS to HTML Converter)   Posted: Sun May 17, 2009 7:11 pm   Subject: Problem with Cache, not working
Hi again, I just tried on a different server, and it works fine with the same files, so I am guessing it is a server configuration issue. Do you have any idea what it could be?

we have an apache server
I did the 777 write permission on the folder

but nothing happens

I had meant


http://calder.med.miami.edu/rss/rss2html.php?buildURL


Sorry about that.

There are configurations that ISPs can enable that seem to prevent proper operation. I haven't figured it all out, but I have seen it. Can you use the other server?

Jim
Topic: Problem with Cache, not working
MacSupport

Replies: 10
Views: 15595

PostForum: RSS2HTML (RSS to HTML Converter)   Posted: Wed May 13, 2009 7:27 pm   Subject: Problem with Cache, not working
Hi, sorry to hijack this thread but this is the exact problem I am having. I also subscribed just to get access to the cache script because we really need it. I added the debug line and this is what I get, please help.

http://dl.getdropbox.com/u/203360/debug%20info.txt

The website is: http://calder.med.miami.edu/
I am using a php include to show the feeds.



<?php
$XMLFILE = "http://eutils.ncbi.nlm.nih.gov/entrez/eutils/erss.cgi?rss_guid=1f9BUYPXGXDFlcLku8m4UN366hhPdr_fTbQedNKhb5XRk-bkk";
$TEMPLATE = "rss/faculty-template.html";
include("rss/rss2html.php");
?>




thanks in advance

You should really use http://calder.med.miami.edu/rss/rss2html.php to get all of the possible caching options. But what I think you need is:


$ALLOWXMLCACHE = "1";
$XMLCACHETTL = "3600";


Jim
Topic: Reversing the PubDate sort order.....
MacSupport

Replies: 5
Views: 15158

PostForum: RSSmesh (Automatic Feed Aggregator)   Posted: Mon Apr 20, 2009 3:56 pm   Subject: Re: Reversing the PubDate sort order.....
I would like to reverse the order so the oldest pub dates appear first. Possible? I found the following code in rssmesh.php that *seems* needs to be modified but I'm pretty much clueless with php...


if ($sortOutputByPubDate) {
// Sort by PubDate
for ($x = 0; $x < count($rss_parserResults->Items)-1; $x++) {
for ($y = $x+1; $y < count($rss_parserResults->Items); $y++) {
if ($rss_parserResults->Items[$x]->pubDate_t < $rss_parserResults->Items[$y]->pubDate_t) {
// Swap them
$swapTemp = $rss_parserResults->Items[$x]; $rss_parserResults->Items[$x] = $rss_parserResults->Items[$y]; $rss_parserResults->Items[$y] = $swapTemp;
}
}
}
}


Thanks in advance for any help!

Bobby13,

You were very close. You need to change the comparison


if ($rss_parserResults->Items[$x]->pubDate_t > $rss_parserResults->Items[$y]->pubDate_t) {


That should do the trick.

Jim
Topic: Problem with Cache, not working
MacSupport

Replies: 10
Views: 15595

PostForum: RSS2HTML (RSS to HTML Converter)   Posted: Mon Apr 13, 2009 6:44 pm   Subject: Re: Problem with Cache, not working
I believe everything is set up correctly, but no files are being created in the cache folder. What are the possible problems?

I uploaded FeedForAll_Scripts_CachingExtension.php to the same directory as rss2html.php. I created a subfolder in the same directory called "FeedForAllCacheFiles" and gave it 777 permissions. I changed line "$allowCachingXMLFiles to "1"

No files are being created. I have tried varying time delays on the cache frequency. How do I figure out what is causing the problem?

My rss2html version is 3.12

Sounds like you are doing things right. If you edit rss2html.php and add the following line near the top it will display some debugging information. So after you add the line, view a page that uses rss2html.php and copy the debug information and then remove the line.


$debugLevel = 3;


Then if you could post the information here, or email it to me macsupport@feedforall.com , it might help

Jim
Topic: FTP Upload Failure
MacSupport

Replies: 33
Views: 57496

PostForum: Program Support (FFA Mac)   Posted: Sat Dec 13, 2008 2:37 pm   Subject: FTP Upload Failure
Yep exact same problem as well.

What does the "View Log" show? What if you try different FTP options like PASV, does it produce different results?

Jim
Topic: RSS to MYSQL recently started stripping out "<"
MacSupport

Replies: 10
Views: 23586

PostForum: RSS2SQL (RSS to MySQL Feed Importer)   Posted: Thu Dec 11, 2008 8:31 pm   Subject: RSS to MYSQL recently started stripping out "<"
It looks as if its being stripped out on input to mysql

all the code is stored as displayed in the database.

I ran a test here with MySQL 5.0 and it imported feed with HTML formating without a problem. Is it possible that the change was in the feed itself? Can you post or email me the link to the feed you are having problems importing.

Jim
Topic: RSS to MYSQL recently started stripping out "<"
MacSupport

Replies: 10
Views: 23586

PostForum: RSS2SQL (RSS to MySQL Feed Importer)   Posted: Mon Dec 08, 2008 7:32 pm   Subject: Re: We're seeing the same issue as well
Can't wait to get a resolution for this. See examples here:

After update: http://www.itrello.com/article.php?id=2930

Before update: http://www.itrello.com/article.php?id=2525

Notice before it translated all code properly, now the articles are all messed up because the < and > we're stripped out before pushing the feed into the db.

Help!

How is the data put into MySQL?

If you do a manual select are the angle brackets in there?

Jim
Topic: rss to html not working all of a sudden
MacSupport

Replies: 10
Views: 15454

PostForum: RSS2HTML (RSS to HTML Converter)   Posted: Mon May 26, 2008 3:32 pm   Subject: rss to html not working all of a sudden
What are you referring to?

Whatever I did to set it up 18 months ago worked fine until 2 weeks ago. Now, nothing is showing up.

What should I check/do?

Does it run? Can it fetch the feeds?

Jim
Topic: regarding running period of rss2sql
MacSupport

Replies: 4
Views: 15947

PostForum: RSS2SQL (RSS to MySQL Feed Importer)   Posted: Mon May 26, 2008 3:31 pm   Subject: Re: one more question
one more thing jim,

I am about to buy this script. I have one question though.

Does this script rely on any triggers (like page loading etc) to insert the feed into the mysql database or it does it automatically every minute (if set so)?


I just want it to run every minute (maybe even less) to check the feeds updated and insert them into the DB Automatically (even when i am sleeping lol)

let me know ASAP

I need this script ASAP!!

The MySQL data base is updated each time the script is run. I can not recommend running the script every minute. That is a lot of traffic and you are likely to get banned from accessing site for abuse.

Jim
Topic: Examples
MacSupport

Replies: 1
Views: 9958

PostForum: SQL2RSS (MySQL to RSS Feed Creator)   Posted: Mon May 26, 2008 3:29 pm   Subject: Re: Examples
Does any body have examples os usage and mysql format to get us newbies started, meaning an example of the conifg and sql table format - just trying to see if anybody has some examples to get me started

Using ?buildConfig will help build a basic config file, as mentioned in the docs. But to uses SQL2RSS and RSS2SQL a knowledge of SQL is required.

Jim
Topic: Conditional GET (HTTP 304) implementation.
MacSupport

Replies: 2
Views: 6516

PostForum: RSS2HTML (RSS to HTML Converter)   Posted: Mon May 26, 2008 3:25 pm   Subject: Re: Conditional GET (HTTP 304) implementation.
I believe this would serve to limit bandwidth use, especially when collecting data from a large number of sources, as I do.

I imagine this could be implemented at the parser level in a fashion not unlike this:

EXAMPLE RUN #1

1) Parser contacts server where source feed is located and requests "awesomefeed.xml"
2) Server says "HTTP 20x boo-ya"
3) Parser loads "awesomefeed.xml" and caches it locally as, say, "awesomefeed_20080522154101.xml" (YYYYMMDDhhmmss as an example, but it could be anything)
4) Parser parses feed and produces output for RSS2HTML, Mesh, Filter etc. to gnaw at
(5) Profit!)

EXAMPLE RUN #2

1) Parser contacts server where source feed is located and requests "awesomefeed.xml"
2) Server says "HTTP 20x boo-ya" (i.e. it was modified since last request)
3) Parser loads "awesomefeed.xml" and caches it locally as, say, "awesomefeed_20080522155101.xml".
4) Previously cached file(s) is/are deleted.
5) Parser parses feed and produces output
(6) More profit. Maybe start thinking about buying a yacht.)

EXAMPLE RUN #3

1) Parser contacts server where source feed is located and requests "awesomefeed.xml"
2) Server says "304 not modified"
3) Parser disconnects from remote server and loads local file "awesomefeed_20080522155101.xml"
4) Parser parses local feed file and produces output
(5) Profit margins declining from previous quarter, but you've successfully implemented conditional GET, and that's what matters.)

The parser would repeat run #3 (and thus read from the most recent cache file) for as long as it gets the 304 status code. Next time there's a 20x code, run #2 is executed, etc.

Because my site does not use caching in the FFA scripts but writes RSS2HTML output on the server (Ruby calls RSS2HTML using cron) and includes it in index.html, a variant without caching XML locally could be that upon encountering a 304, the script responsible will simply refuse to write output, leaving the previously written html file unchang ...
Topic: not working rssfilter
MacSupport

Replies: 1
Views: 10821

PostForum: RSSFilter (Creates a filtered RSS feed)   Posted: Mon May 26, 2008 5:58 am   Subject: Re: not working rssfilter
under to get rssfilter to work

this is the file I save as feed.php
<?PHP

// The URL of the feed.
$XMLfilename = "http://www.topix.net/rss/city/texarkana-tx";

$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

What errors to do get?

Jim
 

 Jump to:   


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