Phoca Gallery Slideshow Images Limit

Phoca Gallery plugins - plugins for Phoca Gallery extension
kemin
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 30 Nov 2012, 14:43

Phoca Gallery Slideshow Images Limit

Post by kemin »

Hi, this is my guide to add the limit number of images loaded by phoca gallery slideshow. For me it's useful when there are many images in a category.

In plugins/content/phocagalleryslideshow/phocagalleryslideshow.php

Add after:

Code: Select all

$pause					= 2500;
this code:

Code: Select all

$limit					= 100;
<-- you can increase this value

Add after:

Code: Select all

else if($values[0]=='imageordering')	{$tmpl['imageordering']	= $values[1];}
this code:

Code: Select all

else if($values[0]=='limit')			{$limit					= $values[1];}
Replace

Code: Select all

. $imageOrdering;
with

Code: Select all

. $imageOrdering		   
	  . ' LIMIT ' . $limit;
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery Slideshow Images Limit

Post by Jan »

Hi, thank you for the guide.
Jan
If you find Phoca extensions useful, please support the project
Post Reply