display size of filmstrip thumbnails display size of filmstrip thumbnails
 

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]

Main Menu

display size of filmstrip thumbnails

Started by WillyWonderDog, April 06, 2013, 02:17:54 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

WillyWonderDog

Is it possible to change the display-size of filmstrip thumbnails without changing the actual thumbnails? For instance, display the filmstrip thumbs as 50% of the actual thumb display size.   Coppermine version: 1.5.20; theme=classic_vstrip, mobile switch and mobile_light theme;
Thank you for your consideration. http://saturday-only.hostoi.com/gallery

Αndré

Copy the function theme_display_film_strip from themes/sample/theme.php to your theme's theme.php file, if it doesn't exist. Then, find
foreach($thumb_list as $thumb) {
and below, add something like
$thumb['image'] = str_replace('<img ', '<img height="50" ', $thumb['image']);

If this works for you as expected, we also need to adjust the dynamically loaded thumbnails. Let me know.

WillyWonderDog

Works exactly as you suspected. The filmstrip thumbs display in the new size (height of 50 pixels in this example) except, when the thumbnail strip is scrolled, the newly displayed thumb is displayed in its original size

Αndré

Open js/displayimage.js, find all occurences of
<img border="0"
and replace each with
<img border="0" height="50"
(8 times in total).

WillyWonderDog

Works exactly as described, your expertise is commended. Thank you very much. Is it also possible to adjust the filmstrip thumb cell sizes which hold these thumbs (without modifing the non-filmstrip thumb cell sizes of other pages)?

Αndré

Open include/functions.inc.php, find
$thumb_width = $CONFIG['thumb_width'];
and above, add something like
$CONFIG['thumb_width'] = '60';

WillyWonderDog

Works perfectly, thank you very much for your time. I can now display the filmstrip thumbs in an adjustable display-size inside of their adjustable filmstrip thumb_cell sizes. Coppermine Gallery is powerful software with excellent voluntary support.