I installed the audio module for one or my content type with the unpleasant surprise of seeing the player on all the articles with that content type even if I did not have any file to play.

I was obligated to remove the field and create a specific content type where I can use the module.

It would be great if we can add the audio field on any content type and the player only shows up when there is a file to play (as it does with google maps module for example).

Thanks to author of this module: Great job!

Comments

tamerzg’s picture

Status: Active » Fixed

Oh yes we forget to add code to check if file exists or not! Now its fixed in beta2.

Jorge Campo’s picture

It works great!

I had to do the backward to the forward slashes again in the audiofield.module file (lines 56 to 58):

$player1=realpath("sites") . "/all/libraries/player/audio-player/player.swf";
$player2=realpath("sites") . "/all/libraries/player/xspf_player_slim.swf";
$player3=realpath("sites") . "/all/libraries/player/playerSinglePackage/playerSingle.swf";

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.