[WTH] Some one to make all my users share 1 sql database

Discussion in 'Programming' started by sama3l., May 2, 2009.

  1. #1
    i want to setup 1 website with multiple forums on it so i have 1 main portal then i have all the subdomains integrate from one userbase.

    for example:

    main url

    subdomain.forums1
    subdomain.forums2
    subdomain.forums3
    subdomain.forums4

    each of the subdomains will be linked so the user only needs to sign up once

    so a user can move from subdomain.forums2 and make posts in subdomain.forums1 with the same user name and password.

    if you know how to do this please tell me your fee.
     
    sama3l., May 2, 2009 IP
  2. oburlaca

    oburlaca Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    At first I thought about the following scheme:
    1. all users should register at one site, for ex forums1.
    2. a simple replication of users table from forums1 database to the rest forums

    But after that I realized that there may be other info (specific to a forum) in the users table, for ex: the last time when he logged in.

    So, The solution can be to write a script that will make sure that new users from one forum are automatically copied to another forum database
     
    oburlaca, May 4, 2009 IP