Hey guys and gals... I'm trying to create an xspf playlist through views using the xspf playlist module. The purpose of this is to embed a flash player containing all the audio a user has added to the site inside their profile. I'm having difficulty figuring out what argument I should use, or if I'm even on the right track. Any help available for this?

Tony

Comments

mooffie’s picture

I don't know this module, but it seems all you need to do is:
- Create a list (using view) of all the nodes authored by the 'current user' (you may want to restrict them to the node type holding songs). Once it works:
- Change the view style to 'XSPF Playlist feed'.

Anthony Pero’s picture

If I understand you correctly, doing that would cause the logged in user to see their OWN songs everytime the view someone else's profile. I need the view to parse the url and deliver the songs form the user who's profile is being viewed currently, regardless of who the logged in user is.

Anthony Pero
http://limafirstmedia.com
http://anthonypero.com/booking

Anthony Pero
Project Lead
Virtuosic Media
http://www.virtuosic.me/

mooffie’s picture

doing that would cause the logged in user to see their OWN songs

You're right, I wrote 'authored by the current user' without much thought, sorry.

Every user has a 'user/#' page.

First, build a normal view, of a 'page' type, for the 'user/$arg/playlist' URL. Make this view accept an argument: the user ID. You'll want to restrict the view to the content-type that you intend to carry audio files.

(Once this works, proceed to change the styling form 'full nodes' (or 'teasers', or whatever) to 'xspf playlist feed'.)

Anthony Pero’s picture

I'll try this, thanks!

Anthony Pero
http://limafirstmedia.com
http://anthonypero.com/booking

Anthony Pero
Project Lead
Virtuosic Media
http://www.virtuosic.me/

Anthony Pero’s picture

Thank you for your help, i was able to make the view work. Unfortunately, it appears that XSPF Playlist Module is NOT able to make playlists from the audio module. I assume this is because the Audio Module deals with audio as nodes, instead of as attached content. So I'll try CCK for my node-type ans see if I can get it to work.

Thanks again.

Anthony Pero
http://limafirstmedia.com
http://anthonypero.com/booking

Anthony Pero
Project Lead
Virtuosic Media
http://www.virtuosic.me/

mooffie’s picture

it appears that XSPF Playlist Module is NOT able to make playlists from the audio module [...] So I'll try CCK

Or you could try to make the 'audio' module speak with the 'xspf' one. This shouldn't be hard for a novice programmer.

If you know some PHP you could build the whole thing yourself, the XSPF format seems quite simple.

Anthony Pero’s picture

That's beyond my skill level at the moment. I can edit my template files, but that's about it. It seems that XSPF module only works with the core upload module. YOu can't even use CCK upload fields, which seems like a huge hole in the program. I'm trying to figure out a workaround now.

Thanks for your help with the view.

Anthony Pero
http://limafirstmedia.com
http://anthonypero.com/booking

Anthony Pero
Project Lead
Virtuosic Media
http://www.virtuosic.me/

mooffie’s picture

I suggest you ask for directions in the module's issue queue. Try at the 'audio' module's queue as well.