Linking button to Audio Player.

Discussion in 'PHP' started by tekboi, Apr 9, 2009.

  1. #1
    Hi,

    I'm going to start by saying my php knowledge is very limited.


    I have installed a shopping cart script entitled 1-2-3 music store. The store has a mp3 preview functionality built in. The problem with this "preview" function is that it doesn't link to an online mp3 player of any sort, but instead it downloads an ".m3u" file. So, when users hit the button, it just downloads the .m3u file for them to play. I took a look at the source code for the page and found this code for the audio preview function:

     <td width=28 bgcolor="#4F4F4F">
                  <!-- Start Link to Sample Sound -->
                  {if $Song.demo_file_name neq ''}
                    <a type="audio/x-ms-wma" href="public/demos/{$Song.demo_file_name|streaming_url}">
                      <img src="public/shop/graphic/playsound.png" width=32 height=32 border=0 BORDERCOLOR="#333333">
                    </a>
                  {/if} 
                  <!-- End Link to Sample Sound -->
                </td>
    
    Code (markup):
    Inside the table, It looks as if the code is there for it to "stream" the music. But as I stated earlier it doesn't. It just downloads the .m3u file. How can I link the button so that it playes on the web.

    btw.. I'm going to install THIS player in hopes that I can use it as the audio preview player.

    http://www.1pixelout.net/code/audio-player-wordpress-plugin/


    BTW.. here is the link to the page if anyone needs to check it out in order to further assist.

    http://www.bignotch.com/process.php...umDetailsProcess-Start&CategoryID=3&AlbumID=1
     
    tekboi, Apr 9, 2009 IP
  2. thr3146

    thr3146 Active Member

    Messages:
    182
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #2
    Hey if you pm me I think I see your problem.
     
    thr3146, Apr 9, 2009 IP