Advanced search  

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

Pages: [1]   Go Down

Author Topic: display size of filmstrip thumbnails  (Read 6002 times)

0 Members and 1 Guest are viewing this topic.

WillyWonderDog

  • Contributor
  • Coppermine newbie
  • ***
  • Offline Offline
  • Posts: 19
display size of filmstrip thumbnails
« 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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: display size of filmstrip thumbnails
« Reply #1 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
Code: [Select]
foreach($thumb_list as $thumb) {and below, add something like
Code: [Select]
$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.
Logged

WillyWonderDog

  • Contributor
  • Coppermine newbie
  • ***
  • Offline Offline
  • Posts: 19
Re: display size of filmstrip thumbnails
« Reply #2 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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: display size of filmstrip thumbnails
« Reply #3 on: April 11, 2013, 09:27:00 am »

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

WillyWonderDog

  • Contributor
  • Coppermine newbie
  • ***
  • Offline Offline
  • Posts: 19
Re: display size of filmstrip thumbnails
« Reply #4 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)?
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: display size of filmstrip thumbnails
« Reply #5 on: April 12, 2013, 09:20:52 am »

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

WillyWonderDog

  • Contributor
  • Coppermine newbie
  • ***
  • Offline Offline
  • Posts: 19
Re: display size of filmstrip thumbnails
« Reply #6 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.