Hello Everyone,
I am having a rather difficult time getting playlists to work the way I want them. Heres how I have it setup so far and what I'd like to have it do. I have installed the Advanced Profile Kit and would like to have a playlist for each user. Instead of creating a new content type I instead am using the Usernodes so that each user automatically has their own playlist associated with them and can't have more then one. This seems to be working out just fine. I can go to the usernode and see the songs that the user has added to their playlist. What I am trying to do now is create a view that will display this playlist on the users profile in a single player. I've noticed that there is the handy "Audio: XSPF/M3U/PLS Playlist" View Type, but I can't find a filter that would limit the audio to only those that the user has added to their playlist. Am I even close to being correct on how to accomplish this? I could really use some help.
Heres some links to what I've accomplished so far as well as my view export:
My User Profile - http://www.holznetwork.com/user/napoleon333 (playlist is currently set to show songs that I have uploaded since I haven't figured out how to draw from my playlist)
My Usernode w/Actual Playlist - http://www.holznetwork.com/usernode/napoleon333
My Playlist View Page - http://www.holznetwork.com/playlist_of_uid/1
My View Export -
$view = new stdClass();
$view->name = 'playlist_of_uid';
$view->description = '';
$view->access = array ( );
$view->view_args_php = '';
$view->page = TRUE;
$view->page_title = '';
$view->page_header = '';
$view->page_header_format = '2';
$view->page_footer = '';
$view->page_footer_format = '3';
$view->page_empty = '';
$view->page_empty_format = '1';
$view->page_type = 'audio_feeds';
$view->url = 'playlist_of_uid';
$view->use_pager = FALSE;
$view->nodes_per_page = '0';
$view->sort = array ( array ( 'tablename' => 'node', 'field' => 'created', 'sortorder' => 'DESC', 'options' => 'normal', ), );
$view->argument = array ( array ( 'type' => 'uid', 'argdefault' => '1', 'title' => '', 'options' => '', 'wildcard' => '', 'wildcard_substitution' => '', ), );
$view->field = array ( ); $view->filter = array ( array ( 'tablename' => 'node', 'field' => 'status', 'operator' => '=', 'options' => '', 'value' => '1', ), array ( 'tablename' => 'node', 'field' => 'type', 'operator' => 'OR', 'options' => '', 'value' => array ( 0 => 'audio', ), ), ); $view->exposed_filter = array ( ); $view->requires = array(node);
$views[$view->name] = $view;
I think thats all of it. Thanks in advance for your help.
/Justin
Comments
Comment #1
napoleon333 commented*2 Week Bump*
Anyone out there? Could really use some help on this one.
Comment #2
drewish commenteduh, it doesn't make much sense because you selected the 5.x version but mentioned views2 which is 6.x