Advanced search  

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]

Pages: [1]   Go Down

Author Topic: i want filmstrip to be different  (Read 3442 times)

0 Members and 1 Guest are viewing this topic.

cyndi

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
i want filmstrip to be different
« 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!!!
« Last Edit: June 02, 2005, 06:13:43 am by TranzNDance »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: i want filmstrip to be different
« Reply #1 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?
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: i want filmstrip to be different
« Reply #2 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.
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: i want filmstrip to be different
« Reply #3 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

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

just after (somewhere around line 1390 in classic theme)

Code: [Select]
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.

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

cyndi

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: i want filmstrip to be different
« Reply #4 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
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 15 queries.