Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#193 2009-03-20 09:29:48

Agogo
Member
From: Sthlm, Sweden
Registered: 2008-11-27
Posts: 31

Re: [Archived] bit_rss

robhert: Well, not if you want multiple feeds in the same list – which is what I need. Darn. No one?

mhulse: Hey, np, its great that you tried, Im just after the latest one. You know which version that source of yours is? Is that one also 0.2?

Offline

#194 2009-03-20 14:30:00

robhert
Member
From: Perú
Registered: 2007-04-27
Posts: 206
Website

Re: [Archived] bit_rss

agogo: robhert: Well, not if you want multiple feeds in the same list – which is what I need. Darn. No one?

Hey! I can Show different feeds in the same list. Maybe not the way you want but I can. Just I do this:

<txp:feed items="5" showdate="j/n/Y" h="h2" shortdesc="300" alttitle="-1">http://www.feed1.com/xml</txp:feed>
<txp:feed items="5" showdate="j/n/Y" h="h2" shortdesc="300" alttitle="-1">http://www.feed2.net/rss.aspx</txp:feed>

If this is not what you want. Sorry

Regards!

Last edited by robhert (2009-03-20 14:30:37)

Offline

#195 2009-03-20 15:45:50

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 976
Website

Re: [Archived] bit_rss

Agogo

You could use ied_plugin_composer to install source code. Start at the end of the thread and work backwards to find the most current version. Bloke is maintaining it now.

Offline

#196 2009-03-20 20:27:32

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

Re: [Archived] bit_rss

Agogo: “not if you want multiple feeds in the same list”

Check out the SimplePie documentation. Multi feeds are very easy to do (not with the TXP plug-in).

  1. Download the whole SimplePie package
  2. Extract to some webspace
  3. Check out the multifeed demo
  4. Configure your own SimplePie PHP
  5. Inject that raw SimplePie PHP into your Textpattern page, form or article (PHP needs extra privileges -> admin panel).

It’s worth it and really not too difficult because of the good SimplePie documentation and examples on their website.

Last edited by merz1 (2009-03-21 08:46:38)


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

Offline

#197 2009-03-20 22:52:47

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: [Archived] bit_rss

Agogo,
If you can’t follow Markus suggestion try this (created with ied_plugin_composer)
Hope it works.

YToxMDp7czo0OiJuYW1lIjtzOjc6ImJpdF9yc3MiO3M6NjoiYXV0aG9yIjtzOjA6IiI7czox
MDoiYXV0aG9yX3VyaSI7czowOiIiO3M6NzoidmVyc2lvbiI7czozOiIwLjEiO3M6MTE6ImRl
c2NyaXB0aW9uIjtzOjA6IiI7czo0OiJjb2RlIjtzOjc3NzE6ImZ1bmN0aW9uIGJpdF9yc3Mo
JGF0dHMpIHsNCiAgICBnbG9iYWwgJHByZXRleHQsJHByZWZzLCR0eHBjZmc7DQogICAgZXh0
cmFjdCgkcHJldGV4dCk7DQogICAgZXh0cmFjdChsQXR0cyhhcnJheSgNCiAgICAgICAgJ2Zl
ZWQnICAgICAgID0+ICcnLA0KICAgICAgICAnc2ltcGxlcGllJyAgPT4gJHR4cGNmZ1sndHhw
YXRoJ10uJy9saWIvc2ltcGxlcGllLmluYycsDQogICAgICAgICdjYWNoaW5nJyAgICA9PiAn
MScsDQogICAgICAgICdjYWNoZV9kaXInICA9PiAkdHhwY2ZnWyd0eHBhdGgnXS4nL3RtcCcs
DQogICAgICAgICdjYWNoZV90aW1lJyA9PiA2MCwNCiAgICAgICAgJ2VuY29kZV9odG1sJyA9
PiAnMScsDQogICAgICAgICdzdHJpcF9odG1sJyA9PiAnJywNCiAgICAgICAgJ3N0cmlwX2F0
dHMnID0+ICcnLA0KICAgICAgICAnc3RyaXBfYWRzJyAgPT4gJzEnLA0KICAgICAgICAncmVt
b3ZlX2RpdicgPT4gJzEnLA0KICAgICAgICAncmVwbGFjZV9oZWFkZXJzJyA9PiAnMCcsDQog
ICAgICAgICdmb3JtJyAgICAgICA9PiAncnNzJywNCiAgICAgICAgJ2xpbWl0JyAgICAgID0+
ICcnLA0KICAgICAgICAnb2Zmc2V0JyAgICAgPT4gJycsDQogICAgICAgICdvcmRlcicgICAg
ICA9PiAnJywNCiAgICAgICAgJ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yZW50IGZlZWQgdGl0bGUNCiAgICAgICAgICAgICAgICBpZighZW1wdHkoJHRpdGxlcmVj
b3JkWyRpdGVtLT5nZXRfaWQoKV0pKSB7DQogICAgICAgICAgICAgICAgICAgICRvdXRbJ2N1
c3RvbV8xJ10gPSAkdGl0bGVyZWNvcmRbJGl0ZW0tPmdldF9pZCgpXTsNCiAgICAgICAgICAg
ICAgICB9DQoNCiAgICAgICAgICAgICAgICAvLyBBc3NpZ24gdGhlIHBhcmVudCBmZWVkIGxp
bmsNCiAgICAgICAgICAgICAgICBpZighZW1wdHkoJGxpbmtyZWNvcmRbJGl0ZW0tPmdldF9p
ZCgpXSkpIHsNCiAgICAgICAgICAgICAgICAgICAgJG91dFsnY3VzdG9tXzInXSA9ICRsaW5r
cmVjb3JkWyRpdGVtLT5nZXRfaWQoKV07DQogICAgICAgICAgICAgICAgfQ0KDQogICAgICAg
ICAgICAgICAgLy8gQ2hlY2sgYW5kIHJldHJpZXZlIGRhdGUNCiAgICAgICAgICAgICAgICBp
ZigkaXRlbS0+Z2V0X2RhdGUoKSkgew0KICAgICAgICAgICAgICAgICAgICAkb3V0WyJwb3N0
ZWQiXSA9ICRpdGVtLT5nZXRfZGF0ZSgnVScpOw0KICAgICAgICAgICAgICAgIH0NCg0KICAg
ICAgICAgICAgICAgIC8vIENoZWNrIGFuZCByZXRyaWV2ZSBhdXRob3JzDQogICAgICAgICAg
ICAgICAgaWYoJGl0ZW0tPmdldF9hdXRob3JzKCkpIHsNCiAgICAgICAgICAgICAgICAgICAg
JGF1dGhvcnMgPSAkaXRlbS0+Z2V0X2F1dGhvcnMoKTsNCiAgICAgICAgICAgICAgICAgICAg
JGF1dGhBcnJheSA9IGFycmF5KCk7DQogICAgICAgICAgICAgICAgICAgIGZvcmVhY2goJGF1
dGhvcnMgYXMgJGF1dGhvcikgew0KICAgICAgICAgICAgICAgICAgICAgICAgJGF1dGhBcnJh
eVtdID0gJGF1dGhvci0+Z2V0X25hbWUoKTsNCiAgICAgICAgICAgICAgICAgICAgfQ0KICAg
ICAgICAgICAgICAgICAgICAkb3V0WydhdXRob3InXSA9IGpvaW4oIiwgIiwgJGF1dGhBcnJh
eSk7DQogICAgICAgICAgICAgICAgfQ0KDQogICAgICAgICAgICAgICAgLy8gQXNzaWduIHRo
ZSBmaXJzdCB0d28gY2F0ZWdvcmllcyBmb3VuZCB0byBjYXRlZ29yeTEgYW5kIGNhdGVnb3J5
Mg0KICAgICAgICAgICAgICAgIGlmKCRpdGVtLT5nZXRfY2F0ZWdvcmllcygpKSB7DQogICAg
ICAgICAgICAgICAgICAgICRjYXRzID0gJGl0ZW0tPmdldF9jYXRlZ29yaWVzKDAsMSk7DQog
ICAgICAgICAgICAgICAgICAgICRvdXRbJ2NhdGVnb3J5MSddID0gJGNhdHNbMF07DQogICAg
ICAgICAgICAgICAgICAgIGlmKCFlbXB0eSgkY2F0c1sxXSkpIHsNCiAgICAgICAgICAgICAg
ICAgICAgICAgICRvdXRbJ2NhdGVnb3J5MiddID0gJGNhdHNbMV07DQogICAgICAgICAgICAg
ICAgICAgIH0NCiAgICAgICAgICAgICAgICB9DQoNCiAgICAgICAgICAgICAgICAvLyBHZXQg
aXRlbSBwZXJtYWxpbmsNCiAgICAgICAgICAgICAgICAkb3V0WydwZXJtbGluayddID0gJGl0
ZW0tPmdldF9wZXJtYWxpbmsoKTsNCg0KICAgICAgICAgICAgICAgIC8vIEdldCB0aGUgYm9k
eTsNCiAgICAgICAgICAgICAgICAkb3V0Wydib2R5J10gPSAkaXRlbS0+Z2V0X2Rlc2NyaXB0
aW9uKCk7DQoNCiAgICAgICAgICAgICAgICAvLyBHZXQgaXRlbSB0aXRsZQ0KICAgICAgICAg
ICAgICAgICRvdXRbJ3RpdGxlJ10gPSAkaXRlbS0+Z2V0X3RpdGxlKCk7DQoNCiAgICAgICAg
ICAgICAgICAkR0xPQkFMU1sndGhpc2FydGljbGUnXSA9ICRvdXQ7DQoNCiAgICAgICAgICAg
ICAgICAkYXJ0aWNs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ICAgICAgICAkbGVzcyA9IGFycmF5KCk7DQogICAgICAgICRtb3JlID0g
YXJyYXkoKTsNCiAgICAgICAgZm9yKCRpID0gMDsgJGkgPCBjb3VudCgkaXRlbXMpOyAkaSsr
KSB7DQogICAgICAgICAgICAkY0l0ZW0gPSAkaXRlbXNbJGldOw0KICAgICAgICAgICAgaWYo
JGNJdGVtLT5nZXRfZGF0ZSgnVScpIDw9ICRwaXZvdC0+Z2V0X2RhdGUoJ1UnKSkgew0KICAg
ICAgICAgICAgICAgICRtb3JlW10gPSAkY0l0ZW07DQogICAgICAgICAgICB9ZWxzZSB7DQog
ICAgICAgICAgICAgICAgJGxlc3NbXSA9ICRjSXRlbTsNCiAgICAgICAgICAgIH0NCiAgICAg
ICAgfQ0KDQogICAgICAgIHJldHVybiBhcnJheV9tZXJnZShiaXRfcXVpY2tTb3J0KCRsZXNz
KSwgYXJyYXkoJHBpdm90KSwgYml0X3F1aWNrU29ydCgkbW9yZSkpOw0KICAgIH1lbHNlIHsN
CiAgICAgICAgcmV0dXJuICRpdGVtczsNCiAgICB9DQp9DQoNCmZ1bmN0aW9uIGJpdF9jaGVj
a0Jvb2woJHZhbHVlKSB7DQogICAgcmV0dXJuICgkdmFsdWUgPT0gIjEiIHx8ICR2YWx1ZSA9
PSAidHJ1ZSIgfHwgJHZhbHVlID09ICJ5ZXMiKTsNCn0iO3M6NDoidHlwZSI7czoxOiIwIjtz
OjU6Im9yZGVyIjtzOjE6IjUiO3M6NDoiaGVscCI7czowOiIiO3M6MzoibWQ1IjtzOjMyOiJk
MmYwOTMwMzk2MGE3ODA0MzhjOGFlYWYzMTE2YzE2MyI7fQ==

Last edited by redbot (2009-03-20 22:53:36)

Offline

#198 2009-03-21 16:54:49

Agogo
Member
From: Sthlm, Sweden
Registered: 2008-11-27
Posts: 31

Re: [Archived] bit_rss

Thanks all! This is like working a jigsaw puzzle!

Now lets see if I get this scrambled thing working…

AND FOR THOSE OTHERS THAT ARE LOOKING FOR THE VERSION OF SIMPLEPIE THAT IS REQUIRED:

Those bastards at Simplepie did hide old versions pretty good but I finaly found ‘em:
http://svn.simplepie.org/simplepie/releases/

Just to clear things up
Thank you thank you thank you! I noticed that my last “thank you” was kinda lame. Sry. :)

Last edited by Agogo (2009-03-21 21:23:31)

Offline

#199 2009-03-26 11:39:16

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

Re: [Archived] bit_rss

mhulse wrote:

I do not have the original plug, but here is the source code

mhulse, redbotTHANKS! what is version?

Last edited by makss (2009-03-26 11:40:51)


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

#200 2009-03-26 12:17:17

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: [Archived] bit_rss

The one I posted is 0.4.1

Offline

#201 2009-03-26 15:58:41

Agogo
Member
From: Sthlm, Sweden
Registered: 2008-11-27
Posts: 31

Re: [Archived] bit_rss

I though Id publish a “hack” making it possible to choose how many posts you want to extract from each feed when using multiple feeds:

Firstly find the attribute extract for the plugin and add this attribute to it (you can name it whatever you want, I chose “items_per_feed”):
'items_per_feed' => '0',

Make sure the comma is at the end of the line and that you dont add it last to the allready existing attribte list.

Then find this line in the plugin code:
$feeditems = $feed->get_items();

…and change it to:
$feeditems = $feed->get_items(0,$items_per_feed);

If you chose another name for the attribute then just enter that var instead (eg $myatt).

The zero is telling Simplepie which post in each feed to start from – zero is the first/latest. The attribute is telling Simplepie how many posts to fetch.

Thats it!

An example textpattern tag for using the attribute is:
<txp:bit_rss feed="http://www.myfeed.com/rss/,http://www.yourfeed.com/feed" items_per_feed="1" limit="5" form="rss" />

The limit attribute is telling the plugin how many posts to publish. If the first feed in this example has five posts thats newer then the second one then youll only get those five published – and none of them will be from the second feed.

PS. You can use this part of Simplepie to add offset to the feed but since the plugin offers offset allready, but in a different way, I didnt add that to the hack.

Offline

#202 2009-03-27 13:46:50

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

Re: [Archived] bit_rss

I rewrite some code in bit_rss v0.4.1 and publish new plugin aks_rss based on bit_rss.

Agogo: Thanks, I include your patch in aks_rss

Last edited by makss (2009-11-18 18:51:38)


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

#203 2011-08-02 19:16:46

WebKat
Member
Registered: 2007-01-16
Posts: 301

Re: [Archived] bit_rss

I’m having problems with this part: “bit_rss v0.4.1 uses SimplePie 1.0 b3.2 which includes support for IDN.”
I have an older version of SimplePie but don’t remember how I installed it. I tried downloading what I thought was what I needed, but it was a big ole zip file full of files and folders and so on, but the documentation here refers only to uploading simplepie.inc… which I couldn’t even find in the huge zip file. So I’m doing something wrong and need help :(

I have bit_rss 0.3 installed and working fine, I just figured I’d upgrade since there is a more recent version.



WebKat

Offline

#204 2011-08-02 21:20:53

maruchan
Member
From: Ukiah, California
Registered: 2010-06-12
Posts: 595
Website

Re: [Archived] bit_rss

Did you try this zip file? It seems to have the simplepie.inc file: Simplepie download page

Offline

Board footer

Powered by FluxBB