Últimas noticias

  • Inicio
  •  » Peticiones
  •  » Utilizar los usuarios de drupal 7 con la bd de piwigo

#1 03-05-2017 13:29:57

urkitarke
Miembro
Registrado: 03-05-2017
Mensajes: 3

Utilizar los usuarios de drupal 7 con la bd de piwigo

Etiquetas: [drupal 7, registro, usuarios]

Hola a todos.
Estoy intentando unir las dos tablas pero no se como hacerlo.
Se puede añadir la base de datos de drupal a la base de datos de piwigo y, a la hora de registrase y/o entrar logeado, usar la tabla de usuarios de drupal para que no tengna que vovler a crear una cuenta los usuarios de mi web?

Toda luz al tema, será agradecida.

Offline

#2 06-05-2017 07:44:51

ddtddt
Piwigo Team
Ubicación: Quetigny (Francia)
Registrado: 27-07-2007
Mensajes: 3189

Re: Utilizar los usuarios de drupal 7 con la bd de piwigo

Hola :-)

en la configuración local puede utilizar

/***default config***/

// +-----------------------------------------------------------------------+
// |                            authentication                             |
// +-----------------------------------------------------------------------+

// apache_authentication : use Apache authentication as reference instead of
// users table ?
$conf['apache_authentication'] = false;

// users_table: which table is the reference for users? Can be a different
// table than Piwigo table
//
// If you decide to use another table than the default one, you need to
// prepare your database by deleting some datas :
//
// delete from piwigo_user_access;
// delete from piwigo_user_cache;
// delete from piwigo_user_feed;
// delete from piwigo_user_group;
// delete from piwigo_user_infos;
// delete from piwigo_sessions;
// delete from piwigo_rate;
// update piwigo_images set rating_score = null, added_by = <webmaster_id>;
// delete from piwigo_caddie;
// delete from piwigo_favorites;
//
// All informations contained in these tables and column are related to
// piwigo_users table.
$conf['users_table'] = null;

// If you decide to use external authentication
// change conf below by $conf['external_authentification'] = true;
$conf['external_authentification'] = false;

// Other tables can be changed, if you define associated constants
// Example:
//   define('USER_INFOS_TABLE', 'pwg_main'.'user_infos');

// user_fields : mapping between generic field names and table specific
// field names. For example, in PWG, the mail address is names
// "mail_address" and in punbb, it's called "email".
$conf['user_fields'] = array(
  'id' => 'id',
  'username' => 'username',
  'password' => 'password',
  'email' => 'mail_address'
  );

// password_hash: function hash the clear user password to store it in the
// database. The function takes only one parameter: the clear password.
$conf['password_hash'] = 'pwg_password_hash';

// password_verify: function that checks the password against its hash. The
// function takes 2 mandatory parameter : clear password, hashed password +
// an optional parameter user_id. The user_id is used to update the password
// with the new hash introduced in Piwigo 2.5. See function
// pwg_password_verify in include/functions_user.inc.php
$conf['password_verify'] = 'pwg_password_verify';

// 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'];

// Registering process and guest/generic members get language from the browser
// if language isn't available PHPWG_DEFAULT_LANGUAGE is used as previously
$conf['browser_language'] = true;

// webmaster_id : webmaster'id.
$conf['webmaster_id'] = 1;

// does the guest have access ?
// (not a security feature, set your categories "private" too)
// If false it'll be redirected from index.php to identification.php
$conf['guest_access'] = true;

Offline

  • Inicio
  •  » Peticiones
  •  » Utilizar los usuarios de drupal 7 con la bd de piwigo

Pie del foro

Desarrolado por FluxBB

github twitter facebook google+ newsletter Donar Piwigo.org © 2002-2017 · Contacto