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: Slideshow loop limit  (Read 2389 times)

0 Members and 1 Guest are viewing this topic.

kingsqueak

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Slideshow loop limit
« on: December 27, 2004, 04:28:49 am »

I tried, but I'm horrible with php and worse with js.

In displayimage.php or include/slideshow.inc.php  I am trying to figure out how to get a limit placed on the number of times the slideshow will run.  It would be ideal to have an option like the delay setting in the main config for this feature.

For all I need, I wouldn't mind hard coding it in but I couldn't figger it out.

I need to get the total num of pics in the current album and simply decrement through the loop until 0 and go to endSlideShow();   I just got boggled going between php and js between the two files mentioned.  I got as far as counting 'x' number of pictures displayed inside of runSlideShow() and exiting nicely, but I really need to get a starting figure for the total number of pics in the album assigned to something used inside runSlideShow().  I couldn't figure that part out.

The purpose for this of course is so that if someone leaves a browser running on slideshow, say at the office on a Friday, I'm not paying for the bandwidth the whole time.
« Last Edit: December 27, 2004, 07:34:22 am by GauGau »
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.