coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: WillyWonderDog on April 06, 2013, 02:17:54 AM

Title: display size of filmstrip thumbnails
Post by: WillyWonderDog on April 06, 2013, 02:17:54 AM
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
Title: Re: display size of filmstrip thumbnails
Post by: Αndré on April 09, 2013, 12:41:44 PM
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.
Title: Re: display size of filmstrip thumbnails
Post by: WillyWonderDog on April 11, 2013, 03:43:12 AM
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
Title: Re: display size of filmstrip thumbnails
Post by: Αndré on April 11, 2013, 09:27:00 AM
Open js/displayimage.js, find all occurences of
<img border="0"
and replace each with
<img border="0" height="50"
(8 times in total).
Title: Re: display size of filmstrip thumbnails
Post by: WillyWonderDog on April 12, 2013, 03:20:45 AM
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)?
Title: Re: display size of filmstrip thumbnails
Post by: Αndré on April 12, 2013, 09:20:52 AM
Open include/functions.inc.php, find
$thumb_width = $CONFIG['thumb_width'];
and above, add something like
$CONFIG['thumb_width'] = '60';
Title: Re: display size of filmstrip thumbnails
Post by: WillyWonderDog on April 13, 2013, 01:38:59 AM
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.