coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: coopersita on October 24, 2006, 08:21:06 PM

Title: Change html of thumbnails
Post by: coopersita on October 24, 2006, 08:21:06 PM
I made some modifications to my image management file, so that my thumbnails are set to a certain height, while intermediate images are set by max aspect.

http://forum.coppermine-gallery.net/index.php?topic=37602.0 (http://forum.coppermine-gallery.net/index.php?topic=37602.0)

I managed to do that, but now the html still gives the old width and height (I guess coppermine calculates dimensions based on database values for width and height instead of thumbs actual size), so even though the image is larger, still shows a small one. I've been looking at theme.php, but I can't find the code that uses to display the thumbnail.

Code:

<a href="thumbnails.php?album=10" class="albums"><img src="albums/userpics/10001/thumb_nabs.gif" class="image" width="30" height="50" border="0" alt="nabs.gif" /></a>


I just want to delete the width and height...

Code:

<a href="thumbnails.php?album=10" class="albums"><img src="albums/userpics/10001/thumb_nabs.gif" class="image"  border="0" alt="nabs.gif" /></a>


Is that in theme.php, because I can't find it... or is it in another file?

Right now I'm doing it with css, but in IE 6 it sometimes shows distorted images.
Title: Re: Change html of thumbnails
Post by: Joachim Müller on October 24, 2006, 11:19:46 PM
I guess you'll need to run util.php and modify it accordingly before.
Title: Re: Change html of thumbnails
Post by: coopersita on October 25, 2006, 05:06:07 AM
I tried updating all thumbnails thgourhg admin tools (images are resized properly), and then reloading file dimensions, but the html still comes out too small.

The html still shows proportions as if thumbnails were being resized to max aspec, instead of the height I hardcoded into util.php and upload.php.

I just need to get rid of the width and height of the html image tag.