Announcement

#1 2018-03-06 21:46:07

Haz_69
Member
2015-01-19
33

Default number of pictures

Hello

I have tried to find the answer here ,but no success.

How can I change the default value for Numbers of pictures  per page, for new registered user?

Can i change it in the local filés editor?



•Piwigo 2.9.3
•Operativ system: Linux
•PHP: 5.6.31 (Visa info) [2018-02-27 07:05:38]
•MySQL: 5.5.5-10.1.30-MariaDB-1~xenial [2018-02-27 07:05:38]
•Grafikbibliotek: GD bundled (2.1.0 compatible)


Piwigo URL: http://www.karlskogabilder.se
Piwigo version:
PHP version:
MySQL version:
Piwigo URL: http://

Offline

 

#2 2018-03-07 09:22:18

aberkvam
Member
2018-03-07
11

Re: Default number of pictures

By default, the default settings for new users are pulled from the guest user.  I just tested it on my installation.  I changed the "Photos per page" for the guest user and then created a new user.  The new user had the modified setting.

If you are looking for more detail, start with these settings in the local configuration available through the plugin LocalFiles Editor

Code:

// guest_id : id of the anonymous user
$conf['guest_id'] = 2;

// default_user_id : id of user used for default value
$conf['default_user_id'] = $conf['guest_id'];

Offline

 

#3 2018-03-07 15:55:08

executive
Member
2017-08-16
1214

Re: Default number of pictures

do not edit your "config_default.inc.php."

Use localfiles editor plugin instead.
http://piwigo.org/doc/doku.php?id=user_ … onf_locale

Offline

 

#4 2018-03-08 12:16:38

flop25
Piwigo Team
2006-07-06
7037

Re: Default number of pictures

post edited We can't let people recommending changing core files


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

 

Board footer

Powered by FluxBB

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