Textpattern Forum

You are not logged in. Register | Login | Help

#71 2010-03-10 17:00:39

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

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

#72 2010-03-10 17:28:14

JanDW
Plugin Author
From: Providence, RI, USA
Registered: 2008-07-18
Posts: 327
Website

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

#73 2010-03-14 01:54:28

laptophobo
Member
Registered: 2010-03-01
Posts: 216
Website

Re: aks_rss : RSS parser and aggregator

What I ended up doing was to add this tag in my template: <h3>News Feeds</h3>
<txp:aks_rss limit=“10” form=“feed_listing” feed=“http://www.feedzilla.com/rss/health”><txp:body/></txp:aks_rss>

And the “feed_listing” form have these attributes:
<txp:if_first_article><ul class=“directory”></txp:if_first_article>
<span class=“feed”><li><txp:permlink><txp:title /></txp:permlink> · <span class=“published”><txp:posted format=”%Y-%m-%d” /></li></span>

It now looks like I wanted. Thanks again for all of your help out there.

Last edited by laptophobo (2010-03-14 01:56:10)


Living the Location-Independent Life: www.NuNomad.com

Offline

#74 2010-03-14 21:19:59

JanDW
Plugin Author
From: Providence, RI, USA
Registered: 2008-07-18
Posts: 327
Website

Re: aks_rss : RSS parser and aggregator

Hey Ricardo,

There are a few things that could be improved on your code:

  1. You’re using the aks_rss tag both as a container tag (containing the <txp:body /> tag) and as a single tag by calling the form="" attribute . Since you’re using a forn I’m suspecting the contained tag doesn’t get executed. You’re supposed to use only one.
  2. The latest version of aks_rss supports the wraptag and breaktag attributes, so might as well use those
  3. Why use the <span class=“feed”>? It’s a redundant element since you could put the class on the list-item (breakclass)

So the code could be simplified to:

a single tag:

<txp:aks_rss limit="10" form="feed_listing" feed="http://www.feedzilla.com/rss/health" wraptag="ul" break="li" class="directory" breakclass="feed" />

the form:

<txp:permlink><txp:title /></txp:permlink> · <span class=“published”><txp:posted format=”%Y-%m-%d” /></span>

Cheers,

Jan

Last edited by JanDW (2010-03-14 21:20:24)


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

#75 2010-03-15 03:02:27

laptophobo
Member
Registered: 2010-03-01
Posts: 216
Website

Re: aks_rss : RSS parser and aggregator

Jan,
That cleaned up things a bit. And I can see that using the break tags may eliminate some form attributes. But when I implemented your changes, as written, my list structure did not appear like I wanted. I was also getting a funny “a” character before and after the date stamp. I did find that I had a couple of unnecessary tags though. So, here’s what I’m now working with:

On the Template: <txp:aks_rss limit=“10” form=“feed_listing” feed=“http://www.feedzilla.com/rss/health” class=“directory” breakclass=“feed” />

On the Form: <span class=“feed”><li><txp:permlink><txp:title /></txp:permlink> &#183; <span class=“published”><txp:posted format=”%Y-%m-%d” /></li></span>

FYI: The span class=feed is this simply this: font-size: 9px;

To view the example site where this feed is at, go to: http://www.dotorgwebworks.org/example.dev/


Living the Location-Independent Life: www.NuNomad.com

Offline

#76 2010-04-05 06:00:21

laptophobo
Member
Registered: 2010-03-01
Posts: 216
Website

Re: aks_rss : RSS parser and aggregator

Hello (Jan?)
I’m back again with a news feed problem. I’m working on a new site that needs a news feed section and though I thought I’d copied all of the plug-ins, tags, and whatnot to make this news feed work, I’m getting the following error message on top of my webpage instead:
Tag error: <txp:aks_rss limit=“10” form=“feed_listing” feed=“http://www.npr.org/rss/rss.php?id=1027” class=“directory” breakclass=“feed” /> -> Textpattern Notice: Unknown tag attribute: breakclass on line 699
Tag error: <txp:aks_rss limit=“10” form=“feed_listing” feed=“http://www.npr.org/rss/rss.php?id=1027” class=“directory” breakclass=“feed” /> -> : Assigning the return value of new by reference is deprecated on line 737

The tag I’m using (which works fine on my working website) is: <txp:aks_rss limit=“10” form=“feed_listing” feed=“http://www.npr.org/rss/rss.php?id=1027” class=“directory” breakclass=“feed” />

I have installed the aks_rss plug-in, and the SimplePie Plugin. (I have placed the simplepie.inc file in the textpattern>lib directory)

(I seem to remember that the SimplePie plug-in does not need to be turned on since only the simplepie.inc file is required. So, per my working site that has SimplePie plug-in turned off, i’ve done the same on this one.)

Ideas anyone? Thanks so much.


Living the Location-Independent Life: www.NuNomad.com

Offline

#77 2010-04-05 15:20:05

JanDW
Plugin Author
From: Providence, RI, USA
Registered: 2008-07-18
Posts: 327
Website

Re: aks_rss : RSS parser and aggregator

Hi Ricardo (or Richard?)

Tag error: <txp:aks_rss limit=“10” form=“feed_listing” feed=“http://www.npr.org/rss/rss.php?id=1027” class=“directory” breakclass=“feed” /> -> Textpattern Notice: Unknown tag attribute: breakclass on line 699

The breakclass attribute is new to the latest version of aks_rss (0.1.6), it seems like you may have an older version installed.

You’re correct, you don’t need the simplepie plugin at all (no need to install it), you just need the simplepie script. aks_rss and the simplepie plugin, both rely on the simplepie script, but they have nothing to do with eachother.

I’m not sure about the second error you’re getting, but maybe it’ll go to if you upgrade aks_rss?

Last edited by JanDW (2010-04-05 15:20:17)


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

#78 2010-04-06 02:01:40

laptophobo
Member
Registered: 2010-03-01
Posts: 216
Website

Re: aks_rss : RSS parser and aggregator

Jan,

Thanks for your assistance.
I replaced the version I had (which appeared to be 0.1.6) with another version of 0.1.6, but this time I used the simplepie.inc script from the aks_rss folder and not Simple Pie’s. With that done, I am now getting the news feed in the spot where I want it to view, but I’m still getting the error line above the page.


Living the Location-Independent Life: www.NuNomad.com

Offline

#79 2010-04-06 06:26:11

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

Re: aks_rss : RSS parser and aggregator

laptophobo wrote:

Tag error: <txp:aks_rss limit=“10” form=“feed_listing” feed=“http://www.npr.org/rss/rss.php?id=1027” class=“directory” breakclass=“feed” /> -> : Assigning the return value of new by reference is deprecated on line 737

It’s a warning PHP 5.3 on Simplepie library. Defect #150

Hide warning, set in php.ini or .htaccess:

error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED


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

#80 2010-04-06 06:41:34

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

Re: aks_rss : RSS parser and aggregator

laptophobo wrote:

That cleaned up things a bit. And I can see that using the break tags may eliminate some form attributes. But when I implemented your changes, as written, my list structure did not appear like I wanted. I was also getting a funny “a” character before and after the date stamp. I did find that I had a couple of unnecessary tags though. So, here’s what I’m now working with:
On the Template: <txp:aks_rss limit=“10” form=“feed_listing” feed=“http://www.feedzilla.com/rss/health” class=“directory” breakclass=“feed” />

Please, read this great post (Thank to JanDW)
Attribute class uses only with wraptag and attribute breakclass uses only with break

On the Form: <span class=“feed”><li><txp:permlink><txp:title /></txp:permlink> · <span class=“published”><txp:posted format=”%Y-%m-%d” /></li></span>

It’s a wrong… Check your html code or read this post. :)

To view the example site where this feed is at, go to: http://www.dotorgwebworks.org/example.dev/

Many open tags and other… 107 Errors


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

Board footer

Powered by FluxBB