Go to main content

Textpattern CMS support 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: 355

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

#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: 355

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

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

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

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

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

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
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)

Offline

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

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

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

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

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

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
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: 355

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_dragdrop : Drag&Drop categories (article, link, image, file)

Offline

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

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
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
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
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

#41 2009-08-13 23:07:30

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: aks_rss : RSS parser and aggregator

Ok, sorry for the triple posting… and even more sorries for wasting your time… it was all my fault…
I’m ashamed.

It happened that when I downloaded the plugin, I also went to SimplePie site and saw there was a new version (1.2) and I said: “hey, let’s try aks_rss with the new SimplePie version”.

As it didn’t work, I then say: “ok, let’s go back to SimplePie 1.1.3”, and I was sure I did replace it… but I didn’t.

Few minutes ago, I checked that the simplepie.inc file on server was still 1.2, so I rolled back to 1.1.3 and we all know the happy ending for this story :).

At least, we know that aks_rss and SimplePie 1.2 aren’t compatible… yet… ;)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#42 2009-08-14 20:47:35

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: aks_rss : RSS parser and aggregator

Me again.

makss: if you are preparing any update, you may want to consider the following feedback :)

<txp:aks_rssclass /> doesn’t do things on a very “textpatternish way”, imho.
Why? It tries to resolve “more” than what is needed, or said using other words: it outputs more than the necessary.
It currently outputs class='example-com', so it just can be used for adding a class attribute to an HTML element (of course… it’s aks_rssclass!).

So, what’s the problem? If you want to add another class to the same element that you are adding <txp:aks_rssclass />, you can’t. Or even if you want to add just that class, but add some sufix or prefix, you can’t either

IMHO, a better solution (a more “textpatternish” solution) would just been a tag that outputs just example-com, let’s name it aks_rss_source (or something like that).

That will let us do things like:

Multiple classes:
<li class="<txp:aks_rss_source /> another-class"> ==> <li class="youtube-com another-class">

Custom classes (helpful if you already used the class somewhere else or if you want to create different classes for different HTML inside each feed item):
<li class="<txp:aks_rss_source />-feed-item"> ==> <li class="you-tube-feed-item">

Unique IDs (may be usefu for scripting)
<li id="<txp:aks_rss_source />-<txp:rvm_counter />"> ==> <li id="you-tube-1">
<li id="<txp:aks_rss_source />-<txp:rvm_counter />"> -> <li id="you-tube-2">

One more comment

  • aesthetically, I would prefer an underscore separating the plugin name from the particular tag name: <txp:aks_rss_class />, <txp:aks_rss_title />, <txp:aks_rss_link />,

And, finally, a question about an attribute:

remove_div (optional)
This attribute allows you to strip that div out.

What does it do? I don’t get it.

Thanks again.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#43 2009-08-15 22:00:15

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

Re: aks_rss : RSS parser and aggregator

maniqui wrote:

<txp:aks_rssclass /> doesn’t do things on a very “textpatternish way”, imho.
IMHO, a better solution (a more “textpatternish” solution) would just been a tag that outputs just example-com, let’s name it aks_rss_source (or something like that)..

  • aesthetically, I would prefer an underscore separating the plugin name from the particular tag name: <txp:aks_rss_class />, <txp:aks_rss_title />, <txp:aks_rss_link />,

Thanks for feedback, it will be fixed in next update.
.

And, finally, a question about an attribute:
remove_div (optional)
What does it do? I don’t get it.

I don’t know. :-)
It’s from Simplepie attributes, possible I remove this attribute(or simple hide from my docs ;-)
From Simplepie docs


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

#44 2009-08-16 09:34:03

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

Re: aks_rss : RSS parser and aggregator

Re. remove_div: Pls. check SimplePie doc before removing an option. In my experience all options supportes by SimplePie do make sense.


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

Offline

#45 2009-08-16 10:24:54

whaleen
Member
From: Portland
Registered: 2006-05-11
Posts: 373
Website

Re: aks_rss : RSS parser and aggregator

wrong post

Last edited by whaleen (2009-08-16 10:29:40)


txtstrap (Textpattern + Twitter Bootstrap + etc…)

Offline

Board footer

Powered by FluxBB