Disable unlimited number of displayed photo's

Phoca Gallery - image gallery extension
andries78
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 18 Feb 2010, 13:19

Disable unlimited number of displayed photo's

Post by andries78 »

Is there a way to disable the view function "show all photo's" in the phoca gallery?
On this moment I have approximately 260 photo's in a category.
If a user click on the button "show all photos" below the phoca gallery webpage, the website give's a error...
(could not connect to the SQL database, the website is very slow and freezes)


I hope there is a solution.
(ok, I can limited the photo's in the category but that's not a good solution, I think so)
:)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Disable unlimited number of displayed photo's

Post by Jan »

If you find Phoca extensions useful, please support the project
andries78
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 18 Feb 2010, 13:19

Re: Disable unlimited number of displayed photo's

Post by andries78 »

Thanks for your reply.

I have seen the params to set the pagination values.
But I could not found the options "show all"
If I set the params to 5,10,15,20,50 you see in the pull down menu the follow options:
show: 5 pictures
show: 10 pictures
show: 15 pictures
show: 20 pictures
show: 50 pictures
AND....
SHOW ALL PICTURES... <---- Where can I disable THIS option?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Disable unlimited number of displayed photo's

Post by Jan »

Hi, try to search this forum, there are guides how to remove the "display all" from the code.

Jan
If you find Phoca extensions useful, please support the project
Post Reply