Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: aks_rss : RSS parser and aggregator
laptophobo is referring to this thread where you can see the history of his issue.
I am still using the ‘standard’ SimplePie plug-in so I can’t help.
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
Re: aks_rss : RSS parser and aggregator
Hi Jan,
Now that I’ve loaded the simplepie.inc file (I had removed it for some reason), I no longer get the error message but this message “No feed items.” (on the top of the page, this message appears: “file_get_contents could not read the file”)
Following the example of another posting, I’m using this plug:
<txp:aks_rss>“http://abc.com/rss.xml”</txp:aks_rss>
I also tried: <txp:feed>“http://abc.com/rss.xml”</txp:feed>
(with and without quotes around the URL too)
Could it be a bad URL? That part confuses me a bit. When I go to a site with the RSS button, I click it and then get other buttons with subscribe info. The url on the page might be: http://www.feedzilla.com/rss/health/hiv-aids but it won’t play either.
I suppose I’m doing something fundamentally wrong?
Thanks again…
Last edited by laptophobo (2010-03-09 04:02:06)
Living the Location-Independent Life: www.NuNomad.com
Offline
Re: aks_rss : RSS parser and aggregator
- http://abc.com/rss.xml gives a 404 aka “sorry, we couldn’t find that page”
- http://www.feedzilla.com/rss/health/hiv-aids is a working feed. Tested in Firefox and with SimplePie Demo.
<txp:feed>http://www.feedzilla.com/rss/health/hiv-aids</txp:feed>
should work. You don’t have to use qoutes and esp. not curly quotes :)
That’s the way I use it eg on sankt-georg.info – don’t panic with the SimplePie plug-in.
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
Re: aks_rss : RSS parser and aggregator
It works! I’m wondering what I did different. Anyway, thanks for your time on this matter. I do see the problem though with using just the <txp:feed> option. From what you’ve written, it appears that you recommend the Simple Pie plug-in over the aks_rss plug-in (or do they work together somehow?) I’ll retrace this thread to see if I can learn how to configure either of these plug-ins.
Living the Location-Independent Life: www.NuNomad.com
Offline
Re: aks_rss : RSS parser and aggregator
Well, SimplePie not working for me yet.
Here are the steps I’ve taken so far:
Went to installation page at: http://simplepie.org/wiki/plugins/textpattern/simplepie_plugin_for_textpattern.
Downloaded the “package”: http://simplepie.org/downloads/ and the “plug-in”: simplepie_textpattern_1.2.2.zip.
Copied the simplepie.inc file to my Textpattern lib folder.
Created a new folder in the lib folder called: simplepie_cache (full permissions granted since I’m working from local host.) This folder is empty.
Uploaded and activated the SimplePie plug-in.
My article tag is: <txp:feed>http://www.feedzilla.com/rss/health</txp:feed> (which works when SimplePie plug-in is turned off).
The result is that the feed data shows, but on the top of the page I get a series of error messages: “A problem occured while loading the plugin: SimplePie Plugin -> : Assigning the return value of new by reference is deprecated on line 1656”
Any ideas out there? Thanks much!
Last edited by laptophobo (2010-03-10 02:08:26)
Living the Location-Independent Life: www.NuNomad.com
Offline
Re: aks_rss : RSS parser and aggregator
Hey laptophobo – You said it worked first, what happened in the meanwhile?
I’ve only used the aks_rss plugin, so I’ve never used the simplepie plugin Markus mentions. So if you want to continue with the simplepie plugin, you’ll have to take his advice.
If you decide to use aks_rss: this plugin is dependent on the simplepie script. Aks_rss comes bundled with a slightly older version of simplepie, but a newer version shouldn’t really pose a problem. So you can probably leave the version you have in place.
As a test, do you get this to work?
<txp:aks_rss limit="1" feed="http://www.rssweather.com/wx/us/ri/providence/rss.php"><txp:body /></txp:aks_rss>
PS netbookhobo would make more sense to me
TXPDream – A Textpattern Tag Library for Adobe Dreamweaver. (updated for 4.2.0) | jdw_if_ajax – Only serve certain parts of a page when requested with AJAX
Offline
Re: aks_rss : RSS parser and aggregator
Sorry Jan, I should have clarified myself better. Yes, my tag worked but I had to turn off the SimplePie plug-in or I’d get the error message. And, your article tag example works as well. But (there’s always a “but”, huh) if I change your limit value to “5” the list comes out without line breaks.
Living the Location-Independent Life: www.NuNomad.com
Offline
Re: aks_rss : RSS parser and aggregator
No worries – If you’re going use aks_rss there is no need to use the simplepie plugin , so you can disable/uninstall it. However the simplepie script needs to remain in place. In order to get line-breaks you’ll need to insert them into the contained code.
Like this:
<txp:aks_rss limit="1" feed="http://www.rssweather.com/wx/us/ri/providence/rss.php"><txp:body /><br /></txp:aks_rss>
However, instead of line-breaks, an unordered list would be better more appropriate. Since aks_rss doesn’t support the wraptag
and break
attributes, you’ll have to do something like this:
<ul>
<txp:aks_rss feed="http://www.feedzilla.com/rss/health" limit="5">
<li><txp:body /></li>
</txp:aks_rss>
</ul>
You’ll probably want to style te results further with CSS
I’m out of here for the day – good luck with it.
TXPDream – A Textpattern Tag Library for Adobe Dreamweaver. (updated for 4.2.0) | jdw_if_ajax – Only serve certain parts of a page when requested with AJAX
Offline
Re: aks_rss : RSS parser and aggregator
Thanks for that option. I was able to modify the list using a form tag. Thanks again for everything. I think I’m good now.
Living the Location-Independent Life: www.NuNomad.com
Offline
Re: aks_rss : RSS parser and aggregator
aks_rss v0.1.6
Changes:- Add/fix attributes
wraptag
,break
- Add attributes
showtitle
,alttitle
,h
- Add predefined form – attribute
simpleform
simpleform
(optional) – Predefined form. Now support only two predefined form: title
, body
Some examples:
==<txp:aks_rss simpleform="title" showtitle="1" limit="2" feed="http://forum.textpattern.com/extern.php?type=RSS&action=active&fid=79" />==
or
==<txp:aks_rss wraptag="ul" break="li" showtitle="1" limit="2" feed="http://forum.textpattern.com/extern.php?type=RSS&action=active&fid=79"> <txp:permlink><txp:title /></txp:permlink></txp:aks_rss>==
Generate code:
<h3><a href="http://forum.textpattern.com/" target='_blank'>Textpattern CMS Support Forum</a></h3><ul> <li><a href="http://forum.textpattern.com/viewtopic.php?id=30263&action=new" target="_blank">aks_rss : RSS parser and aggregator</a></li> <li><a href="http://forum.textpattern.com/viewtopic.php?id=32447&action=new" target="_blank">arc_twitter</a></li> </ul>
Last edited by makss (2016-01-16 18:24:30)
aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_dragdrop : Drag&Drop categories (article, link, image, file)
Offline
Re: aks_rss : RSS parser and aggregator
@makss Thanks esp. for “Add attributes showtitle, alttitle, h”. I didn’t test it yet but your plug-in should be a valuable replacement for the SimplePie plug-in now esp. because of the multi feed feature.
What about the needed .inc file version?
Is aks_rss working with the latest version?
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
Re: aks_rss : RSS parser and aggregator
laptophobo wrote:
I think I’m good now.
Glad it’s working. 8 hours later you can use wraptag="ul"
and break="li"
. Nice one, makks.
Last edited by JanDW (2010-03-10 17:28:51)
TXPDream – A Textpattern Tag Library for Adobe Dreamweaver. (updated for 4.2.0) | jdw_if_ajax – Only serve certain parts of a page when requested with AJAX
Offline