Hello all!

I am using drupal 5.14 and the drupal audio module for drupal 5, beta version.

Everything seems to be working fine, only one problem. When a song is uploaded without a title, and the title is put through the site, the title does not save with the song. For example, if the name of the song should be abc.mp3, it saves as some random thing like xkpXEXL8.mp3.part, etc.

Then the name has to manually fixed.

Heres an example: http://nabeeln.com/drupal514/?q=node/1

Any help?

Thanks
-NN

Comments

dnewkerk’s picture

Unfortunately I don't have a solution for your question (hopefully someone else will)... though wanted to suggest trying out Filefield + SWFTools module, which I've personally switched to since I've never had anything but trouble getting Audio module to work the way I wanted.

You can install a variety of players to choose from (including 1pixelout like you're using for Audio module) and call them up in a variety of ways depending on your needs. I don't use it myself but Filefield's sub-module "Filefield Meta" which it comes with also supports getid3.

I usually call up the player like this (e.g. make an Audio CCK type, add a filefield to it, make a copy of node.tpl.php and call it node-audio.tpl.php)...
For a single value field:

<?php print swf($node->field_audio[0]['filepath']) ?>

For a multiple value field (creates a player for each audio file in the field):

<?php foreach ((array)$node->field_audio as $item) { ?>
  <?php print swf($item['filepath']) ?>
<?php } ?>

It also works equally well with video. You can see an example on my site, which is using JW Media Player 4, the "Stylish" theme for the player (free on the site) using custom colors, an imagefield for the preview image, and the following code to call it up on my template file:

<?php print swf($node->field_media[0]['filepath'], array('flashvars' => array('image' => 'media-image/' . ($node->field_media_image[0]['filename']), 'icons' => 'false')))?>

Good luck :)

-- David
davidnewkerk.com | absolutecross.com
View my Drupal lessons & guides

wheresmycookie’s picture

Thats interesting.. I'm going to give it a try right now, I'll let you know what happens.

Thanks for your help

-NN