GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Wordpress experts - use another DB for members? (https://gfy.com/showthread.php?t=861099)

fusionx 10-10-2008 03:06 PM

Wordpress experts - use another DB for members?
 
Does anyone have any info on using a membership table from another DB for WordPress?

I have a links directory with a blog, and I want them to share a DB for members, eg, you log into one you log into both..

Not sure how possible this is..

GigoloShawn 10-10-2008 03:08 PM

It's pretty easy.

Code:

define('CUSTOM_USER_TABLE', 'wp2_users');
define('CUSTOM_USER_META_TABLE', 'wp2_usermeta');


woj 10-10-2008 03:19 PM

Quote:

Originally Posted by GigoloShawn (Post 14881161)
It's pretty easy.

Code:

define('CUSTOM_USER_TABLE', 'wp2_users');
define('CUSTOM_USER_META_TABLE', 'wp2_usermeta');


probably will need a bit more to make it work with a different script... :2 cents:

FlexxAeon 10-10-2008 03:29 PM

yeah u gotta make sure the user tables line up, that the headers don't conflict, etc

search support forums on wordpress site - it's been done many times over but quite a few factors are involved

fusionx 10-10-2008 03:36 PM

there's also routines needed to handle cookie creation, etc.. I'd imagine..

GrouchyAdmin 10-10-2008 03:37 PM

Quote:

Originally Posted by GigoloShawn (Post 14881161)
It's pretty easy.

Code:

define('CUSTOM_USER_TABLE', 'wp2_users');
define('CUSTOM_USER_META_TABLE', 'wp2_usermeta');


That's all you need for using a different table on the same SQL server between WordPress installs these days.

If you're sharing with a different script, obviously you'll have to have someone roll it for you.

cryptie 10-10-2008 08:13 PM

you cannot share cookies cross-domain without some serious hacking :p

however, you can easily have them login twice in both sites.

note in shawns example, you must be using the same database,


All times are GMT -7. The time now is 06:27 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123