Stop streaming of avi files, plus, not using display page for large images Stop streaming of avi files, plus, not using display page for large images
 

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

Main Menu

Stop streaming of avi files, plus, not using display page for large images

Started by adam.dullenty, June 02, 2005, 08:19:12 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

adam.dullenty

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.

Nibbler

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.

adam.dullenty

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!