Posted by Vako on November 6, 2009 at 4:23am
Jump to:
| Project: | MP3 Player |
| Version: | 6.x-1.0-beta1 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Is it possible to upload files manually and then link them to the MP3 Player manually?
Comments
#1
Yes, you just need to put the theme function to use with the path or URL to the player. Something like this is what I use in a view:
<?php
$mp3link = url('path/to/your/mp3/file.mp3', array('absolute' => TRUE));
$artist = user_load($node->uid);
$podcast_link = '<div class="podcastplayer">';
$podcast_link .= theme('mp3player', 'Default', $mp3link, $node->title, $artist, '');
$podcast_link .= '</div><div class="podcast-link">';
$podcast_link .= l('Direct link to MP3',
$mp3link,
array('title' => 'Download the MP3 - Right click and choose save as..'));
$podcast_link .= '</div>';
//... then where you need to put the player
print $podcast_link;
?>
#2
Thanks bonked, Vako also read up on the documentation: http://drupal.org/node/361984.