🌍
English
two questions:
- Is it possibile set as limit only one photo? now i can see only 5, 10, 50,...
- Is it possibile use limit how many photo users can upload for album and not in total? I need that my users uplaod a maximum 1 o 5 photo in each album...(in the setting the images number is global)
TY for the very good plugin
Offline
If ever someone stumbles over this thread and have troubles setting up this database connection to phpbb and got errors like:
PHP message: PHP Fatal error: Uncaught mysqli_sql_exception: Column 'user_id' in SELECT is ambiguous in .../include/dblayer/functions_mysqli.inc.php:132
Here's my solution:
Tested on:
Piwigo 16.3.0
phpBB 3.3.15
create an SQL View inside your phpBB database:
CREATE OR REPLACE VIEW piwigo_phpbbusers AS
SELECT
user_id AS phpbb_user_id,
username AS phpbb_username,
user_email AS phpbb_user_email,
user_password AS phpbb_user_password
FROM phpbb_users;content of /local/config/config.inc.php
<?php
$conf['apache_authentication'] = false;
$conf['users_table'] = 'piwigo_phpbbusers';
$conf['external_authentification'] = true;
$conf['user_fields'] = array(
'id' => 'phpbb_user_id',
'username' => 'phpbb_username',
'password' => 'phpbb_user_password',
'email' => 'phpbb_user_email'
);
$conf['password_verify'] = function ($password, $hash) {
// If the password in phpBB is an old MD5-Hash (only old installs)
if (strlen($hash) == 32) {
return (md5($password) == $hash);
}
// Standard phpBB (Bcrypt)
return password_verify($password, $hash);
};
$conf['pass_convert'] = function($s) { return $s; };
$conf['guest_id'] = 1;
$conf['default_user_id'] = $conf['guest_id'];
$conf['browser_language'] = true;
$conf['webmaster_id'] = 1445;
$conf['guest_access'] = false;/* Die Datei ist nicht vorhanden und wird vom LocalFilesEditor erstellt. */
$conf['insensitive_case_logon'] = true;
?>took me some hours of my lifespan to get this up and running again
Offline