Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: [Solved]: Mp3 Download Plugin  (Read 5548 times)

0 Members and 1 Guest are viewing this topic.

gouryella12

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
[Solved]: Mp3 Download Plugin
« on: September 02, 2008, 01:47:43 pm »

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!
« Last Edit: September 02, 2008, 05:38:30 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: Mp3 Download Plugin
« Reply #1 on: September 02, 2008, 02:28:40 pm »

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

Code: [Select]
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

Code: [Select]
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
Logged

gouryella12

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Mp3 Download Plugin
« Reply #2 on: September 02, 2008, 05:32:09 pm »

thank you for the reply and solution Nibbler it works great thanks in advance!!  ;D
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 20 queries.