coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: EGeekBMe on August 02, 2006, 12:11:35 AM

Title: Remove Link On Intermediate Pictures
Post by: EGeekBMe on August 02, 2006, 12:11:35 AM
Hello All.

I would like to remove the link TO the Full Size Picture FROM the intermediate picture.  I typically batch upload all my pictures and then let the app resize them into the intermediate versions.  Then I delete the full size pictures to save the space and ultimately the bandwidth.

My host had CPG 1.2.1 and I was able to comment out the following line in displayimage.php and the link no longer appeared:

$pic_html = "<a href=\"javascript:;\" onClick=\"MM_openBrWindow('displayimage.php?pid=$pid&fullsize=1',
'" . uniqid(rand()) . "','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=$winsizeX,height=$winsizeY')\">";


I have upgraded to 1.4.8 and the code has changed so much I cannot figure out when to make the necessary change to accomplish this.

Please advise.
Thanks!
Title: Re: Remove Link On Intermediate Pictures
Post by: Sami on August 02, 2006, 07:20:49 AM
Copy theme_html_picture() function from themes/sample/theme.php to your theme (if you don't have it already) and change the $pic_html the way you want
Title: Re: Remove Link On Intermediate Pictures
Post by: Joachim Müller on August 02, 2006, 07:21:16 AM
Go to admin tools, check "Delete original size photos (1)", choose your album (you could select all albums), submit.