Jump to content

download instead of play


mimosveta

Recommended Posts

Hi  there everyone,

 

I'm utterly new to PHP, which you will probably  guess by my question, as I believe it's one of the basics.

 

I'm using component for joomla which allows me to offer visitors of my website to listen to the music. I want to allow them to download it as well.

 

This would probably be easier done if I would see real URL of the file, but I don't since the same code works for number of different songs.

 

I've changed the code, and now it has the looks that I need, but I need help making it do what it says.

 

Please help.

 

Here is the code (the one with looks:)

 

 

<table id='table_rad' border="0">

      <tr>

        <td width="40" rowspan="3" valign="middle" id="img_rad"><a href="<?php echo $row->url;?>"><img align="middle" src="<?php echo $radio_img.$row->image; ?>" /></a></td>

        <td colspan="3" align="left" valign="top"><div id="text_rad"><?php echo $row->name;?></div></td>

        </tr>

      <tr>

        <td align="left" valign="top">

          <div id="tune_rad"><a href='#' onclick="MM_openBrWindow('<?php echo $linkTarget;?>','','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=200,height=130')"><img src="components/com_joomradio/images/play.gif" width="25" height="25" alt="sviraj" /></div><div id="tune_text"><?php echo JOO_RADTUNE;?></div></a><br />        </td>

        <td width="115" align="left" valign="top">

            <div id="tune_rad"><a href='#' onclick="MM_openBrWindow('<?php echo $linkTarget;?>','','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=<?php echo $radio_width;?>,height=<?php echo $radio_height;?>')"><img src="components/com_joomradio/images/dld.gif" width="25" height="25" alt="dld" /></div><div id="tune_text">Skidaj!</div>

          </a><br />            </td>

        <td width="66" align="left" valign="top"> </td>

      </tr>

      <tr>

        <td colspan="3" align="left" valign="top"><div id="reg_rad">

        <?php echo JOO_RADREGION;?><?php echo $row->region;?>        </div></td>

        </tr>

    </table>

 

 

Thanks for help.

Link to comment
https://forums.phpfreaks.com/topic/69811-download-instead-of-play/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.