Drupal Audiofield Does Not Show Players

Last modified: 

Friday, July 6, 2012 - 13:45

AudioField, version 6.x-1.0-beta1, did not show any players after I installed it in Drupal. After looking through the code I found that the developer had used sloshes, \\\\\, instead of slashes, /////. By switching them I was able to make the module work.

The original code

    $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";

was changed to

    $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";

and submitted to the AudioField issues forum.

Add new comment