Author Topic: 2x 4images installations using 1 user database  (Read 3577 times)

0 Members and 1 Guest are viewing this topic.

Offline 5degrees

  • Newbie
  • *
  • Posts: 24
    • View Profile
2x 4images installations using 1 user database
« on: November 22, 2008, 02:49:08 PM »
We are looking at running two 4images sites but wish to share 1 user database for both. This is so that once you register for one site then you immediately get access through to the second.

Is this possible?

Offline honda2000

  • 4images Guru
  • *******
  • Posts: 3.263
    • View Profile
    • Wir machen Internet!
Re: 2x 4images installations using 1 user database
« Reply #1 on: November 23, 2008, 08:36:01 AM »
4images one: table-prefix = 4images_prefix1
4images two: table-präfix = 4images_prefix2

4images one or two
in includes/constant.php:


Code: [Select]
define('USERS_TABLE', $table_prefix.'users');
replace with:
Code: [Select]
$table_prefix2 = "4images_prefix2";
define('USERS_TABLE', $table_prefix2.'users');

4images two times, in one database and two prefixes!
« Last Edit: November 23, 2008, 09:08:47 AM by V@no »