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: Advancing filmstrip more than one frame?  (Read 3711 times)

0 Members and 1 Guest are viewing this topic.

AntonLargiader

  • Coppermine novice
  • *
  • Country: 00
  • Offline Offline
  • Posts: 31
    • My Coppermine Album
Advancing filmstrip more than one frame?
« on: October 26, 2010, 05:53:43 pm »

With the default 5 thumbnails in the filmstrip, I'd like to advance it four or maybe five frames for each click. The setup gives the number of frames but I don't see a way to change the advance rate.

www.largiader.com/album/

I saw the scroll wheel plug-in and maybe that's the best solution, but it seems that (n-1) would be a logical default for the arrow. Not everyone will think to try the scroll wheel anyway.
Logged
My album:  www dot largiader dot com slash album

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Advancing filmstrip more than one frame?
« Reply #1 on: October 29, 2010, 11:26:42 am »

We need to adjust the $(document).ready(function() in js/displayimage.js.
I tried to replace the '1' at
Code: [Select]
nextPosition = nextPosition +1;and
Code: [Select]
nextPosition = nextPosition -1;with a '4'.

It crashes if there are less then 4 images, so all the checks has to be adjusted. I currently cannot help you any further at this issue.
Logged

AntonLargiader

  • Coppermine novice
  • *
  • Country: 00
  • Offline Offline
  • Posts: 31
    • My Coppermine Album
Re: Advancing filmstrip more than one frame?
« Reply #2 on: November 01, 2010, 03:36:51 pm »

Thanks! I'd been looking in functions.inc.php where it has:
Code: [Select]
$filmstrip_next_pos = $pos + 1;
$filmstrip_prev_pos = $pos - 1;

But changing those to 4s wasn't having any effect. I'll look at the checks and see if I can figure something out.
Logged
My album:  www dot largiader dot com slash album

AntonLargiader

  • Coppermine novice
  • *
  • Country: 00
  • Offline Offline
  • Posts: 31
    • My Coppermine Album
Re: Advancing filmstrip more than one frame?
« Reply #3 on: November 01, 2010, 06:22:59 pm »

I tried what you mentioned and it seems that it makes the filmstrip skip over items. IOW it looks like it advances one frame (same as before) but that next image is actually four images later. I want it to keep loading each image sequentially but slide four positions (if there are that many images left).

Ideally I think the config would let the admin choose between scrolling maxItems frames or scrolling (maxItems-1) frames, for those that want to see one image remain behind as a visual anchor. I can't really see who would want to advance only one image if you can see 5 of them, since the whole idea of the arrows is a quicker navigation using the strip.

And really ideally (IMO) there would be an acceleration and deceleration of the strip, because that helps the eye track better. I think I've seen this in other filmstrips; maybe I can find an example. I've done some other JS stuff that had accel/decel.
Logged
My album:  www dot largiader dot com slash album

frank61

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
Re: Advancing filmstrip more than one frame?
« Reply #4 on: March 07, 2011, 03:22:22 pm »

Is there somethnig new?
I also would like to move more thumbs ahead.
The best way is to move as many as I set in configuration page.
I set to 7, so the button "NEXT" should move for next 7 images,
Thanks for help
www.photoportal.sk
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Advancing filmstrip more than one frame?
« Reply #5 on: March 07, 2011, 03:27:17 pm »

That may be a feature request for future versions of Coppermine.
Logged
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 19 queries.