Create Intermediate but display Full Image? Create Intermediate but display Full Image?
 

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

Create Intermediate but display Full Image?

Started by bitcloud, April 13, 2007, 02:52:09 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bitcloud

Hi,

I'm wanting to have the intermediate image created (to use as a larger thumbnails in other peoples forums etc) but i don't want to have my coppermine gallery display this intermediate image. - IE I want the gallery to display the full image just as it does when "create intermediate images" is turned off, but i want the intermediate images created and just sitting on the server so i can display these on other sites which have fixed width layouts.

This seems like it should be really easy to do. can anyone point me in the right direction?

Cheers
Lachlan

bitcloud

ok, I hate giving coding advice because i'm very messy, but in your themes.php (if the code doesn't exist copy it into your themes.php from themes.inc.php)

find:

$picture_url = get_pic_url($CURRENT_PIC_DATA, 'normal');

replace with:

// $picture_url = get_pic_url($CURRENT_PIC_DATA, 'normal');
$picture_url = get_pic_url($CURRENT_PIC_DATA, 'fullsize');


Then you can still use the intermediate pics without any trouble, but it will always display the full size images.       

Joachim Müller

Thanks for returning and resolving your thread.