forum.coppermine-gallery.net

Support => Older/other versions => cpg1.3.x Support => Topic started by: jpicheral on May 21, 2004, 07:58:17 pm

Title: link to video file?
Post by: jpicheral on May 21, 2004, 07:58:17 pm
I don't know if it is the right forum but I can't post in right one...
I 've installed the vid mod (and also tested the v3.0) in order to insert video file in my gallery... but I've some problems with  the plugins to view it... but actually what I would like is only a link (and not the plugin) to allow visitors to dowload the video.
Thank you in advance.
Josť
Title: Re: link to video file?
Post by: Andre on August 15, 2004, 09:30:32 pm
this is probably as little bit late, but I managed to do this on my site. its quite a simple little hack...
open displayimage.php
find this code:
Code: [Select]
    } else {
            $pic_html = "<object {$image_size['whole']}><param name=\"autostart\" value=\"true\"><param name=\"src\" value=\"". $picture_url . "\"><embed {$image_size['whole']} src=\"". $picture_url . "\" autostart=\"true\"></embed></object><br />\n";
add this code between the last <br /> and the \n";
Code: [Select]
<a href=\"{$picture_url}\">Click to Download {$pic_title}</a><br />
That will keep the plug-in box, but add a link below it.. you could totally replace the original $pic_html with just the last snippet of code and that would eliminate the plug-in spot and just display a link.
Title: Re: link to video file?
Post by: Andre on August 15, 2004, 09:32:29 pm
I just realized, I did this in 1.3, not 1.2...