Pages: 1
Piwigo support team,
I recently upgraded my site to Piwigo 2.6.1, and have discovered a small problem.
My pages now show only 15 photos per page, even though my configuration is set to show 50 photos per page. I am using the Stripped theme and the Gthumb+ plugin. When I turn off Gthumb+, the problem is still there. When I switch to another theme, the problem goes away, so I think the issue is with the Stripped theme.
How can I fix the theme to behave correctly, like it did when I was running Piwigo 2.5.x?
Thank you in advance for your help.
Last edited by bamnptow (2014-02-03 12:39:44)
Offline
Hello
next time you could experiment by disabling Stripped and Gthumb+, so you would find that it's a Stripped limitation due to its particular layout
pro tip: use that code in a personal plugin
add_event_handler('init', 'MY_init'); function MY_init() { remove_event_handler('loc_begin_index', 'modify_nb_thumbnail_page'); }
Offline
Or there is parameter like (must check the exact name)
$stripped['nb_thumbs']
Offline
taht's $stripped['maxThumb']
my code is only to let the default behavior -users can set their own limit-, the $stripped['maxThumb'] variable is to change the '15' value
Offline
Thank you for the quick responses.
If I view the site in the Elegant theme, I can see 50 images per page. It does not matter whether Gthumb+ is turned on or not -- it works correctly with Gthumb+ on, and with it off.
If I view the site in Stripped theme, it works incorrectly whether I have Gthumb+ turned on or off.
I added the code to my personal plugin, but did not see any change in behavior. Should I have done something differently?
Offline
did you really enable your peronal plugin? That's what I'm using in my child theme of Stripped so I'm pretty confident
Offline
$stripped['maxThumb'] = 999;
works fine for me!
Offline
I am not sure how to enable the personal plugin, other than to enter the code in the window and save it.
However, the suggestion to change the value for $stripped['maxThumb'] in the local config solved my problem. Thank you all for your help.
Offline
bamnptow wrote:
I am not sure how to enable the personal plugin, other than to enter the code in the window and save it.
.
aybe by going to the plugin list and Enable it like the others plugin
Offline
@flop25 - you are right. I just needed to activate the personal plugin, and your code works. I prefer this option, because it appears that each user can set their own preferred max number of images per page. Thank you again.
Offline
Pages: 1