[Solved]: Disabling large images [Solved]: Disabling large images
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

[Solved]: Disabling large images

Started by davebursey, May 23, 2008, 11:20:44 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

davebursey

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?


Joachim Müller

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.

davebursey

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

davebursey

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

davebursey

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!!


Hot Rides

Quote from: davebursey 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!!


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?

Joachim Müller

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 foralt=\"{$lang_display_image_php['view_fs']}\"and remove that section.

Hot Rides

thanks man, I can't beleive I missed that