coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: adam.dullenty on June 02, 2005, 08:19:12 PM

Title: Stop streaming of avi files, plus, not using display page for large images
Post by: adam.dullenty on June 02, 2005, 08:19:12 PM
Hello there,

I'd just like to ask two questions, about things I haven't seen mentioned in the documentation - unless, that is, I'm blind. It was 3am after all. Anyway.

Would it be possible to stop coppermine attempting to stream video files to people, and for there to instead just be a link for people to right click>save target as?

Also, would it be possible for... when people click the intermediate image... it to just link directly to the image as opposed to the page which displays the photo? This way people can also go right click>save target as, on the intermediate image.
Title: Re: Stop streaming of avi files, plus, not using display page for large images
Post by: Nibbler on June 02, 2005, 08:34:00 PM
Sure, just find this line in displayimage.php

$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";

and make up your own html.

$pic_html = "<a href=\"$picture_url\">Click here to download</a><br />\n";

Same goes for the second part, find

$pic_html = "<a href=\"javascript:;\" onClick=\"MM_openBrWindow('displayimage.php?pid=$pid&fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=$winsizeX,height=$winsizeY')\">";

and make it into a stright link

$pic_html = '<a href="' . get_pic_url($CURRENT_PIC_DATA, 'fullsize') . '">';

Remember we have a one question per thread policy on this board.
Title: Re: Stop streaming of avi files, plus, not using display page for large images
Post by: adam.dullenty on June 02, 2005, 10:28:02 PM
Ah, sorry, I didn't realise. Well... they were kind of questions with a similar theme.. ;D

Thanks for the help, I'll have a go!