I wish to integrate user databases of wordpress and piwigo.
And I wish to put only one login page for both. How can I do this?
Offline
Hello thamizhinpan,
Which one of Piwigo/WordPress should be the master in term of user database?
I'm not a WordPress guru yet, but by reading their code, I think you can use an external user table for authentication. You can also do this in Piwigo (and as I am a Piwigo guru, this is the simplest solution for to explain)
Offline
And this may be interesting for you : [Forum, topic 14644] Wordpress integration problems...
Offline
I've made a simple test with Piwigo 2.0.3 + WordPress 2.8.2.
1. install Piwigo and Wordpress in the same database. Use "wp_" as table prefix for WordPress and "piwigo_" as table prefix for Piwigo
2. in Wordpress, you have a single user "admin". Create another user "guest". it should have ID = 2 in the wp_users table.
3. in Piwigo, install and activate the "LocalFiles Editor" plugin, in the Administration>Specials>Plugins screen
4. in the Administration>Specials>Plugins>LocalFiles Editor>Local config, set the include/config_local.inc.php file content as:
<?php $conf['users_table'] = 'wp_users'; $conf['user_fields'] = array( 'id' => 'ID', 'username' => 'user_login', 'password' => 'user_pass', 'email' => 'user_email' ); ?>
If in the wp_users table, the ID for the "guest" user is not 2, add:
$conf['guest_id'] = 3;
... where 3 is the ID of the "guest" user.
If you create users on Piwigo side, you will be able to connect on WordPress side. If you create users on WordPress side, you won't be able to connect on Piwigo side. Because the encryption algorithm differs. Next step is to make Piwigo create WordPress-like password.
Offline
On step 2)
What password find ? So, on Piwigo, user "guest" isn't login
:-(
Wordpress is not also good as Piwigo ^^
Offline
For user guest, go on your database editor and remove password no ?
Another point: it works fine... until you connect to wordpress: this one changes the password in DB with wordpress' encryption algorithm...
Offline