Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [plugin] [ORPHAN] it_ituneswin: iTunes for Windows Official Release
if I remember correctly, it’s xmlfile=“file.xml”
Offline
#14 2004-07-08 20:04:22
- xenlab
- Member
- From: winter park, fl
- Registered: 2004-07-08
- Posts: 16
Re: [plugin] [ORPHAN] it_ituneswin: iTunes for Windows Official Release
cool got it working. that attribute name is what i needed.
however, it keeps defaulting to ‘Not Playing’ … is there an update to the parser code?
thanks,
xenlab
http://www.xnlb.com/
Offline
#15 2004-07-08 20:11:53
- xenlab
- Member
- From: winter park, fl
- Registered: 2004-07-08
- Posts: 16
Re: [plugin] [ORPHAN] it_ituneswin: iTunes for Windows Official Release
p.s. the xml file is making it to the server correctly, and is displaying the correct information: http://xenlab.ezrpm.com/now_playing.xml
thanks,
xenlab
http://www.xnlb.com/
Offline
#16 2004-07-08 20:45:29
- xenlab
- Member
- From: winter park, fl
- Registered: 2004-07-08
- Posts: 16
Re: [plugin] [ORPHAN] it_ituneswin: iTunes for Windows Official Release
well, i have updated the plugin with the parser code from Brandon’s fuller page…
i’ve got a test php page working and formatting like i like: http://xenlab.ezrpm.com/test.php
however, when moving this code into the body of the plugin, it doesn’t output anything… how do i turn my php function (based on brandon’s and aaron’s code) into a plugin i can install on my site, and share with others in the future?
thanks,
xenlab
http://www.xnlb.com/
Offline
Re: [plugin] [ORPHAN] it_ituneswin: iTunes for Windows Official Release
first of all, you have it using $xmlfile for the file?
start it off with
<pre>
function fpx_ituneswin($atts)
{
if (is_array($atts)) extract($atts);
</pre>
(you need the name of the function to match that of the plugin)
and when all of the parsing is done, don’t echo the result, “return” it. that should work. to make it into a plugin, use Dean’s plugin template
Offline
#18 2004-07-08 22:00:07
- xenlab
- Member
- From: winter park, fl
- Registered: 2004-07-08
- Posts: 16
Re: [plugin] [ORPHAN] it_ituneswin: iTunes for Windows Official Release
yeah, i’ve just got it hacked in using a php include for now. if i have time i will update it to be an installable plugin.
thanks,
xenlab
http://www.xnlb.com/
Offline
Re: [plugin] [ORPHAN] it_ituneswin: iTunes for Windows Official Release
Sorry to be away. Life’s been busy lately. Any questions not answered yet. Note – Brandon has released some updates. Everytime he does, it messes up my plugin, so I’m not sure what the key nodes are now since I haven’t updated to the latest plugin…
Aaron
Aaron Brazell
United States Navy
chmod a+x /bin/laden – Give everyone permission to execute /bin/laden
Offline
#20 2004-07-12 14:27:21
- xenlab
- Member
- From: winter park, fl
- Registered: 2004-07-08
- Posts: 16
Re: [plugin] [ORPHAN] it_ituneswin: iTunes for Windows Official Release
no worries. i just used his php code to parse the latest plugin. if i get some time i will create it as a distributable plugin.
thanks,
xenlab
http://www.xnlb.com/
Offline
Re: [plugin] [ORPHAN] it_ituneswin: iTunes for Windows Official Release
The current plug-in will only display the last song played, and not the 5 that I have set in the config. I understand that things have been updated some places (the itunes) and not in others (the txp plugin), but does anyone have this problem or know how to fix it?
Proof that any idiot can have a website: www.vacantcanvas.com
Offline
Re: [plugin] [ORPHAN] it_ituneswin: iTunes for Windows Official Release
I’m not home tolook at iTunes, but I believe the iTunes plugin allows you to choose how many songs to display. I could be wrong. I just don’t remember.
Aaron
Aaron Brazell
United States Navy
chmod a+x /bin/laden – Give everyone permission to execute /bin/laden
Offline
Re: [plugin] [ORPHAN] it_ituneswin: iTunes for Windows Official Release
Yeah it does, but it still only shows one on the page.
I have it set to output 5 on the itunes plugin, and the xml file shows five entries, but only one is displayed on my site.
Thoughts?
Proof that any idiot can have a website: www.vacantcanvas.com
Offline
#24 2004-07-13 23:22:03
- xenlab
- Member
- From: winter park, fl
- Registered: 2004-07-08
- Posts: 16
Re: [plugin] [ORPHAN] it_ituneswin: iTunes for Windows Official Release
the plugin is only set up to do one of the entries (in my experience)… you will need to loop over the array to get more output, which means editing the plugin.
thanks,
xenlab
http://www.xnlb.com/
Offline