Look around line 217 in jplayer.playlist.js. There is the _createList Item() method. This is where you can change the HTML that the JS creates for the playlist.
The other thing, downloading the mp3 with a left click, is a pain due to the browsers trying to be real handy and play the mp3 for you. This is because of the mime type. If the mime type is correct, which is should be, the mp3 will play in browser, if fudged as the ZIP mime type, then it gives the download prompt of the browser.
Maybe in the past I suggested using the PHP smartReadFile() function. But I think that is a bit much to just get the mime type right. Plus that focuses more on serving the file correctly.
The way to do it is probably best through server options. On Apache, the .htaccess file can be used to change the MIME type and to rewrite urls... You need a difference in the 2 urls for the same mp3 file. They both serve the same file, but 1 of them has the wrong mime type.
On Saturday, 21 July 2012 04:05:02 UTC+1, Dan.S wrote:
Hello,
I know a few people asked this question before, but I could not solve my problem yet. So I decided to ask this question again. I have a mp3 music list that all of them should have download button. I added the free:true in the play list but as you know it only works when the user does right click otherwise it only plays them music.
I know I need a php file to do that, but do not know what should I have in the php file and how to link it to that 'mp3' button which appears in the player. Furthermore I am interested to know how can I change that 'mp3' button to a real button and something look like a button. I know CSS, just need to know where to edit it.
I uploaded my player on my host so you can see the work.
http://mersadesign.com/demo/player/demo-02-media-solution-flash-html-pf.htm
Thanks in advance.