coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: davebursey on May 23, 2008, 11:20:44 AM

Title: [Solved]: Disabling large images
Post by: davebursey 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?

Title: Re: Disabling large images
Post by: Joachim Müller 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.
Title: Re: Disabling large images
Post by: davebursey on May 23, 2008, 03:10:43 PM
Resolution? is this an option? i cant see it!!?
Title: Re: Disabling large images
Post by: davebursey 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
Title: Re: Disabling large images
Post by: 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!!

Title: Re: Disabling large images
Post by: Hot Rides on August 04, 2008, 09:23:43 PM
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?
Title: Re: [Solved]: Disabling large images
Post by: Joachim Müller 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 foralt=\"{$lang_display_image_php['view_fs']}\"and remove that section.
Title: Re: [Solved]: Disabling large images
Post by: Hot Rides on August 05, 2008, 06:37:01 PM
thanks man, I can't beleive I missed that