Textpattern Forum

You are not logged in. Register | Login | Help

#31 2009-07-08 19:14:53

makss
Plugin Author
From: Ukraine
Registered: 2008-10-21
Posts: 249
Website

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_meta | aks_header : Compress your pages on the fly

Offline

#32 2009-07-08 23:21:33

rathersplendid
Plugin Author
From: London
Registered: 2008-05-02
Posts: 163
Website

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

#33 2009-07-20 15:24:50

makss
Plugin Author
From: Ukraine
Registered: 2008-10-21
Posts: 249
Website

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 (2009-07-21 07:00:32)


aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_meta | aks_header : Compress your pages on the fly

Offline

#34 2009-08-08 18:40:41

makss
Plugin Author
From: Ukraine
Registered: 2008-10-21
Posts: 249
Website

Re: aks_rss : RSS parser and aggregator

Small bugfix in aks_rss version 0.1.4, please upgrade it.

aks_rss v0.1.4a


aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_meta | aks_header : Compress your pages on the fly

Offline

#35 2009-08-08 19:27:19

Gocom
Developer
Registered: 2006-07-14
Posts: 4,476
Website

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)


Rah-plugins | What? I’m a little confused… again :-) <txp:is_god />

Offline

#36 2009-08-12 10:01:00

makss
Plugin Author
From: Ukraine
Registered: 2008-10-21
Posts: 249
Website

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 over txpcfg, which is only used to gain access to db and to support older plugins. Instead, you can use the defined txpath.

Thanks, fixed in aks_rss v0.1.4b

And btw, nice plugin. Lovely :)

Thanks :)


aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_meta | aks_header : Compress your pages on the fly

Offline

#37 2009-08-13 20:18:24

maniqui
Moderator
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 2,989
Website

Re: aks_rss : RSS parser and aggregator

hi makss,

Thanks for this plugin.
I can’t see why I’m not getting any output. I’m using the code in your example, directly inside the body of an article.
I see that the thing is somehow working as the ##longnumber##.scp files are being created on textpattern/tmp.

While I’m here, I also would like to know if aks_rss can be used only inside articles or if it will work directly on page templates.

Thanks again.

edit: btw, I’m on TXP 4.2.0 RC

Last edited by maniqui (2009-08-13 20:21:23)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#38 2009-08-13 20:59:03

makss
Plugin Author
From: Ukraine
Registered: 2008-10-21
Posts: 249
Website

Re: aks_rss : RSS parser and aggregator

I can’t see why I’m not getting any output. I’m using the code in your example, directly inside the body of an article.
I see that the thing is somehow working as the ##longnumber##.scp files are being created on textpattern/tmp.

Please, try this code inside the body of an article.

==<txp:aks_rss feed="http://forum.textpattern.com/extern.php?type=RSS&action=active&fid=79" wraptag="ul">
<li><txp:permlink><txp:title /></txp:permlink></li>
</txp:aks_rss>==

While I’m here, I also would like to know if aks_rss can be used only inside articles or if it will work directly on page templates.

aks_rss – fine work in articles, page templates, forms.

edit: btw, I’m on TXP 4.2.0 RC

With TXP 4.2.0 RC – all ok

.

Edit: “I’m not getting any output” – perhaps you forgot to create rss form in TxP.

Last edited by makss (2009-08-13 21:08:03)


aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_meta | aks_header : Compress your pages on the fly

Offline

#39 2009-08-13 22:16:43

maniqui
Moderator
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 2,989
Website

Re: aks_rss : RSS parser and aggregator

makss,

thanks for your quick reply.

makss wrote:

Please, try this code inside the body of an article.

Tried it, no luck.

I’ve tried bot running the plugin from the database and from plugin_cache_dir.
Also I’ve tried disabling every other plugin.

aks_rss – fine work in articles, page templates, forms.

Great, good to know.

Edit: “I’m not getting any output” – perhaps you forgot to create rss form in TxP.

I’m using the example code, where <txp:aks_rss> is used as a container tag, so I suppose there is no need to use the form attribute. But just in case, I’ve added form="" but nothing changed. Also, I’ve tried the plugin tag as a self-closing tag, and using form="default". No luck either :(

I paste diagnostics to see if it helps:

Textpattern version: 4.0.8 (r3250)
Last Update: 2009-08-06 16:24:28/2009-08-06 16:07:20
Document root: xxx
$path_to_site: xxx
Textpattern path: xxx
Permanent link mode: section_title
Temporary directory path: xxx
Site URL: xxx
PHP version: 5.2.6-3ubuntu4.1
GD Image Library: 2.0 or higher; supported formats: GIF, JPG, PNG.
Server TZ: System/Localtime
Server Local Time: 2009-08-13 19:14:43
DST enabled?: 1
Automatically adjust DST setting?: 1
Time Zone: Europe/London (0)
MySQL: 5.0.75-0ubuntu10.2
Locale: en_GB.UTF-8
Server: Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.1 with Suhosin-Patch mod_perl/2.0.4 Perl/v5.10.0
Apache version: Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.1 with Suhosin-Patch mod_perl/2.0.4 Perl/v5.10.0
PHP Server API: apache2handler
RFC 2616 headers:
Server OS: Linux 2.6.28-15-generic
Active plugins: aks_rss-0.1.4b, ied_plugin_composer-0.83
Admin-side theme: remora 4.0.8

Thanks again.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#40 2009-08-13 22:55:27

maniqui
Moderator
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 2,989
Website

Re: aks_rss : RSS parser and aggregator

From the fact that the cache files are being created on /textpattern/tmp, it seems that the thing is half-working for me.

For the record, this is the testing code I’m using on an article body:

 <txp:aks_rss feed="http://textpattern.com/rss/?section=weblog" wraptag="ul" form="default" />

 <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>

 <txp:aks_rss feed="http://forum.textpattern.com/extern.php?type=RSS&action=active&fid=79" wraptag="ul">
<li><txp:permlink><txp:title /></txp:permlink></li>
</txp:aks_rss>

La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB