Advanced search  


CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Slideshow loop limit  (Read 2931 times)

0 Members and 1 Guest are viewing this topic.


  • 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/  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 »
Pages: [1]   Go Up

Page created in 0.018 seconds with 20 queries.