Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: [Solved]: Mp3 Download Plugin  (Read 5497 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.025 seconds with 19 queries.