Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2005-03-20 20:04:00

Jennifer
Member
From: Michigan
Registered: 2004-02-25
Posts: 74
Website

Re: [archived] tcm_rss - RSS feeds with any formatting

Ok – not getting anything. The page has nothing but this code on it:
[code]< txp:tcm_rss feed=“http://confettifalling.com/?rss=1” form=“rss” / >[/code] – output has only the runtime, no other tags.

Plugin is enabled, and the files in the lib folder were uploaded to textpattern/lib.

Any ideas?

Last edited by Jennifer (2005-03-20 20:32:24)

Offline

#26 2005-03-20 20:31:28

tmacwrig
Archived Plugin Author
Registered: 2004-03-06
Posts: 204
Website

Re: [archived] tcm_rss - RSS feeds with any formatting

my first guess is that the form for the rss feed to use isn’t specified / created? I can’t see the code you posted though, so I’m kinda shooting in the dark.

Offline

#27 2005-03-20 20:32:52

Jennifer
Member
From: Michigan
Registered: 2004-02-25
Posts: 74
Website

Re: [archived] tcm_rss - RSS feeds with any formatting

Ok, I got the code here to show up – and I did create the rss form, using the provided example.

Last edited by Jennifer (2005-03-20 20:33:05)

Offline

#28 2005-04-15 16:54:24

asarbogast
Member
From: Arcata, CA
Registered: 2004-05-21
Posts: 33
Website

Re: [archived] tcm_rss - RSS feeds with any formatting

the limit function is not working for me— has there been a fix for this?

Offline

#29 2005-04-21 20:06:29

yuzz
New Member
Registered: 2004-11-21
Posts: 2

Re: [archived] tcm_rss - RSS feeds with any formatting

After enabling the plugin, I get the following errors at the beginning of the page:

============
Warning: MagpieRSS: Failed to fetch http://workingidea.com/?atom=1. (HTTP Response: HTTP/1.1 302 Found ) in /$PATH/projectoria/projectoria.org/textpattern/lib/rss_fetch.inc on line 230

Warning: Invalid argument supplied for foreach() in /$PATH/projectoria/projectoria.org/textpattern/publish.php(767) : eval()’d code on line 301

Warning: Bad arguments to join() in /$PATH/projectoria/projectoria.org/textpattern/publish.php(767) : eval()’d code on line 323
============

And this one right after the link to the section which has to output the feed links (i.e. the link on the page to the page itself):

============
Warning: Cannot add header information – headers already sent in
============

The feed is called via:
[code]
…txp:tcm_rss form=“rss” feed=“http://workingidea.com/?atom=1” limit=“4” /…
[/code]

Number of articles is not limited to 4

UPDATE: While writing this, I have noticed that the problem seemingly exists only for atom feeds and does not appear with RSS feeds. But still can’t work out the limits problem. When I open the plugin code for editing, under the Save button I see this:

Uh, the only current options are feed=“feedurl” and form=“anyform”
:(

UPDATE 2: It worked now and it’s really great, thanks! :-) I had missed the new version of the plugin provided a few posts above, cause I had it downloaded in a zip archive from tmacwrig’s page.

Last edited by yuzz (2005-04-21 21:38:41)

Offline

#30 2005-04-21 21:41:54

tmacwrig
Archived Plugin Author
Registered: 2004-03-06
Posts: 204
Website

Re: [archived] tcm_rss - RSS feeds with any formatting

could you try a different feed? the feed url http://www.workingidea.com/?atom=1 seems to be invalid, maybe you should try something like http://workingidea.com/parallel/?atom=1&section=writing

Offline

#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

#33 2005-04-22 23:48:07

bluearc21
Member
From: US.VA
Registered: 2004-02-24
Posts: 62
Website

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

#34 2005-04-23 23:18:57

tmacwrig
Archived Plugin Author
Registered: 2004-03-06
Posts: 204
Website

Re: [archived] tcm_rss - RSS feeds with any formatting

This slightly-modified version has better error reporting.

Offline

#35 2005-07-12 06:41:45

RHD
Member
From: mid-Atlantic US
Registered: 2004-11-09
Posts: 29
Website

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

#36 2005-07-13 05:40:10

RHD
Member
From: mid-Atlantic US
Registered: 2004-11-09
Posts: 29
Website

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

Board footer

Powered by FluxBB