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 asked this question in another thread, but I guess everybody’s busy. I’d really appreciate some help here Cuz I’m still stuck.

    Here’s the deal:

    I’m creating a podcast blog as suggested here:
    http://modxcms.com/forums/index.php/topic,11108.0.html

    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-viral.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 was advised to use the swfobject script instead but I don’t know how.

    These are the files that came with the player:

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

    And my HTML code:
    <!-- 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  -->


    And my snippet code:
    <?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 greatly appreciated
      A MODx Fanatic