Editing the {THUMB} Editing the {THUMB}
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Editing the {THUMB}

Started by eK3eKyToPa, February 01, 2008, 11:41:53 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

eK3eKyToPa

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!

Joachim Müller

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.

eK3eKyToPa

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

Nibbler

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

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

eK3eKyToPa

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 ?

eK3eKyToPa


Joachim Müller

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

Quote from: eK3eKyToPa on February 02, 2008, 10:38:12 AM
Maybe by editing the theme.inc.php ?
Never edit include/themes.inc.php - under no circumstances. Instead, edit themes/yourtheme/theme.php

eK3eKyToPa

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:
Quote from: Nibbler on February 02, 2008, 02:18:22 AM
You need to mod include/functions.inc.php.

$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!