Welcome to Geeklog, Anonymous Wednesday, December 25 2024 @ 10:40 am EST

Geeklog Forums

2 sites, 1 user database


Status: offline

Tutlan

Forum User
Newbie
Registered: 03/06/03
Posts: 9
I'm making another site that will run as a subdomain of my main site. Id like them to have seperate databases for everything but the user info. Is there a way to have them use the same user tables out of 1 database so they can sign up for 1 and be logged into either site that they visit?
 Quote

tokyoahead

Anonymous
The only thing I can think of right now is changin the line 89

$_TABLES['users'] = $_DB_table_prefix . 'users';

in /system/lib-database.php to

$_TABLES['users'] = 'common_users';

for both installations before installing. Then both systems would use the same table for users. However, all comments, usersettings etc would be different on both sides.

The problem would be that a user can hide a block on one page that does not exist or that he wants to see in another...

I think it might be better to write a remote login for GL such as blogger etc.

No guarantee here that nothing breaks.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
You need to share more than just the 'users' table. See this discussion.

bye, Dirk
 Quote

All times are EST. The time is now 10:40 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content