Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: aks_rss : RSS parser and aggregator
I am trying to use this plugin with Google Calendar to display upcoming events at a wonderful bar/restaurant. But I can only get it to display items with their dates in the past. Is there a way to display future dates instead?
Last edited by molly (2009-05-18 20:00:17)
Offline
Re: aks_rss : RSS parser and aggregator
molly, please read Google Calendar API and add parameter futureevents=true to your calendar feed url.
Last edited by makss (2009-05-19 20:48: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
Thank you makss, for pointing me to this info. Thank you so much for your help.
But it’s weird, I add the parameter, and I get the same result— past events, not future entries.
This is the URL for the feed with the past entries:
http://www.google.com/calendar/feeds/grajk54aq6b70h2s548tl529r8%40group.calendar.google.com/public/basic
I changed it to this:
http://www.google.com/calendar/feeds/grajk54aq6b70h2s548tl529r8%40group.calendar.google.com/public/basic?futureevents=true
But I’m still getting the past entries.
What am I doing wrong?
Here’s my txp code:
<h3>Calendar of Events</h3>
<txp:aks_rss feed="http://www.google.com/calendar/feeds/grajk54aq6b70h2s548tl529r8%40group.calendar.google.com/public/basic?futureevents=true" wraptag="ul" limit="6">
<li <txp:aks_rssclass />><txp:permlink><txp:title /></txp:permlink> - <txp:posted format="%a, %b %e" /></li>
</txp:aks_rss>
Offline
Re: aks_rss : RSS parser and aggregator
I’m trying to implement this plugin and can’t seem to get it to work, I get this error message:
Fatal error: require_once() [function.require]: Failed opening required ‘/home/4681/domains/###.com/textpattern/lib/simplepie.inc’ (include_path=’.:/usr/local/php-5.2.6-1/share/pear’) in /nfs/c01/h12/mnt/4681/domains/###.com/html/textpattern/lib/txplib_misc.php(570) : eval()’d code on line 63
I have put simplepie.inc in my txp/lib folder and I am using this code on my page:
<txp:feed>http://rss.news.yahoo.com/rss/topstories</txp:feed>
I also tried:
<txp:aks_rss feed="http://gdata.youtube.com/feeds/base/videos?q=cats&start-index=1&max-results=25" wraptag="ul">
<li <txp:aks_rssclass />><txp:permlink><txp:title /></txp:permlink><br /><txp:body /><hr/>
<sub>(<txp:posted format="rfc822" />) <b><txp:aks_rsstitle /></b></sub><br /><br /></li>
</txp:aks_rss>
They’ve been copied from the aks_rss site as a test and neither work and both show the same error message
Any thoughts?
Last edited by rathersplendid (2009-07-08 18:23:23)
Admin Themes Prometheus | Stung | <txp:coder/
My Portfolio | ɹǝpuɐz.com | @MrMartineau
<txp:coder /> – Convert your designs into Textpattern-based websites
jQuery Style | @jquerystyle
Offline
Re: aks_rss : RSS parser and aggregator
rathersplendid wrote:
I’m trying to implement this plugin and can’t seem to get it to work, I get this error message:
Fatal error: require_once() [function.require]: Failed opening required ‘/home/4681/domains/jquerystyle.com/textpattern/lib/simplepie.inc’ (include_path=’.:/usr/local/php-5.2.6-1/share/pear’) in /nfs/c01/h12/mnt/4681/domains/jquerystyle.com/html/textpattern/lib/txplib_misc.php(570) : eval()’d code on line 63
Please, check simplepie.inc here:
/home/4681/domains/jquerystyle.com/textpattern/lib/simplepie.inc
and possible put simplepie.inc here:
/nfs/c01/h12/mnt/4681/domains/jquerystyle.com/html/textpattern/lib/simplepie.inc
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 The problem is that simplepie.inc is in that folder, for some reason, textpattern think that it isn’t.
I tried hardcoding the url of the simplepie.inc in the edit plugin page to no avail.
Any more suggestions? Why would it think that they’re different?
Thank you by the way for your help
Admin Themes Prometheus | Stung | <txp:coder/
My Portfolio | ɹǝpuɐz.com | @MrMartineau
<txp:coder /> – Convert your designs into Textpattern-based websites
jQuery Style | @jquerystyle
Offline
Re: aks_rss : RSS parser and aggregator
rathersplendid wrote:
@makss The problem is that simplepie.inc is in that folder, for some reason, textpattern think that it isn’t.
I tried hardcoding the url of the simplepie.inc in the edit plugin page to no avail.
Any more suggestions? Why would it think that they’re different?
Thank you by the way for your help
May be check $txpcfg[‘txpath’] variable
<txp:php>echo $txpcfg['txpath'];</txp:php>
or set simplepie option
<txp:aks_rss simplepie='/your_absolute_path/simplepie.inc' ... >
--- from help --- simplepie (optional) Absolute path to the SimplePie class file (simplepie.inc). Default: $txpcfg['txpath'].'/lib/simplepie.inc' Example: simplepie='/var/www/httpdocs/textpattern/lib/simplepie.inc'
Last edited by makss (2009-07-08 20:07:58)
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
Thank you so much! This worked. But will I need to change the simplepie option for each feed?
Also, how can I get the feed’s output to be the same as that of the actual SimplePie plugin? I like the simplicity of it’s layout, because the tables that this plugin uses are not helpful to me. Any ideas?
Here’s what SimplePie does:
<div class="simplepie">
<h3><a href="http://example.com">Example Site</a></h3>
<ol>
<li><strong><a href="...">Item Title 1</a> <span class="date">29 May 2006</span></strong><br />
The description for the item.</li>
<li><strong><a href="...">Item Title 2</a> <span class="date">28 May 2006</span></strong><br />
The description for the item.</li>
<li><strong><a href="...">Item Title 3</a> <span class="date">27 May 2006</span></strong><br />
The description for the item.</li>
</ol>
</div>
Thank you so much for your help thus far
Admin Themes Prometheus | Stung | <txp:coder/
My Portfolio | ɹǝpuɐz.com | @MrMartineau
<txp:coder /> – Convert your designs into Textpattern-based websites
jQuery Style | @jquerystyle
Offline
Re: aks_rss : RSS parser and aggregator
rathersplendid wrote:
Thank you so much! This worked. But will I need to change the simplepie option for each feed?
1. Please, upgrade plugin to aks_rss v0.1.4
2. In Extension tab, set “Absolute path to simplepie.inc” and “Absolute path to cache_dir”. It’s for all feeds. :)
Also, how can I get the feed’s output to be the same as that of the actual SimplePie plugin? I like the simplicity of it’s layout, because the tables that this plugin uses are not helpful to me. Any ideas?
Try <txp:feed>
tag with aks_rss (without unsupported attributes: shortdesc, showtitle, alttitle, h)
Sample, one feed:
<txp:feed items="15">http://www.textpattern.org/?rss=1</txp:feed>
aks_rss allow multiply feeds, sample:
<txp:feed items="15">http://www.textpattern.org/?rss=1,http://www.textpattern.net/?rss=1</txp:feed>
Last edited by makss (2016-01-16 18:21:14)
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
Small bugfix in aks_rss version 0.1.4, please upgrade it.
aks_rss v0.1.4a
Last edited by makss (2016-01-16 18:21:41)
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 wrote:
May be check $txpcfg[‘txpath’] variable
To note $txpcfg['txpath']
isn’t really used anymore, haven’t been in years. Automatic path generating and db data should be preferred over txpcfg
, which is only used to gain access to db and to support older plugins. Instead, you can use the defined txpath
.
And btw, nice plugin. Lovely :)
Last edited by Gocom (2009-08-08 19:29:45)
Offline
Re: aks_rss : RSS parser and aggregator
Gocom wrote:
To note
$txpcfg['txpath']
isn’t really used anymore, haven’t been in years. Automatic path generating and db data should be preferred overtxpcfg
, which is only used to gain access to db and to support older plugins. Instead, you can use the definedtxpath
.
Thanks, fixed in aks_rss v0.1.4b
And btw, nice plugin. Lovely :)
Thanks :)
Last edited by makss (2016-01-16 18:22:05)
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