Piwigo.org

You are not logged in. (Register / Login)

Announcement

#1 2011-12-17 08:10:39

rabbit
Member
Registered: 2011-12-06
Posts: 5

Limit the number of thumbnails or rows

How do you limit the number of thumbnails on a page, or limit the number of rows?  I've built a custom Wordpress template and placed Piwigo in it, but I need to limit the number of rows or thumbnails shown to make the template work properly.  I've searched for a while and can't find this information.  Thanks!

Offline

#2 2011-12-19 07:08:35

Billr
Piwigo Team, forum moderator
Registered: 2011-06-22
Posts: 144

Re: Limit the number of thumbnails or rows

Does Configuration->Options->Guest Settings provide what you need?

Offline

#3 2011-12-19 07:34:34

rabbit
Member
Registered: 2011-12-06
Posts: 5

Re: Limit the number of thumbnails or rows

I've already tried that, as well as setting every user to 12 per page in Users>Manage>Preferences, but the pages always show 15 thumbnails per page.  Is this controlled in the main program or by the theme (using Stripped)? Is there a certain PHP file that controls the number of thumbs per page that I can modify?

Last edited by rabbit (2011-12-19 07:36:04)

Offline

#4 2011-12-19 11:08:52

mol
Piwigo Team Germany
Location: germany
Registered: 2010-05-26
Posts: 108
Website

Re: Limit the number of thumbnails or rows

rabbit wrote:

... or by the theme (using Stripped)?

this is done by stripped!

Is there a certain PHP file that controls the number of thumbs per page that I can modify

yes: piwigopath/themes/stripped/themeconf.inc.php
i think, this is what you searching for:

Code:

if (!isset($stripped['maxThumb'])) { $stripped['maxThumb']=15;}

but you loose all changes you do in this files with the next update
a plugin like GThumb+ (http://piwigo.org/ext/extension_view.php?eid=591), that overrides the default and theme settings with his own, is the better solution, imho

Offline

#5 2011-12-19 11:20:30

rabbit
Member
Registered: 2011-12-06
Posts: 5

Re: Limit the number of thumbnails or rows

Thanks for the reply, but I've already tried changing the line in themeconf.inc.php and it did not change anything.  There is something overriding everything else that sets the default number of thumbs per page to 15.  Also, I can't use that plugin you mentioned - client does not want it.

Offline

#6 2011-12-19 11:42:29

mol
Piwigo Team Germany
Location: germany
Registered: 2010-05-26
Posts: 108
Website

Re: Limit the number of thumbnails or rows

hu, in earlier versions of stripped it works, i think you must ask the creator of the theme
(i like GThumb+, because i can also easy chance the size of the tumbs)

Offline

#7 2012-10-18 19:48:35

RMM
Member
Registered: 2011-12-09
Posts: 23

Re: Limit the number of thumbnails or rows

it's an old thread, by I stumpled over it when I was looking for the same answer, maybe it will help to some people...

to change the maximal number of thumbnail supporte by the stripped theme do following:

- use the LocalFiles Editor plugin
- add to the local config:
$stripped['maxThumb'] = 25;

where 25 is the number you'd like

Offline

#8 2012-11-01 01:53:19

willame
Member
Registered: 2012-07-30
Posts: 4

Re: Limit the number of thumbnails or rows

GThumb+,Thank mol  recommendation, I know this plugin, I solved the problem with GTHumb !!  :)

Use GThumb,i get Thumbs per page display 12~

great GTHumb!!!

Offline

Board footer

Powered by FluxBB

twitter facebook google+ newsletter Donate Piwigo.org © 2002-2014 · Contact