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: Editing the {THUMB}  (Read 4393 times)

0 Members and 1 Guest are viewing this topic.

eK3eKyToPa

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 35
Editing the {THUMB}
« on: February 01, 2008, 11:41:53 am »

I need the thumbs in filmstrip to be all with same width, but in the theme.inc it says just
{THUMB} where is the filmstrip, how to edit this
Thanks!
« Last Edit: February 02, 2008, 11:51:18 am by Joachim Müller »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Editing the {THUMB}
« Reply #1 on: February 01, 2008, 08:12:45 pm »

Don't edit include/themes.inc.php, under no circumstances!
The dimensions of the thumbs in the film strip don't differ from the dimensions of the thumbs on the thumbnails page. For both instances, the settings you specify in coppermine's config apply.
Logged

eK3eKyToPa

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 35
Re: Editing the {THUMB}
« Reply #2 on: February 01, 2008, 10:34:57 pm »

and how to change only the dimensions for the images in the filmstrip ?
Logged

Nibbler

  • Guest
Re: Editing the {THUMB}
« Reply #3 on: February 02, 2008, 02:18:22 am »

You need to mod include/functions.inc.php.

Code: [Select]
$thumb_list[$i]['image'] = "<img src=\"" . $pic_url . "\" class=\"image\" {$image_size['geom']} border=\"0\" alt=\"{$row['filename']}\" title=\"$pic_title\" />";
Set the width you want instead of the {$image_size['geom']}.

It's going to look distorted though.
Logged

eK3eKyToPa

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 35
Re: Editing the {THUMB}
« Reply #4 on: February 02, 2008, 10:38:12 am »

Works fine for the filmstrip, BUT the images in the albums are resized too, that is what I dont need.
Any way to be resized ONLY the images in filmstrip? Maybe by editing the theme.inc.php ?
Logged

eK3eKyToPa

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 35
Re: Editing the {THUMB}
« Reply #5 on: February 02, 2008, 11:01:14 am »

OK, I did it. Thanks!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Editing the {THUMB}
« Reply #6 on: February 02, 2008, 11:50:48 am »

Why don't you post what you actually did to solve your issues for the benefit of others with similar issues?

Maybe by editing the theme.inc.php ?
Never edit include/themes.inc.php - under no circumstances. Instead, edit themes/yourtheme/theme.php
Logged

eK3eKyToPa

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 35
Re: Editing the {THUMB}
« Reply #7 on: February 02, 2008, 12:14:36 pm »

This all thing is because get the 'Slider in Coppermine' MOD that shows 4 extra buttons that move the filmstrip. And if the images are with different width/height the buttons are moving, and if you set the width of image to be same for all the thumbs in the filmstrip , it's ok.
It can be done by using this:
You need to mod include/functions.inc.php.

Code: [Select]
$thumb_list[$i]['image'] = "<img src=\"" . $pic_url . "\" class=\"image\" {$image_size['geom']} border=\"0\" alt=\"{$row['filename']}\" title=\"$pic_title\" />";
Set the width you want instead of the {$image_size['geom']}.

It's going to look distorted though.

BUT edit only where is about the filmstrip, there are 2 places where you can see this code in the functions.inc.php. The other one is for the albums.
The MOD have include/themes.inc.php edited, and there I edit some part of the html
That is it!
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.