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: [Solved]: Disabling large images  (Read 4077 times)

0 Members and 1 Guest are viewing this topic.

davebursey

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
[Solved]: Disabling large images
« on: May 23, 2008, 11:20:44 am »

Hi folks,
Im sure ive seen this somewhere, infact im sure ive done i before, however i cant seem to locate either now.
I would like to stop showing the large images, from clicking on the intermediate image.

Does anyone know how to do this?

« Last Edit: May 23, 2008, 05:49:19 pm by Joachim Müller »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Disabling large images
« Reply #1 on: May 23, 2008, 01:04:29 pm »

Set the size for intermediates and full-size pics to the same resolution, disable the creation of intermediates and set your gallery to resize all uploads.
Logged

davebursey

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: Disabling large images
« Reply #2 on: May 23, 2008, 03:10:43 pm »

Resolution? is this an option? i cant see it!!?
Logged

davebursey

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: Disabling large images
« Reply #3 on: May 23, 2008, 03:17:25 pm »

Sorry, ive just re-read my first post.

Im not looking to remove the large images  - simply to remove the ability to click on the intermediate image in displayimage.php
Logged

davebursey

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: Disabling large images
« Reply #4 on: May 23, 2008, 03:43:34 pm »

Oh, ive figured this out now. Sorry!!

For others - add the function theme_html_picture() to your theme, if not already there. then comment out the line that begins $pic_html = "<a href=\"javascript:;\"onclick.....

this only removes the link, so if someone knows the url, they can still get the full image. But thats just what i wanted to achieve!!

Logged

Hot Rides

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 108
  • I am
    • Hot Rides Show & Cruise
Re: Disabling large images
« Reply #5 on: August 04, 2008, 09:23:43 pm »

Oh, ive figured this out now. Sorry!!

For others - add the function theme_html_picture() to your theme, if not already there. then comment out the line that begins $pic_html = "<a href=\"javascript:;\"onclick.....

this only removes the link, so if someone knows the url, they can still get the full image. But thats just what i wanted to achieve!!


Thank god for searches, found what I was looking for! But how do get rid of the alt tag "click to view fullsize" when you mouse over the image?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: [Solved]: Disabling large images
« Reply #6 on: August 05, 2008, 07:50:17 am »

Take a look at the section mentioned above that you're supposed to edit (the function theme_html_picture() in themes/yourtheme/theme.php): it doesn't only compose the link to the full-size, but adds the quick info as well that you're trying to remove just two lines below the line you're supposed to edit. Look for
Code: [Select]
alt=\"{$lang_display_image_php['view_fs']}\"and remove that section.
Logged

Hot Rides

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 108
  • I am
    • Hot Rides Show & Cruise
Re: [Solved]: Disabling large images
« Reply #7 on: August 05, 2008, 06:37:01 pm »

thanks man, I can't beleive I missed that
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 15 queries.