[Solved]: Mp3 Download Plugin [Solved]: Mp3 Download Plugin
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

[Solved]: Mp3 Download Plugin

Started by gouryella12, September 02, 2008, 01:47:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gouryella12

Hello my Friends,

I have a question, i'm looking for a mp3 download plugin i already have downloaded a Movie Download Link Plugin v1.0     
from Thomas Lange  which i found using the search function on this forum. The plug-in displays a download link below a movie in intermediate view, and i'm searching for the same function with mp3's now i can only listen the mp3's in a player but i also want a download link function.

Thanks for advice tips or help!

Nibbler

Simplest way would be to modify that plugin to work for audio files also. Edit codebase.php


if ($mime_content['content']=='movie') {
$download_link_data = '<a href="index.php?file=movie_download/down&link=' .$fullsize_url.'">Download movie</a>';
}


and change to


if ($mime_content['content']=='movie' || $mime_content['content']=='audio') {
$download_link_data = '<a href="index.php?file=movie_download/down&link=' .$fullsize_url.'">Download</a>';
}


Also, see my comment at http://forum.coppermine-gallery.net/index.php/topic,41930.msg267466.html#msg267466

gouryella12

thank you for the reply and solution Nibbler it works great thanks in advance!!  ;D