[wp-hackers] Sharing Users/authentication

Jacob Santos dragonwing at dragonu.net
Sat Aug 25 03:55:21 GMT 2007


No, the defines replace the default WordPress table names, if they are 
defined. Does not include the prefix with the constant, so the name has 
to be the full custom table name.

If you want to define the user, you can do so by another method. I want 
to say by creating the WordPress cookie or by writing your own User API 
function in a plugin.

Can you explain more by what you mean of 'MySQL view'?

Jacob Santos

Curt Woodard wrote:
>> Yes. There are defines in the wp-settings.php file that can be defined
>> in the wp-config.php file.
>>
>> wp-config.php
>> -----------------------
>>
>> // Underneath database config info
>> define('CUSTOM_USER_TABLE', 'wp_users');
>> define('CUSTOM_USER_META_TABLE', 'wp_usermeta');
>>
>> In this way, you only need to have one wordpress users table and
>> usermeta table. You will have to keep track of the prefix of the
>> wordpress installation you have all of the users in.
>>
>> Jacob Santos
>>
>> Chris Lott wrote:
>>     
>>> Faculty members have discovered CommentPress and would like to use
>>> CommentPress enabled blogs alongside their regular class blogs... is
>>> there a simple way to share the usernames/logins between two WP
>>> installations? All that really needs to be shared is the login name
>>> and password...
>>>
>>> c
>>>       
>
> Quick question:
> Can these defines point to a MySQL view instead of actual tables? If
> that's the case then my work will be MUCH easier than I think...
>
> -Curt
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>   


More information about the wp-hackers mailing list