Results 1 to 9 of 9
  1. #1
    Join Date
    May 2009
    Posts
    5
    Plugin Contributions
    0

    red flag Make .mp3 songs downloadable at left click like .zip not right click and SAVE LINK AS

    Hi
    I want to make my products(.mp3 songs) to be downloadable just like it is with the .zip files... So you click on them and a popup shows for SAVE... Now the clients have to do a right-click on the song and then select SAVE LINK AS... Could anyone help me with this... I'm new to zen cart and this is urgent

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    19,276
    Plugin Contributions
    3

    Default Re: Make .mp3 songs downloadable at left click like .zip not right click and SAVE LIN

    You'll probably have to make them .zip files. If your visitor/customer has a program set to open .mp3's, they'll need to right-click to save them.

  3. #3
    Join Date
    May 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: Make .mp3 songs downloadable at left click like .zip not right click and SAVE LIN

    So there is no way that I can make a mp3 song to be downloaded on a left click like a zip file... Is there any part of the code that can be changed to make this feature possible???

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    19,276
    Plugin Contributions
    3

    Default Re: Make .mp3 songs downloadable at left click like .zip not right click and SAVE LIN

    Far as I know, it's not a Zencart thing. If a particular visitor, including, I guess, you, has the .mp3 extension associated with a specific program, that program will open it rather than download it on a left-click. There seem to be scripts that will interfere with this, but, of course, they won't work with visitors who have scripting disabled. Google 'force file download'.

  5. #5
    Join Date
    Jan 2004
    Posts
    59,773
    Blog Entries
    4
    Plugin Contributions
    133

    Default Re: Make .mp3 songs downloadable at left click like .zip not right click and SAVE LIN

    Or try these .htaccess additions: http://www.zen-cart.com/forum/showpo...93&postcount=4
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    May 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: Make .mp3 songs downloadable at left click like .zip not right click and SAVE LIN

    I'm not sure about this thread you gave me a link to... Are you trying to say that if I add those lines in the .htaccess document when a user clicks on a song it will start downloading automatically as it is with the .zip files(so he left-clicks on a song and a window pops up asking where to save the song)???

  7. #7
    Join Date
    Jan 2004
    Posts
    59,773
    Blog Entries
    4
    Plugin Contributions
    133

    Default Re: Make .mp3 songs downloadable at left click like .zip not right click and SAVE LIN

    Doing so *might* help. It depends on the customer's browser configuration and your hosting server configuration, and a number of factors.
    Put it in a .htaccess file in your /pub/ folder if you're serving downloads via redirect, or in your /download/ folder if you're not serving by redirect.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    May 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: Make .mp3 songs downloadable at left click like .zip not right click and SAVE LIN

    Quote Originally Posted by DrByte View Post
    Doing so *might* help. It depends on the customer's browser configuration and your hosting server configuration, and a number of factors.
    Put it in a .htaccess file in your /pub/ folder if you're serving downloads via redirect, or in your /download/ folder if you're not serving by redirect.
    I allready did that and all i get is when the user clicks on the download button he is redirected to another screen where it is suposed to listen the song(browser's stuff) and there it actually appears a pop up window for SAVE AS but it only saves a 0kb .mp3 file... Any other ideas? Cos it's really unintuitive for the user to right click and go to SAVE FILE AS on a button that says DOWNLOAD on it...

  9. #9
    Join Date
    May 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: Make .mp3 songs downloadable at left click like .zip not right click and SAVE LIN

    Quote Originally Posted by yarilo111 View Post
    I allready did that and all i get is when the user clicks on the download button he is redirected to another screen where it is suposed to listen the song(browser's stuff) and there it actually appears a pop up window for SAVE AS but it only saves a 0kb .mp3 file... Any other ideas? Cos it's really unintuitive for the user to right click and go to SAVE FILE AS on a button that says DOWNLOAD on it...
    YEAHHHHHHH!!!!!!!!!!... SUCCESS... Don't count the previous post I did because there was a stupid mistake I did... The file that I was trying to download using a .htaccess modification was actually 0kb(corrupted file)... After that I tried with another song and it worked... So... the solution for me was to use a force-stream in the .htaccess file from the directory that I am streaming from. This is tested for Firefox. IE and Opera on Windows and Firefox and Opera on Ubuntu and it's working...

 

 

Similar Threads

  1. Script to Disable Right Click Save As Function on Images
    By bsteinagel in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 24 Feb 2009, 11:04 PM
  2. 1-Click purchasing of downloadable goods?
    By EricFrey in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 14 Jan 2009, 05:49 AM
  3. Click preview and images dont save!
    By sinfullyyours in forum General Questions
    Replies: 4
    Last Post: 13 Aug 2006, 05:32 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •