We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30585
    • 833 Posts
    Hi guys, I’ve just finished creating a podcast blog as suggested by this excellent tutorial:
    http://modxcms.com/forums/index.php/topic,11108.0.html

    My issue is that the mp3 player isn’t loading and I’m getting the raw url which allows me to download the file and gives me the standard "flash not detected" error.

    I’m using the latest (v5) player by http://www.jeroenwijering.com/?item=Flash_Video_Player and the player’s name has changed to player.swf and I updated it in the snippet code as well.

    Someone said something about adding the ufo.js script, which wasn’t supplied with the player. I have to the swfobject script. instead. How should I add it?

    Here’s my snippet:
    <?php
    $output='';
     
    $tvValue=$modx->getTemplateVarOutput('Audio',$modx->documentIdentifier);
     
    if($tvValue['Audio']!='') $output.='<p id="player2"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p><p><a href="'.$tvValue['Audio'].'">Download File NOW!</a></p><script type="text/javascript">
    	var FU = { 	movie:"/assets/flash/player-viral.swf",width:"250",height:"20",majorversion:"7",build:"0",wmode:"transparent",
    				flashvars:"file='.$tvValue['Audio'].'&repeat=False&showdigits=false&displayheight=0&lightcolor=0xb22450&backcolor=0x990000&frontcolor=0xFFFFFF&autoscroll=true" };
    	UFO.create(	FU, "player2");
    </script>';
     
    return $output;
    ?>


    Any help would be appreciated
      A MODx Fanatic
      • 4310
      • 2,310 Posts
      the player’s name has changed to player.swf
      /assets/flash/player-viral.swf

      huh
        • 30585
        • 833 Posts
        Sorry, the name changed to player-viral.swf
          A MODx Fanatic
          • 4310
          • 2,310 Posts
          Have you tried referencing the mp3 & swf files absolutely?
          What shows up in the html?
          Is there a link?
            • 30585
            • 833 Posts
            Thanks a lot for your hel man. The file is being developped on a local server and I wish I could show it to you.

            Here’s the html that should interest you:
            <!-- Start last sermon-->  
             		     <div class="roundbox_small_b"> 
                             <div class="inner"> 
                               <div class="heading_right"><h3>Last sermon</h3></div> 
                               <strong><a href="#">Harvest Thanksgiving</a></strong> 
                               <p>Sunday, November 22<sup>nd</sup>, 2009</p> 
                               <p>In the name of the God we seek with our heart and mind. Amen
            Well we have come to that time of year in Canada once again. What does thanksgiving make us think of?</p> 
                               [color=blue][b]<div><p id="player2"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p><p><a href="assets/files/podcast/02 Polio.wma">Download File NOW!</a></p><script type="text/javascript"> 
            	var FU = { 	movie:"/assets/flash/player-viral.swf",width:"250",height:"20",majorversion:"7",build:"0",wmode:"transparent",
            				flashvars:"file=assets/files/podcast/02 Polio.wma&repeat=False&showdigits=false&displayheight=0&lightcolor=0xb22450&backcolor=0x990000&frontcolor=0xFFFFFF&autoscroll=true" };
            	UFO.create(	FU, "player2");
            </script></div> [/b][/color]
            				   <p><a href="#">Read more</a></p> 
                             </div> 
                         </div> 
                         <!-- End last sermon  --> 


            These are the files that come with the new player package:

            player-viral.swf
            preview.jpg
            readme.html
            swfobject.js
            video.flv
            yt.swf

              A MODx Fanatic