1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. If you want premium products then purchase our VIP or SVIP plans
  3. Dont forget read our rules HERE Also anyone caught Leeching this content or Scamming will be banned on numerous networks.
    Dismiss Notice
  4. Dont forget we do not allow Multiple Accounts, so all of your accounts as well as your IP will be banned.
    Dismiss Notice
  5. Tired of Download Limits ? UPGRADE Today!
    Dismiss Notice

FREE MP3 Attachment Player

Discussion in 'Xenforo Template Mods & Extras' started by HAWK, Mar 21, 2016.

  1. HAWK

    HAWK Administrator Staff Member ADMIN

    Likes Received:
    Trophy Points:
    in attached_files template find this line:
    <dl><dt>{xen:phrase file_size}:</dt> <dd>{xen:number $attachment.file_size, size}</dd></dl> 
    ...and above add this:

    <xen:if is="{$attachment.extension} == 'mp3' ">
    <embed type="application/x-shockwave-flash" src="audio-player.swf?audioUrl={xen:link attachments, $attachment}" width="350" height="27" allowscriptaccess="never" quality="best" bgcolor="#ffffff" wmode="window" flashvars="playerMode=embedded">
    in attached_files.css find:
     float: left;
     width: 33%;
    and change width value from 33% to 490px or some other value that you find more suitable

    For this to work you need to get audio-player.swf file from Google. Currently the player is available here: http://www.google.com/reader/ui/3523697345-audio-player.swf

    Of course other flash mp3 players can be used too.

Share This Page

Post thread