Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Create Intermediate but display Full Image?  (Read 2065 times)

0 Members and 1 Guest are viewing this topic.

bitcloud

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 117
Create Intermediate but display Full Image?
« on: April 13, 2007, 02:52:09 am »

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
« Last Edit: April 13, 2007, 07:33:09 am by GauGau »
Logged

bitcloud

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 117
Re: Create Intermediate but display Full Image?
« Reply #1 on: April 13, 2007, 03:29:19 am »

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:

Code: [Select]
$picture_url = get_pic_url($CURRENT_PIC_DATA, 'normal');
replace with:

Code: [Select]
// $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.       
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Create Intermediate but display Full Image?
« Reply #2 on: April 13, 2007, 07:33:33 am »

Thanks for returning and resolving your thread.
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 15 queries.