Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dominion Mp3 Player Ultimate
#26
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 !
Reply
#27
(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.

.zip   mp3-player-ultimate-fix.zip (Size: 74.9 KB / Downloads: 15)
Reply
#28
Hello!

The solution to get the default player to render multiple times on a site is to give it an unique id. I used
PHP Code:
$ap_playerID 
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) {

                 
$fnameisbasename($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."&amp;bg=0xf8f8f8&amp;leftbg=0xeeeeee&amp;lefticon=0x666666&amp;rightbg=0xcccccc&amp;
           rightbghover=0x999999&amp;righticon=0x666666&amp;righticonhover=0xffffff&amp;text=0x666666&amp;slider=0x666666&amp;
           track=0xFFFFFF&amp;border=0x666666&amp;
           loader=0x9FFFB8&amp;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."&amp;bg=0xf8f8f8&amp;leftbg=0xeeeeee&amp;lefticon=0x666666&amp;rightbg=0xcccccc&amp;
           rightbghover=0x999999&amp;righticon=0x666666&amp;righticonhover=0xffffff&amp;text=0x666666&amp;slider=0x666666&amp;
           track=0xFFFFFF&amp;border=0x666666&amp;
           loader=0x9FFFB8&amp;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."&amp;bg=0xf8f8f8&amp;leftbg=0xeeeeee&amp;lefticon=0x666666&amp;rightbg=0xcccccc&amp;";
           $player    .= "rightbghover=0x999999&amp;righticon=0x666666&amp;righticonhover=0xffffff&amp;text=0x666666&amp;slider=0x666666&amp;";
           $player    .="track=0xFFFFFF&amp;border=0x666666&amp;";
           $player    .="loader=0x9FFFB8&amp;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
      
    
}      
}
?>
Reply
#29
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.
Reply
#30
(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
PHP Code:
$ap_playerID 
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) {

                 
$fnameisbasename($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."&amp;bg=0xf8f8f8&amp;leftbg=0xeeeeee&amp;lefticon=0x666666&amp;rightbg=0xcccccc&amp;
           rightbghover=0x999999&amp;righticon=0x666666&amp;righticonhover=0xffffff&amp;text=0x666666&amp;slider=0x666666&amp;
           track=0xFFFFFF&amp;border=0x666666&amp;
           loader=0x9FFFB8&amp;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."&amp;bg=0xf8f8f8&amp;leftbg=0xeeeeee&amp;lefticon=0x666666&amp;rightbg=0xcccccc&amp;
           rightbghover=0x999999&amp;righticon=0x666666&amp;righticonhover=0xffffff&amp;text=0x666666&amp;slider=0x666666&amp;
           track=0xFFFFFF&amp;border=0x666666&amp;
           loader=0x9FFFB8&amp;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."&amp;bg=0xf8f8f8&amp;leftbg=0xeeeeee&amp;lefticon=0x666666&amp;rightbg=0xcccccc&amp;";
           $player    .= "rightbghover=0x999999&amp;righticon=0x666666&amp;righticonhover=0xffffff&amp;text=0x666666&amp;slider=0x666666&amp;";
           $player    .="track=0xFFFFFF&amp;border=0x666666&amp;";
           $player    .="loader=0x9FFFB8&amp;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!
Reply
#31
It looks like this plugin has a conflict with i18N Gallery. When enabled fancybox doesn't work on i18n Gallery thumbs
Reply
#32
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
Reply




Users browsing this thread: 1 Guest(s)