Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#31 2005-04-22 19:01:53
- yuzz
- New Member
- Registered: 2004-11-21
- Posts: 2
Re: [archived] tcm_rss - RSS feeds with any formatting
OK, you were right, the new feed URL worked fine. My only advise would be to output a more controlled and comprehesive error when a feed cannot be fetched (as this is indeed a likely occurrence anyway — you can’t control the feed itself).
That said, I am very happy with the current plugin and would like to thank you again :-)
Cheers!
Offline
#32 2005-04-22 23:07:40
- montom
- New Member
- Registered: 2004-06-22
- Posts: 3
Re: [archived] tcm_rss - RSS feeds with any formatting
For anyone using tcm_rss to show del.iciou.us bookmarks on their site and find that some bookmark URLs mess up XHTML 1.0 compliance, just insert this code into the plugin:
[code]
$href = $item[‘link’];
$href = str_replace(“&”, “&###;”, $href);
$out[‘permlink’] = $href;
[/code]
(replace ### with amp)
…insert into the plugin after this line:
[code]
$GLOBALS[‘thisarticle’] = $out;
[/code]
Offline
Re: [archived] tcm_rss - RSS feeds with any formatting
That’s probably a useful tip for lots of different feeds. Thanks for posting!
“If you build it, they will come.”
Offline
Re: [archived] tcm_rss - RSS feeds with any formatting
This slightly-modified version has better error reporting.
Offline
Re: [archived] tcm_rss - RSS feeds with any formatting
tcm_rss isn’t working for me under RC3 rev. 480ish. I’m afraid I’m the only one who misses it. I get this error message:
Fatal error: tcm_rss(): Failed opening required ‘/textpattern/lib/rss_fetch.inc’ (include_path=’.:/usr/local/lib/php’) in /textpattern/lib/txplib_misc.php(379) : eval()’d code on line 4
My production status is set to “live.” This seems related to the more aggressive error reporting of rev. 463+, but I thought even that was supposed to be suppressed when my status is set to “live.”
Anyone have any ideas? Other ways to display another site’s RSS feed on my page?
Edited for formatting.
Last edited by RHD (2005-07-12 06:47:25)
Offline
Re: [archived] tcm_rss - RSS feeds with any formatting
Not surprisingly, my problem was my own doing. In upgrading my TXP installation, I trashed my old /textpattern directory, which, of course, trashed the .inc files tcm_rss requires to be in the /textpattern/lib directory.
So I put ‘em back, and it works like it used to (very well).
Thought I’d follow-up here in case anyone else makes the same dumb mistake.
Offline
Re: [archived] tcm_rss - RSS feeds with any formatting
Does anyone have a mirror of this plugin?
Offline
Offline
Re: [archived] tcm_rss - RSS feeds with any formatting
RSS Digest appears to work a lot better and you can use any formatting that you would like. I’ll stick with that one.
Offline
#40 2005-08-14 14:02:40
- loid
- Member
- Registered: 2005-03-09
- Posts: 38
Re: [archived] tcm_rss - RSS feeds with any formatting
Actually, RHD, it’s not. But it would be terrific if you could put it up there.
Gratefully, Loid
Offline
Offline
Re: [archived] tcm_rss - RSS feeds with any formatting
Anyone figure out how to limit the feed to say 5 articles?
del.icio.us tosses 31 links down my sidebar.
Offline
Re: [archived] tcm_rss - RSS feeds with any formatting
You should be able to use “limit” as an attribute. Like this:
<code><txp:tcm_rss feed=“http://foo.bar/rss” limit=“5” /></code>
Offline
Re: [archived] tcm_rss - RSS feeds with any formatting
> RHD wrote:
> You should be able to use “limit” as an attribute. Like this:
> <code><txp:tcm_rss feed=“http://foo.bar/rss” limit=“5” /></code>
That doesn’t work unfortunately.
Offline
Re: [archived] tcm_rss - RSS feeds with any formatting
Hrm. Odd. It works on mine. Which of course doesn’t mean it has to work for you, but it does mean I don’t know what else to try.
Offline