Adding a video link Adding a video link
 

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]

Main Menu

Adding a video link

Started by goodnight2, July 20, 2006, 09:02:23 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

goodnight2

My Linux clients cannot use the ActiveX controls embedded in the video links.  How can I display a URL link that allows download of the video?  Ideally, it would be the 'Filename: Name' link that points to the actual video.

TIA

Sami

‍I don't answer to PM with support question
Please post your issue to related board

Nibbler

Coppermine doesn't embed ActiveX. Videos can play on linux if you have an appropriate browser plugin installed.

Joachim Müller

As a proof, try browsing your gallery with Firefox or Opera on a Windows client: those two browsers don't support ActiveX, yet they show the embedded video.

goodnight2

Quote from: GauGau on July 20, 2006, 09:54:49 PM
As a proof, try browsing your gallery with Firefox or Opera on a Windows client: those two browsers don't support ActiveX, yet they show the embedded video.

True, but the underlying operating system does understand ActiveX references, which is why it works with Firefox on Windows without an additional plugin.

goodnight2

Thanks for the link.  That did help.  I also found this link that explained how to make the filename a link:
http://forum.coppermine-gallery.net/index.php?topic=6464.20

When I make these changes, I can download the video, but the filename is always download.php.  Is there any way in PHP, presumably in download.php, to tell it to pass the filename to the client?

Thanks for helping a n00b.

Joachim Müller

Quote from: goodnight2 on July 21, 2006, 04:49:06 AM
True, but the underlying operating system does understand ActiveX references, which is why it works with Firefox on Windows without an additional plugin.
That's just plain wrong. Don't draw false conclusions. As Nibbler already told you: Coppermine doesn't use ActiveX controls. Viewing videos embedded in Coppermine pages displays just fine for me on my Linux test box (Ubuntu). We know our app better - a major part of the Coppermine dev team doesn't even have Windows available - they develop using Linux exclusively. I guess you tried viewing proprietary Windows video formats like .wmv. Think again.

webmalone

This is something I've been looking to do as well and finally pieced together several suggestions from the forum.  The only problem I have with this solution is that the link is down stairs in the Information area, and not prominent above my Intermediate pic.  I'm hoping someone can point me in the right direction on how to move this link up into the toolbar in 1.4.8.  Otherwise this is working great and has made my family and friends happy.

In displayimage.php

1)

after line 170:

$info[$lang_picinfo['URL']] = '<a href="' . $CONFIG["ecards_more_pic_target"] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/') .basename($_SERVER['PHP_SELF']) . "?pos=-$CURRENT_PIC_DATA[pid]" . '" >' . $CONFIG["ecards_more_pic_target"] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/') . basename($_SERVER['PHP_SELF']) . "?pos=-$CURRENT_PIC_DATA[pid]" . '</a>';

Added:

$info[$lang_picinfo['Download']] = '<a href="' . $CONFIG["ecards_more_pic_target"] . $path_to_pic . '" target="blank">To Download File ... Right Click this Link -> then select "Save Target As" (IE) or "Save Link As" (Firefox)</a>';


2)

lang/english.php:  I added 'Download' to this array:

$lang_picinfo = array(

  'URL' => 'URL for Sharing', //cpg1.4
  'Download' => 'Downloading',


Most of my users are family, so I have to spell it out for them, as you can see above ... easy to change though.

Goodluck,
Mateo

goodnight2

That worked flawlessly.  Thanks for the tip!