Posts: 69
Threads: 23
Joined: Dec 2011
I have a problem saving the player configurations.
When I attempt to save the player configuration, the next page displays the following error:
http://admin/load.php?id=dominion-mp3-player-ultimate
Server not found
Firefox can't find the server at admin.
Any ideas what could be the cause of this ?
Thanks !
Posts: 2
Threads: 0
Joined: Dec 2013
(2011-11-23, 23:49:30)vasitellapahki Wrote: Also, Dr Player messes up layout and I can't find out why... nothing wrong if I use default player, every div stay where they should. Some extra </div> somewhere maybe in Dr Player coding?
Btw, should there be a playlist visible using the default player? Right now, showing only one song.
This seems like the perfect plugin for my band's website, just these minor probs.
I'll do another template and test some more, but it'd be great if someone can point to me where to start correcting these problems.
I found this </div> and fix it.
mp3-player-ultimate-fix.zip (Size: 74.9 KB / Downloads: 15)
Posts: 7
Threads: 1
Joined: Dec 2013
2014-01-16, 13:38:28
(This post was last modified: 2014-01-21, 00:59:56 by Klas.)
Hello!
The solution to get the default player to render multiple times on a site is to give it an unique id. I used
to get it a unique id. Then the player also stops when playing next file.
Like this:
PHP Code:
<object id='mp3player_default_".$ap_playerID."' name='".$fnameis."' class='default_object' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='285' height='120'>
My dominion-mp3-default-extend.php now looks like this:
PHP Code:
<?php
/*
Extention Name: Mp3 Player Ultimate Default Extention
Description: Default Extention of original plugin
Version: 0.1
GS : 3.0
Author: Johannes Pretorius
Author URI: http://www.dominion-it.co.za/
*/
require_once(GSPLUGINPATH.'dominion-mp3player/dominion-mp3player-extention_base.php');
class DominionMp3Player_DefaultPlayer extends DominionMp3Player_ExtentionBase {
public function Plugin_ID(){
return "0";
}
public function AddPlayer($pluginBasePath,$targetFiles,$options,&$ap_playerID,$theFile){
$bgColor = $options['bgcolor'];
$player ='';
foreach ($targetFiles as $targetFile) {
$fnameis= basename($targetFile);
$fname = str_replace('-',' ',$fnameis);
$fname = str_replace('_',' ',$fname);
$fname = str_replace('.mp3',' ',$fname);
$fname = ucwords($fname);
$player .= "<div class='default_div'>
<object id='mp3player_default_".$ap_playerID."' name='".$fnameis."' class='default_object' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='285' height='120'>
<param name='movie' value='".$pluginBasePath."default/player.swf' />
<param name='FlashVars' value='playerID=".$ap_playerID."&bg=0xf8f8f8&leftbg=0xeeeeee&lefticon=0x666666&rightbg=0xcccccc&
rightbghover=0x999999&righticon=0x666666&righticonhover=0xffffff&text=0x666666&slider=0x666666&
track=0xFFFFFF&border=0x666666&
loader=0x9FFFB8&soundFile=$targetFile' /><param name='quality' value='high' /><param name='menu' value='true' />
<param name='bgcolor' value='$bgColor' /><param name='wmode' value='opaque' />
<!--[if !IE]>-->
<object type='application/x-shockwave-flash' id='audioplayer".$ap_playerID."' name='".$fnameis ."' class='default_object' data='".$pluginBasePath."default/player.swf' width='285' height='24'>
<param name='FlashVars' value='playerID=".$ap_playerID."&bg=0xf8f8f8&leftbg=0xeeeeee&lefticon=0x666666&rightbg=0xcccccc&
rightbghover=0x999999&righticon=0x666666&righticonhover=0xffffff&text=0x666666&slider=0x666666&
track=0xFFFFFF&border=0x666666&
loader=0x9FFFB8&soundFile=$targetFile' /><param name='quality' value='high' /><param name='menu' value='true' />
<param name='bgcolor' value='$bgColor' /><param name='wmode' value='opaque' />
<!--<![endif]-->
<div>
<h1>flash not supported</h1>
<p><a href='http://www.adobe.com/go/getflashplayer'><img src='http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object><p class='default_text'> Program: " . $fname ."</p></div>";
/* TEST swfobjects
$player .= "<object type='application/x-shockwave-flash' data='".$pluginBasePath."player.swf'";
$player .= " width='310' height='24' id='audioplayer".$ap_playerID."'><param name='movie' value='".$pluginBasePath."player.swf' />";
$player .= "<param name='FlashVars' value='playerID=".$ap_playerID."&bg=0xf8f8f8&leftbg=0xeeeeee&lefticon=0x666666&rightbg=0xcccccc&";
$player .= "rightbghover=0x999999&righticon=0x666666&righticonhover=0xffffff&text=0x666666&slider=0x666666&";
$player .="track=0xFFFFFF&border=0x666666&";
$player .="loader=0x9FFFB8&soundFile=$targetFile' /><param name='quality' value='high' /><param name='menu' value='true' />";
$player .="<param name='bgcolor' value='$bgColor' /><param name='wmode' value='opaque' /></object>";
*/
$ap_playerID++;
}
return $player;
}
public function Player_Extention_Header($pluginPath){
?>
<link rel="stylesheet" type="text/css" href="<?php echo $pluginPath; ?>default/default.css" />
<script type="text/javascript" src="<?php echo $pluginPath; ?>swfobject.js"></script>
<script type="text/javascript">
swfobject.registerObject("mp3player_default", "9.0.0", "<?php echo $pluginPath; ?>expressInstall.swf");
</script>
<script type="text/javascript" src="<?php echo $pluginPath; ?>default/audio-player.js"></script>
<?php
}
}
?>
Posts: 2
Threads: 1
Joined: Jun 2013
Hello,
Is there a way to escape apostrophes and parentheses? If my song title contains an apostrophe or parentheses, then the short code breaks and the player is no longer functional.
Posts: 65
Threads: 11
Joined: Apr 2012
(2014-01-16, 13:38:28)Klas Wrote: Hello!
The solution to get the default player to render multiple times on a site is to give it an unique id. I used to get it a unique id. Then the player also stops when playing next file.
Like this:
PHP Code:
<object id='mp3player_default_".$ap_playerID."' name='".$fnameis."' class='default_object' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='285' height='120'>
My dominion-mp3-default-extend.php now looks like this:
PHP Code:
<?php
/*
Extention Name: Mp3 Player Ultimate Default Extention
Description: Default Extention of original plugin
Version: 0.1
GS : 3.0
Author: Johannes Pretorius
Author URI: http://www.dominion-it.co.za/
*/
require_once(GSPLUGINPATH.'dominion-mp3player/dominion-mp3player-extention_base.php');
class DominionMp3Player_DefaultPlayer extends DominionMp3Player_ExtentionBase {
public function Plugin_ID(){
return "0";
}
public function AddPlayer($pluginBasePath,$targetFiles,$options,&$ap_playerID,$theFile){
$bgColor = $options['bgcolor'];
$player ='';
foreach ($targetFiles as $targetFile) {
$fnameis= basename($targetFile);
$fname = str_replace('-',' ',$fnameis);
$fname = str_replace('_',' ',$fname);
$fname = str_replace('.mp3',' ',$fname);
$fname = ucwords($fname);
$player .= "<div class='default_div'>
<object id='mp3player_default_".$ap_playerID."' name='".$fnameis."' class='default_object' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='285' height='120'>
<param name='movie' value='".$pluginBasePath."default/player.swf' />
<param name='FlashVars' value='playerID=".$ap_playerID."&bg=0xf8f8f8&leftbg=0xeeeeee&lefticon=0x666666&rightbg=0xcccccc&
rightbghover=0x999999&righticon=0x666666&righticonhover=0xffffff&text=0x666666&slider=0x666666&
track=0xFFFFFF&border=0x666666&
loader=0x9FFFB8&soundFile=$targetFile' /><param name='quality' value='high' /><param name='menu' value='true' />
<param name='bgcolor' value='$bgColor' /><param name='wmode' value='opaque' />
<!--[if !IE]>-->
<object type='application/x-shockwave-flash' id='audioplayer".$ap_playerID."' name='".$fnameis ."' class='default_object' data='".$pluginBasePath."default/player.swf' width='285' height='24'>
<param name='FlashVars' value='playerID=".$ap_playerID."&bg=0xf8f8f8&leftbg=0xeeeeee&lefticon=0x666666&rightbg=0xcccccc&
rightbghover=0x999999&righticon=0x666666&righticonhover=0xffffff&text=0x666666&slider=0x666666&
track=0xFFFFFF&border=0x666666&
loader=0x9FFFB8&soundFile=$targetFile' /><param name='quality' value='high' /><param name='menu' value='true' />
<param name='bgcolor' value='$bgColor' /><param name='wmode' value='opaque' />
<!--<![endif]-->
<div>
<h1>flash not supported</h1>
<p><a href='http://www.adobe.com/go/getflashplayer'><img src='http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object><p class='default_text'> Program: " . $fname ."</p></div>";
/* TEST swfobjects
$player .= "<object type='application/x-shockwave-flash' data='".$pluginBasePath."player.swf'";
$player .= " width='310' height='24' id='audioplayer".$ap_playerID."'><param name='movie' value='".$pluginBasePath."player.swf' />";
$player .= "<param name='FlashVars' value='playerID=".$ap_playerID."&bg=0xf8f8f8&leftbg=0xeeeeee&lefticon=0x666666&rightbg=0xcccccc&";
$player .= "rightbghover=0x999999&righticon=0x666666&righticonhover=0xffffff&text=0x666666&slider=0x666666&";
$player .="track=0xFFFFFF&border=0x666666&";
$player .="loader=0x9FFFB8&soundFile=$targetFile' /><param name='quality' value='high' /><param name='menu' value='true' />";
$player .="<param name='bgcolor' value='$bgColor' /><param name='wmode' value='opaque' /></object>";
*/
$ap_playerID++;
}
return $player;
}
public function Player_Extention_Header($pluginPath){
?>
<link rel="stylesheet" type="text/css" href="<?php echo $pluginPath; ?>default/default.css" />
<script type="text/javascript" src="<?php echo $pluginPath; ?>swfobject.js"></script>
<script type="text/javascript">
swfobject.registerObject("mp3player_default", "9.0.0", "<?php echo $pluginPath; ?>expressInstall.swf");
</script>
<script type="text/javascript" src="<?php echo $pluginPath; ?>default/audio-player.js"></script>
<?php
}
}
?>
Thank you, this works!
Posts: 1,247
Threads: 82
Joined: Feb 2011
It looks like this plugin has a conflict with i18N Gallery. When enabled fancybox doesn't work on i18n Gallery thumbs
Posts: 3
Threads: 0
Joined: Feb 2016
Hi,
I'm using Mp3 player Ultimate on my site and would like to play files from a remote site. Is this possible with current version? Is there a way to insert an absolute URL (audio, mp3 file).
Many tnx,
Andrej