Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: RSS Parser/Aggregator for Textpattern
schussat wrote:
/* How to make a nice trim of text without breaking words in the middle :*/==
Thanks so much! That worked like a charm.
(Yeah, I know I misspelled “length”… I never quite got around to fixing that. Odd how, rather than fix it, I just kept spelling it incorrectly.) I hope this does the trick for you.
I kept your spelling as is, seemed like a shame to fix it…
Thanks again!
Andrea
Last edited by asarbogast (2004-06-04 21:39:02)
Offline
Re: RSS Parser/Aggregator for Textpattern
How long does it cache the RSS between checks? This might be just what I need for something!
Dammit Jim, I’m a poet, not a programmer…
Joined the TXP Obsessed 2/25/04: http://www.chrislott.org/
Offline
Re: RSS Parser/Aggregator for Textpattern
“I do have the same problem.
Is there anything to consider concerning the lastRSS-path?”
In an ftp client, check and see what the full path to your hosted directory is. For instance, it may be “/usr/home/youraccount/public_html/” in which case you can append “code/” or “lastrss/” or whatever directory is holding the lastRSS.php file to the path and it should work. I had the same problem until I put in the full path.
In other words, just specifying the relative path (“/code” or “/lastrss”) won’t work the way “/images” does in an HTML page.
Offline
Re: RSS Parser/Aggregator for Textpattern
I’ve also got a question about the “cache” attribute. The example in the readme file shows cache=“120”
Am I correct that this means it will only check for a fresh RSS copy once every 120 minutes (or whatever number you use for that attribute)?
TextPattern user since 04/04/04
Offline
Re: RSS Parser/Aggregator for Textpattern
Actually, according to the info on LastRSS, that cache time is in seconds. So cache=“120” is actually just two minutes. I’m not sure if the plugin intended to convert minutes to seconds at all, but looking at the code, it doesn’t look like it currently does. My rudimentary testing seems to bear this out.
http://lastrss.webdot.cz/
Offline
Re: RSS Parser/Aggregator for Textpattern
Thanks, Carol. A two minute cache is, well, hardly a cache.
I want to thank fellow Atlantan Clay for this plug-in that I somehow missed for months. I’ve put together a feed page to take advantage of it. It’s a bit slow to load at times, but it’s a nice capability to have.
And maybe we need to create ATUG: Atlanta Textpattern Users Group. Until you leave, Carol, I think there might be three of us.
TextPattern user since 04/04/04
Offline
Re: RSS Parser/Aggregator for Textpattern
I modified this excellent script a bit to pull in the <description> field o f a given xml feed. my problem is that the node value looks like this:
<pre><![CDATA[PARTLY CLOUDY<br>max 95°, min 73°<br><img src=http://www.worldweather.org/img_cartoon/pic22.gif><br>]]></pre>
my final output looks like this:
<pre>max 86, min 75]]></pre>
that CDATA part is not being parsed correctly, any pointers on getting it to work?
here’s my php:
<pre>$string .= “<p>$item[description]</p>”;</pre>
Last edited by jmrhoades (2004-08-16 01:58:54)
Offline
Re: RSS Parser/Aggregator for Textpattern
I installed the script and lastRSS.php with the full path, but it does not work. Nothing at all.
Maybe it uses the cache, as it produces a kind of rss…-file in this directory.
Any other suggestion?
Offline
#21 2006-06-02 06:43:00
- jesper
- Member
- From: Melbourne, Oz
- Registered: 2004-03-05
- Posts: 18
Re: RSS Parser/Aggregator for Textpattern
Does anyone still have a copy of this plugin? It seems to have disappeared from http://clayjohnson.typepad.com//bsd_fetch_headlines.tar.gz…. I would love a copy of it.
Offline