Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Offline
#32 2008-03-11 21:47:30
- Vitruvius
- Plugin Author
- Registered: 2004-09-21
- Posts: 125
Re: [plugin] jk_parse_xml: get data from XML feeds
Hi Gocom – I’m using PHP v5.2.4, mySQL v4.1.22-standard
I have got the jk_parse_xml plugin working but only using a local file (so I update this using a cron job). The plugin displays the ‘tour’ events on architecture.org.au
Jeff – I had a look to make a donation to your project – but the donation form is showing a 404…
SH
Offline
Re: [plugin] jk_parse_xml: get data from XML feeds
Vitruvius, can you try v0.42: http://jeffkhonsary.com/plugindev/jk_parse_xml.php and see if that works?
Jeff
Offline
#34 2008-03-13 22:03:18
- Vitruvius
- Plugin Author
- Registered: 2004-09-21
- Posts: 125
Re: [plugin] jk_parse_xml: get data from XML feeds
Jeff – well done – that worked a treat.
Threw an initial permission denied error. I CHMODed the /textpattern/cache/ directory from its 755 to 777 and the plugin works a treat.
Perfect!
S
Offline
Re: [plugin] jk_parse_xml: get data from XML feeds
Just found this as I was looking at xml today – but I have a few questions.
1 – Some of the remote feeds I was looking at were gzip’d… these didn’t work, so I am presuming that I would need to unzip these before using them.
2 – Say if I’m using a merchants product feed – would there be a way of splitting the feed into the feed categories and display them in txp categories? I’m looking at txp:variable at the mo… just wondering if it is possible with the plugin.
nm… just thinking out loud now… so I’ll leave it there for the moment
Offline
Re: [plugin] jk_parse_xml: get data from XML feeds
It looks as if this plugin has been abandoned, but it looks great for what I need… If I could get it working. Does anyone have any examples of the contents inside the form that it references?
In my page I have
<txp:jk_parse_xml xml=“http://calendar.peopleschurch.org/category/high-school/feed” local_file=“0” form=“event_display” parents=“channel” elements=“title” />
and in “event_display” I have
<txp:jk_xml_element name=‘title’>
The plugin returns a ordered list with a single item, but no title… What am I doing wrong?
Offline
Re: [plugin] jk_parse_xml: get data from XML feeds
there are a few simplepie based plugins which might do what you need
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
Re: [plugin] jk_parse_xml: get data from XML feeds
3600asis, To work with your code, you need to set parent to “item”. Then the plugin should work.
Offline
Re: [plugin] jk_parse_xml: get data from XML feeds
On both installs I’ve tried it on the plugin generates an empty class=“xml-feed” with the correct number of entries for the feed. The reason my example includes channel was an attempt to grab the title of a feed. But as I said, it’s empty.
Offline