Textpattern CMS support forum

You are not logged in. Register | Login | Help

#11 2008-03-23 08:04:51

tameboy
Plugin Author
Registered: 2006-06-29
Posts: 48

Re: [plugin] [ORPHAN] boy_simplepie_feed

Hi Merz1

Can I ask what version of the plugin you are using? There looks to be all sorts of ugly unnecessary code being generated with your feeds including horrible image spacers and empty div tags. As far as I can see from the current plugin code this should not be happening.

If you haven’t updated to the latest version (1.2.2) please can you try that first. Let me know if the problem persists.

Offline

#12 2008-03-23 08:10:22

tameboy
Plugin Author
Registered: 2006-06-29
Posts: 48

Re: [plugin] [ORPHAN] boy_simplepie_feed

nardo wrote:

currently I insert a feed on one page… works fine… when I place the same code on another page, I get an ‘error getting feed’ on that page (the original still works fine)… maybe it’s the fact that a cache file already exists??

Will certainly look at the way caching works. I have a problem with ‘error getting feed’ on one of my sites too.

Offline

#13 2008-03-23 17:24:58

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: [plugin] [ORPHAN] boy_simplepie_feed

Tameboy. I am using the 1.2.1. Will check for update. Thanks for mentioning!

OK. Update of the plug-in is done.
All cache files deleted.
The Duffy page still looks the same.

Do you recommend an update of the SimplePie core file too?

170895 Apr 26  2007 simplepie.bak
286097 Dec  3 16:22 simplepie.inc
8192 Mar 21 18:16 simplepie_cache
166 Apr 29  2007 simplepie_image_handler.php

I am not really sure which files can/must be updated. There have been problems with different SimplePie versions before so I think it is better to ask first :)


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#14 2008-03-23 17:43:00

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: [plugin] [ORPHAN] boy_simplepie_feed

Well, I have just updated to SimplePie 1.1.1 by uploading the newest simplepie.inc file from March 15th 2008.

  • txp:feed works as expected.
  • Google news ‘Duffy’ feed is still ugly.
  • My two Hamburg weather feeds look the same as before.

There looks to be all sorts of ugly unnecessary code being generated with your feeds including horrible image spacers and empty div tags. As far as I can see from the current plugin code this should not be happening.

I think the ugly code is coming directly from the Google News feed.

Edit: FYI – The SimplePie demo page also shows the ugly whitespace behavior.

Last edited by merz1 (2008-03-23 18:00:16)


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#15 2008-03-26 23:08:13

tameboy
Plugin Author
Registered: 2006-06-29
Posts: 48

Re: [plugin] [ORPHAN] boy_simplepie_feed

hi merz1

I just upgraded one of my sites to 1.1.1 and it does seem to work fine with the boy_simplepie_feed plugin. I wanted to test it myself before posting but you beat me to it!

I played around with CSS on your page and found that this gets rid of at least some of the white space:

div.simplepie div {display:none}
div.simplepie ul li table tbody tr td div + div {display:inline}

There is almost certainly a better of way of doing this, but this seems to work so you might want to try adding those styles to your page.

Offline

#16 2008-03-27 19:23:49

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: [plugin] [ORPHAN] boy_simplepie_feed

tameboy: Thanks for the CSS!

Added it and will watch for ugly behavior

/*  Optimization for Google News */
.simplepie div {display:none}
.simplepie ul li table tbody tr td div + div {display:inline}

I have no idea what the .div in div.simplepie is good for (?) so I deleted it (but it also showed no difference in Firefox).


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#17 2008-03-28 13:56:22

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: [plugin] [ORPHAN] boy_simplepie_feed

I am having issues with the following feed.

Wrapped for better reading.

<txp:feed items="5" alttitle="Video Suche: +Auto Glatteis OR +car ice sliding">
http://video.google.de/videofeed?type=search
&q=%2BAuto+Glatteis+OR+%2Bcar+ice+sliding
&so=0&num=20&output=rss</txp:feed>

Link to feed

  • Firefox shows fine
  • SimplePie Demo has some issues
  • Textpattern shows error: cURL error 6: Couldn’t resolve host ‘auto glatteis or +car ice sliding“>http:’

Error after deleting the alttitle part only and adding a space at the beginning of the line: XML error: no element found at line 1, column 0

The following stripped down code works (wrapped):

<txp:feed items="5">http://video.google.de/videofeed?
q=%2BAuto+Glatteis+OR+%2Bcar+ice+sliding</txp:feed>

Link

Last edited by merz1 (2008-03-28 15:47:39)


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#18 2009-07-23 18:55:14

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: [plugin] [ORPHAN] boy_simplepie_feed

hello, i get this error once i activate the plugin. i have placed the simpliepie.inc in the lib folder and i set the permission to 777

A problem occured while loading the plugin: SimplePie Plugin -> Warning: require(/public_html/textpattern/lib/simplepie.inc) [function.require]: failed to open stream: No such file or directory on line 2

Fatal error: require() [function.require]: Failed opening required ‘/public_html/textpattern/lib/simplepie.inc’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /public_html/textpattern/lib/txplib_misc.php(570) : eval()’d code on line 2

Last edited by mrtunes (2009-07-23 19:09:16)

Offline

#19 2010-01-03 11:06:30

Jaro
Member
From: S/F
Registered: 2004-11-18
Posts: 89

Re: [plugin] [ORPHAN] boy_simplepie_feed

I’d like to enhance the functionality of this plugin. I’m using it for displaying twitter feed on my website and I would like to make all links in twitter messages automatically clickable. They are mostly http://bit.ly kind of links.

I figured out I need to place this piece of code somwhere in the plugin. But since I know almost nothing about php I’m seeking for help here. Does anybody know how to make this work?

$input = ???

$output = preg_replace("/(http:\/\/|(www\.))(([^\s<]{4,68})[^\s<]*)/", '<a href="http://$2$3"">$2$4</a>', $input);

Offline

#20 2010-03-27 19:12:33

fiddle
Member
Registered: 2007-10-03
Posts: 87

Re: [plugin] [ORPHAN] boy_simplepie_feed

Hello, Im having problems with the plugin. Its been working fine for some time, now all of the sudden it stopped displaying the feed. I can get the feed if I enter the address through a reader, or the browser, so the feed is fine, but simple pie is showing me the error, cant get fed from address… Any ideas.? This is for a twitter rss feed if that matters…
Thanks

Offline

Board footer

Powered by FluxBB