Announcement

#1 2014-02-02 22:42:27

bamnptow
Member
2014-02-02
4

[resolved] 2.6.1, Stripped Theme, and Number of Photos per Page

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

 

#2 2014-02-02 23:22:00

flop25
Piwigo Team
2006-07-06
7037

Re: [resolved] 2.6.1, Stripped Theme, and Number of Photos per Page

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

Code:

add_event_handler('init', 'MY_init');
function MY_init()
{
  remove_event_handler('loc_begin_index', 'modify_nb_thumbnail_page');
}

To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#3 2014-02-02 23:23:53

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: [resolved] 2.6.1, Stripped Theme, and Number of Photos per Page

Or there is parameter like (must check the exact name)
$stripped['nb_thumbs']

Offline

 

#4 2014-02-02 23:27:46

flop25
Piwigo Team
2006-07-06
7037

Re: [resolved] 2.6.1, Stripped Theme, and Number of Photos per Page

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


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#5 2014-02-02 23:32:26

bamnptow
Member
2014-02-02
4

Re: [resolved] 2.6.1, Stripped Theme, and Number of Photos per Page

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

 

#6 2014-02-02 23:55:16

flop25
Piwigo Team
2006-07-06
7037

Re: [resolved] 2.6.1, Stripped Theme, and Number of Photos per Page

did you really enable your peronal plugin? That's what I'm using in my child theme of Stripped so I'm pretty confident


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#7 2014-02-03 00:25:06

Tadjio
Member
UK
2012-05-02
432

Re: [resolved] 2.6.1, Stripped Theme, and Number of Photos per Page

$stripped['maxThumb'] = 999;
works fine for me!


Tadjio

Offline

 

#8 2014-02-03 04:37:28

bamnptow
Member
2014-02-02
4

Re: [resolved] 2.6.1, Stripped Theme, and Number of Photos per Page

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

 

#9 2014-02-03 10:47:04

flop25
Piwigo Team
2006-07-06
7037

Re: [resolved] 2.6.1, Stripped Theme, and Number of Photos per Page

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


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#10 2014-02-03 12:39:12

bamnptow
Member
2014-02-02
4

Re: [resolved] 2.6.1, Stripped Theme, and Number of Photos per Page

@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

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact