calling a view embedded in a panel

rpmute - April 18, 2008 - 02:00
Project:XSPF Playlist
Version:5.x-0.12
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

arthur: wondering if you could help with this.
got a video content type and my nodeprofile content type for users, both configured to display the flash player.

1. say the user's name is tiffany.
2. I upload tiffany's video to the video content type, give it a title, then add her name to the 'authored by' section.
3. got a views generated playlist using an argument to display tiffany's particular video(s) at tiffany/videos (for the xml)
4. I embedded the php code in a panel on the user profile, as you can see below. Do you know how make the URL dynamic, so i don't have to input the user's name each time? It has to call the 'user's name of the current profile we're looking at'. Maybe something like 'file' => xspf_playlist_url('($username)/video')

this is what i've been doing:

$vars = array(
    'enablejs' => 'true',
    'file' => xspf_playlist_url('tiffany/videos'),
    'shuffle' => 'true',
    'displayheight' => '240',
    'bufferlength' => '5'

 
 

Drupal is a registered trademark of Dries Buytaert.