i want filmstrip to be different i want filmstrip to be different
 

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

i want filmstrip to be different

Started by cyndi, May 30, 2005, 06:01:10 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cyndi

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

Joachim Müller

Doesn't setting " Number of items in film strip" to "3" in coppermine's config do what you're requesting?

Tranz

It seems cyndi wants to exclude the current image, and that would require a code change, I think.

Abbas Ali

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.
Chief Geek at Ranium Systems

cyndi

thank you so much Abbas Ali!! i really like the effect hehe this is exactly what i wanted :D