coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: cyndi on May 30, 2005, 06:01:10 AM

Title: i want filmstrip to be different
Post by: cyndi on May 30, 2005, 06:01:10 AM
hey can anyone help me with this? :D

i'm new to coppermine and i have read the faqs and stuff but i cannot figure out how to make this work in coppermine's filmstrip.

i wanna know how to make the filmstrip only show the image that is next in the intermediate page, and the image that was previous in the intermediate page, and if there is no image, for example, in the first image you would only have one image, and that would be for the next link. then if you were on the last page, you would only have the image for the previous image.

can someone help me? i saw this on a photosite and i thought it was really cool. i read the documentation everywhere and i don't know how to make the filmstrip hide the image that you are on...thanks anyone for help in advance!!!
Title: Re: i want filmstrip to be different
Post by: Joachim Müller on May 30, 2005, 07:09:35 AM
Doesn't setting " Number of items in film strip" to "3" in coppermine's config do what you're requesting?
Title: Re: i want filmstrip to be different
Post by: Tranz on May 30, 2005, 07:34:17 AM
It seems cyndi wants to exclude the current image, and that would require a code change, I think.
Title: Re: i want filmstrip to be different
Post by: Abbas Ali on May 30, 2005, 10:33:49 AM
The simplest way to do so would be to set "Number of items in film strip" to 3 in config and then do follwing changes.

Edit themes/yourtheme/theme.php and ADD


      if($thumb['pos'] == $pos) {
        continue;
      }


just after (somewhere around line 1390 in classic theme)


foreach($thumb_list as $thumb) {


This will exclude the current picture from film strip and will show only 2 images in the film strip.

However if you are on the last pic then it will show 2 previous pics and not only 1 previous pic. Same is for the first pic i.e. if you are on the first pic then it will show 2 pics which are after the first pic.

Quote from: cyndi on May 30, 2005, 06:01:10 AM
and if there is no image, for example, in the first image you would only have one image, and that would be for the next link. then if you were on the last page, you would only have the image for the previous image.
For this the display_film_strip() function of includes/funtions.inc.php will needed to be modified and will be quite tedious. You can ask if anyone is willing to code that for you.

I have not given a much thought in above solution and tried to keep it as simple as possible. So someone else might come up with a better solution.
Title: Re: i want filmstrip to be different
Post by: cyndi on June 02, 2005, 05:37:09 AM
thank you so much Abbas Ali!! i really like the effect hehe this is exactly what i wanted :D