direct download link for each song individually
This week's featured product
Store Locator
This cool AJAX application will enhance your website by showing your stores' locations. You can also display an image and a short description so your users know exactly where to find your business.
Become a premium member
Flabell and Themesbell membership provides users with the ability to download any of our components for Adobe Flash and website themes for free, during an entire year.
read more


Subcribe to topic RSS

Products RSS Feed
Follow us on twitter
support@themesbell.com
altweb
on 6/8/11
I'm wondering how to set direct download link for each song individuality? i already inserted the download link in mp3gallery.xml, but when i click noting happened!
corneliu.chi
on 8/8/11
<?php $filename = $_GET['f']; header('Content-disposition: attachment; filename='.basename($filename)); readfile($filename); ?>Just create a php file with this code and use it in the XML file like this:
<buy price="9.99" target="_blank">http://www.yourdomain.com/.../phpFile.php?f=http://www.yourdomain.com/.../Song.mp3</buy>This will redirect the user to download the mp3 file.
on 13/8/11
on 15/8/11
sunsetbs
on 3/12/11
on 5/12/11
It should download the mp3 file, if used correctly. Maybe the path to the mp3 file is not correct.
If you need us to take a look, please buy a support ticket and share a link to your player. We'll find a solution for you. Also, please share the code that you used in the php file.
johnvella
on 5/1/12
the instructions state that if the url attribute is blank or missing, then the buy/download button will not appear. since there is no url attribute in your example, i get no button.
also, can you use relative links? for example, content/songs/file.mp3 like in the
on 10/1/12
On your player the buy XML tag might be different. If you have a "url" attribute set the value for it, just like I did under the "buy" XML tags above.
Yes, you can use relative paths. However, make sure that the path to the PHP file is correct relative to the webpage that uses the player, and the path to the MP3 file (that is given as a parameter to the PHP file) should be relative to the PHP file.
Hope this will solve the issue.