forum.coppermine-gallery.net
Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: esugrue on July 02, 2004, 03:03:18 am
-
Hi!
1) With video galleries, is it possible on the displayimage.php page not to attempt to play the video but to have a `Click here to download this video' link. Some of my video clips are large and I want members to download the clip for offline playback!
Thanks
Ernie
-
You can modify it yourself by editting displayimage.php and changing:
$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";
to
$pic_html = "<object {$image_size['whole']}><param name=\"autostart\" value=\"false\"><param name=\"src\" value=\"". $picture_url . "\"><embed {$image_size['whole']} src=\"". $picture_url . "\" autostart=\"false\"></embed></object><br />\n".
"<p><a href=\"download.php?pid={$CURRENT_PIC_DATA['pid']}\">Click here to download</a></p>";
Copy the code at the bottom of this thread as a new file "download.php" in your coppermine folder:
http://forum.coppermine-gallery.net/index.php?topic=6464.0
-omni
-
Hi Omni:
Thanks for the quick response. I did as you said and it works great!
Thanks
-
http://forum.coppermine-gallery.net/index.php?topic=7535.0
[download code]
is there a way to have an option if the files in the album will have a download link
for example I have 2 albums .. pictures and videos.
I want the videos to have the download link but not the pictures album
thanks
-
merged your question with the thread you're refering to. Next time, please reply if you actually have a follow-up question on a thread, instead of starting a new thread.
Why don't you just try the code Omni posted? You will find out that it only shows the download link beneath multimedia files, but not beneath regular pics?
GauGau
-
my pictures are converted to swf
-
means what?
Joachim
-
Another thing for video-files: It would be nice when the displayimage.php would not show the videowindow (WMP) but a preview screenshot of the video - and clicking on the screenshot would start the "save to..." - , so that for video you would need:
- video.avi
- video.jpg
- thumb_video.jpg
I've noticed that thumb preview images are shown correctly :)
-
The image libraries "GD" and "ImageMagic" (and the PHP functions that are used with them) that are being used by coppermine to create intermediate sized and thumbnails for pics don't support the movie formats, so you can't build movie thumbnails automatically with them. However, you can upload custom thumbnails that represent the movie by creating them on your client and uploading them separately. This is being covered in the docs.
Joachim
-
I have done that already for thumbnails (created thumb on my client and uploaded it). However, I would like to see the displayimage.php to show a "video.jpg" for a "video.avi" (or .mpg) instead of the WMP screen.
In other words: same as with pictures, only with a downloadlink for the actual videofile. Or something like that, and NOT the Windows Media Player trying to play the video.
:)
-
then I propose you just upload a jpeg representation of the video in the first place (adding the jpeg the usual way to the coppermine database), upload the video to some folder outside of coppermine and add the video download link in the file description, using bbcode.
Joachim
-
That's a good solution :), however, my gallery doens't seem to accept urls in file description. Is that perhaps some option I've missed?
http://www.stefijn.com/gallery/displayimage.php?album=1&pos=0
-
It doesn't work with
[url=http://Jouwsite.nl/]Url Text[/url]
in the description field?
-
It doesn't work with
[url=http://Jouwsite.nl/]Url Text[/url]
in the description field?
No, see the link I gave
Btw, its also not possible to enter URL's in comments..they turn up as: (...)
-
It doesn't work with
[url=http://Jouwsite.nl/]Url Text[/url]
in the description field?
So? Is this a "glitch" in CM? Can I enable it somehow?
-
I don't get the point, this works fine for me - see the demo (http://coppermine.sourceforge.net/demo/index.php) (take a look at the link in the description of the "vegetables" album) for album descriptions. A link in the pic description can be found here: http://coppermine.sourceforge.net/demo/displayimage.php?pos=-16
Joachim
-
The point is...is doens't work on my gallery (latest version) :-\\
see http://www.stefijn.com/gallery/displayimage.php?album=10&pos=2
This URL
google (http://www.google.com/) (which obviously works here)
Comes out only as google[/url ]
It works fine in the albumdescription btw. (http://www.google.com/)
-
I get
Coppermine critical error:
Unable to connect to database !
MySQL said: Can't connect to local MySQL server through socket '/var/tmp/mysql.sock' (11)
on your page...
Joachim
-
Indeed...that wasn't the case yesterday ??? I'll get back to this when it's solved :-[
-
Indeed...that wasn't the case yesterday ??? I'll get back to this when it's solved :-[
It's up again
http://www.stefijn.com/gallery/displayimage.php?album=1&pos=0
Seems it DOES work in picture description. I tried to put it in the picture TITLE
-
I wonder whether Coppermine can be modified to have support for more than one video format (Real Video, Windows Media, MPEG etc.) for each video title.
I want to be able to upload:
thumb_video.jpg
video.ram
video.wmv (the same video title in two formats)
and to display them using the same thumbnail icon. Under the thumbnail icon, there should be little tiny icons which are automatically displayed to show the kind media files available for viewing.
I understand that we can use BBcode to write external link to the corresponding media files, but it wouldn't be practical when users need to hardcode lots of links, everytime new files are uploaded.
-
such a hack would require fundamental recoding of coppermine in many places, as the current relation thumbnail <-> intermediate <-> full-sized file would have to be broken up / modified. If you really need this, you'll have a lot of coding to do - way too much effort for a "nice to have" feature, if you ask me.
Joachim
-
Thanks for the code; it was exactly what I was looking for.
I have one additional "wish" which is sort of related to the "video download"-code.
In my online album some visitors want to share Excel- and Word-files.
After implementing the code above I expected those files to be affected as well.
However, they still appear only as an "XLS"- or "DOC"-icon and there is no "click here to download"-line.
I've been looking into the code and it looks as if the "document"-variable is the one that determines if a picture
is shown or a file is downloaded. Am I correct? Does anybody have a suggestion what to do to enable
non-video/non-picture files to be downloaded?
Thanks in advance,
Cameo
-
Thanks for your insight Dear Joachim. I would appreciate if you would consider this as a feature addition request. I'm sorry, I must have been dreaming, but I'm afraid the following feature has become a "must-have" feature for some people.
- Support for download/play different kinds of media types.
For example: everytime the same video titles in different formats are uploaded, Coppermine shows only one thumbnail for all video files:
videotitle.ram
videotitle.wmv
videotitle.mov
All those files share the same thumbnail: thumb_videotitle.jpg
There should also an option at the control panel, whether to "play" or to "download" files. If the "play" option is checked, beneath the thumbnail there should be corresponding text/buttons/icons for the media types available ("Play Real Video," "Play Windows Media," "Play Quicktime"). Consequently, if the "download" option is checked, the corresponding "Download Real Video", "Download QuickTime" text/icons should appear beneath the thumbnail.
This feature should also works with audio files in different formats. For regular pictures which only have full-size JPG/GIF/PNG pictures, (as an option) "download full-size image" should appear beneath the thumbnails.
For users who use Coppermine only to display pictures and need no multimedia capability, this feature can be turned off from the control panel.
-
For example: everytime the same video titles in different formats are uploaded, Coppermine shows only one thumbnail for all video files
1.3.2 comes with a thumbnail for each video type. If there isn't a custom thumbnail associated with the video, Coppermine looks for and displays a thumbnail for the file type (thumb_wmv.jpg for wmv, thumb_avi.jpg for avi, etc). The same goes for audio files.
However, since I've never named a video the same thing (with a different filetype) I can't verify the issue you've posted. I'll have to take a closer look.
-
Thanks for your quick response Dear kegobeer.
1.3.2 comes with a thumbnail for each video type. If there isn't a custom thumbnail associated with the video, Coppermine looks for and displays a thumbnail for the file type (thumb_wmv.jpg for wmv, thumb_avi.jpg for avi, etc).
If one album contains more than 10 video clips and at least there are 2 different kinds of video format for each title, then you will end up with too many thumbnails. It doesn't look good, and confusing for users.
Maybe I should rephrase my feature request to become: I want Coppermine to show only one custom thumbnail for different media files of the same video title.
Dear kegobeer, can you help?
-
If one album contains more than 10 video clips and at least there are 2 different kinds of video format for each title, then you will end up with too many thumbnails. It doesn't look good, and confusing for users.
Huh? Ten files = ten thumbnails, that's the way it works. Do you somehow get more than one thumbnail for each of your files? I don't know how anyone would be confused by a thumbnail with a title underneath it. Perhaps you could post a link to your gallery that has videos in it so I can see what you're talking about.
As for the feature request - I don't see that happening. That isn't a feature request, it's more like changing the way files are currently handled to the way you want it, which wouldn't benefit the majority of users. We have to balance a request with the impact it would have on the userbase. In this case, I don't see any benefits.
-
Hello.
I have added the "video download link" mod to my CPG and everytime anyone attempts to download any of the video files, it stops at 1.90mb, no matter how large the file is. What can be done to fix this issue?
All the videos are encoded as WMV v9. The specs can all be seen in the gallery.
My gallery is located at:
Site: www.graverhead.com/gallery
User: guest
Pass: dave
Thanks in advance!
-
what mod are you refering to? I suspect you just run into a timeout.
-
I followed the suggestions in this post:
http://forum.coppermine-gallery.net/index.php?topic=9367.0
Whenever anyone goes to download any of the video files from my gallery, it just stops at 1.90mb or 1.91mb. It never gets any further than that.
What do you suspect is going on?
If it's just timing out, why does it timeout for everyone?
What can be done to fix it?
Hopefully this is something simple!
-
merged you thread with the one you refered to.
-
Does anyone have any suggestions or am I just SOL?
-
Use the solution discussed in http://forum.coppermine-gallery.net/index.php?topic=19425.msg90404#msg90404