Helping decoding filmstrip code Helping decoding filmstrip code
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Helping decoding filmstrip code

Started by sjordan, July 15, 2006, 02:20:18 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sjordan

Hello,

I'm working on code to do a sliding filmstrip. It's nearly working 100%. But I noticed when I clicked on a few of the thumbnails in the filmstrip, the resulting page was missing the beginning image in the filmstrip.

I tracked this down to line 1851 in functions.inc.php.

Can someone please educate me as to the need for (use of array_slice):
Quote$pic_data=array_slice($pic_data,$lower_limit,$max_item)
If I comment out this line, things work fine (so far).

Also line 1829:
Quote$lower_limit=3;
seems arbitrary

Thank you in advance.