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: Change html of thumbnails  (Read 2082 times)

0 Members and 1 Guest are viewing this topic.

coopersita

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 44
Change html of thumbnails
« 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

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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Change html of thumbnails
« Reply #1 on: October 24, 2006, 11:19:46 pm »

I guess you'll need to run util.php and modify it accordingly before.
Logged

coopersita

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 44
Re: Change html of thumbnails
« Reply #2 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 15 queries.