how to change the download link???

0
Hi germi,

I want to change the downloading style of my website. whenever someone clicks on a download link it load's this kind of link {http://www.farsihiphop.com/music.raw?view=file&id=1093} for example.
how can I change it to a direct link???
so then anyone can download it with a download manager and vith resume compability in the download manager.
Responses (3)
  • Accepted Answer

    Saturday, May 28 2011, 09:58 AM - #Permalink
    0
    If you want a direct download link like www.yoursite.com/songs/song1.mp3, you'll need to make a hard code change (back up the file before making changes, though).

    You'll need to go to com_muscol/helpers/helper.php

    Approximately line 363, find

    $file_link = JRoute::_( 'index.php?option=com_muscol&view=file&format=raw&id='. $song->id );


    and change it to

    $file_link = JRoute::_( $song->filename );


    This should result in a direct file link in every instance where a download link appears. I just tested this - If this is what you're looking for, it will work.
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, May 28 2011, 09:59 AM - #Permalink
    0
    You'll also want to upload a blank HTML page within the songs folder, to limit the ability to gain access to the entire folder at once.
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, May 28 2011, 09:59 AM - #Permalink
    0
    Apologies... refreshed my screen to get rid of an error, and it re-posted a few times.
    The reply is currently minimized Show
Your Reply