Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#109 2010-09-10 16:08:13
Re: aks_rss : RSS parser and aggregator
ok, try this code
<txp:aks_rss feed="http://www.workpermit.com/files/immigration_workpermit_news_rss_feed.xml" wraptag="ul" break="li"><txp:title /></txp:aks_rss>
If there will be an error, then copy an error message.
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
#110 2010-09-10 16:12:29
Re: aks_rss : RSS parser and aggregator
no errors.
just empty
<txp:txp_me />
Offline
#111 2010-09-10 18:11:25
Re: aks_rss : RSS parser and aggregator
Well, Katalonioan, you must make sure that all system requirements for SimplePie are OK.
Do you have shell access to your server?
Can you get the feed OK via curl or wget?
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
#112 2010-09-10 18:23:25
Re: aks_rss : RSS parser and aggregator
A question was decided with Katalonian. It is necessary it was to set permission 777 on the folder textpattern/tmp.
See installation notes:
1. Install this plugin. 2. Copy simplepie.inc to textpattern/lib/ directory. * If your need IDN support, just copy files from idn directory to textpattern/lib/ (IDN – Internationalized Domain Names) 3. Make sure that the TxP tmp directory is writeable. This is where Simplepie will put its cache files by default.
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
#113 2010-10-12 11:52:36
- naoj77
- Member
- From: Barcelona, Catalunya
- Registered: 2007-01-19
- Posts: 15
Re: aks_rss : RSS parser and aggregator
I would like to parse a podcast rss, and I’ve problems with parse mp3 file?
the rss is: http://www.radiosarria.cat/podcasts/40/podcast.xml
thanks
Offline
#114 2010-10-12 13:20:19
Re: aks_rss : RSS parser and aggregator
Attention – Off-Topic alarm: From here on until #129 we have realized a nice podcast aggregator for single enclosures with the original SimplePie PHP software library. As these 16 steps are slightly off topic you might consider to directly jump forward to #129.
@naoj77 Firefox shows the links to the media file and the SimplePie demo page even embeds a player.
My SimplePie plug-in (the original, not aks_rss) only shows title and description. The same in the HTML code.
Is that your problem?
(Note: I have no solution)
makss Help?
Last edited by merz1 (2010-10-13 17:30:38)
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
#115 2010-10-12 13:23:34
- naoj77
- Member
- From: Barcelona, Catalunya
- Registered: 2007-01-19
- Posts: 15
Re: aks_rss : RSS parser and aggregator
@merz1 thanks, yes that is the problem i would to solve.
makss Help, too?
Last edited by naoj77 (2010-10-12 13:35:07)
Offline
#116 2010-10-12 14:25:26
Re: aks_rss : RSS parser and aggregator
naoj77 Workaround: Use the original SimplePie software (comes with examples) and embed via txp:php
inside of article or page (PHP must be allowed from admin backend).
Or maybe some PHP safe soul can help?
See here: … you can use raw PHP in WordPress to call the SimplePie functions …
Documentation: Custom search for Media player in Simple Pie
All those SimplePie plug-ins don’t support all the whistles & bells from the full blown up original SimplePie PHP feed parsing library solution.
Last edited by merz1 (2010-10-13 17:48:56)
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
#117 2010-10-12 14:30:27
- naoj77
- Member
- From: Barcelona, Catalunya
- Registered: 2007-01-19
- Posts: 15
Re: aks_rss : RSS parser and aggregator
thanks @merz1, I’ll try this solution…
Offline
#118 2010-10-12 14:47:33
Re: aks_rss : RSS parser and aggregator
Good. Take care to double check the example code against the documentation because the forum article is pretty old.
And please post/share the working TXP code here and in its own TXP How-To thread! Don’t forget to link back to your original question #113 :)
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
#119 2010-10-12 14:52:44
- naoj77
- Member
- From: Barcelona, Catalunya
- Registered: 2007-01-19
- Posts: 15
Re: aks_rss : RSS parser and aggregator
@merz don’t work for me, the page send to me:
Fatal error: require_once() [function.require]: Failed opening required 'http://www.cedre.cat/txp/textpattern/lib/simplepie.inc' (include_path='.:/home/cedrecat/php/pear/php:/opt/php5/lib/php:/home/cedrecat/php') in /home/cedrecat/public_html/txp/textpattern/publish/taghandlers.php(3127) : eval()'d code on line 2
I put this code:
<txp:php>
require_once('http://www.cedre.cat/txp/textpattern/lib/simplepie.inc');
$feed = new SimplePie('http://www.radiosarria.cat/podcasts/40/podcast.xml', $_SERVER['DOCUMENT_ROOT'].'/txp/textpattern/tmp');
// Since we're initializing SimplePie at the top of the page, we can use this to set the headers.
// Otherwise, we'd use header(). http://php.net/header
$feed->handle_content_type();
// Loop through all of the items in the feed.
foreach($feed->get_items() as $item) {
// As long as the item has an enclosure (ONLY display items with enclosures)...
if ($enclosure = $item->get_enclosure()) {
// Display the title
echo '<h4>'.$item->get_title().'</h4>';
// Embed the enclosure. If we're just doing MP3, this should be adequate.
// Alternatively, we could use the JavaScript-based embed() method.
echo $enclosure->native_embed(array(
// Provide the path to the mediaplayer.swf
'mediaplayer' => '/path/to/the/mediaplayer.swf',
// If the user doesn't have Flash installed, default to this text instead.
'alt' => 'Click to listen to the podcast.'
));
}
}
</txp:php>
and don’t work
any idea?? thank
Offline
#120 2010-10-13 06:57:46
Re: aks_rss : RSS parser and aggregator
a) Use absolute local path to simplepie.inc
b) The most important path to get the media player: 'mediaplayer' => '/path/to/the/mediaplayer.swf',
must be configured :)
c) I am not sure about the last closing } bracket. I don’t see an opening one. Edit: Wrong. I spotted it :)
Last edited by merz1 (2010-10-13 13:29:21)
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline