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
Does Configuration->Options->Guest Settings provide what you need?
Offline
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
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:
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
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
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
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
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