Author Topic: Dear Jan, is it possible to have two copies of 4images.....  (Read 6855 times)

0 Members and 1 Guest are viewing this topic.

Offline HelpMeNow

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
Dear Jan, is it possible to have two copies of 4images.....
« on: April 10, 2003, 06:24:22 AM »
Jan, thank you for this software, it's great!

Is it possible to have two 4images running on the same server, but different folders using different database files, but using the same "Members Data" file, so if a registered user registers on on of the instances of the 4images, he/she will automatically become a member on ther other one too.

Just sharing the members login data if you know what I mean.

Thank you in advance.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Dear Jan, is it possible to have two copies of 4images.....
« Reply #1 on: April 10, 2003, 07:09:38 AM »
I think it is.
create ONE database, then run installation from first gallery
then run installation from second gallery, using same database BUT! enter different table preffix.
for example:
1st datbase will be with prefix 4images_
2nd database will be with prefix 4images2_

then, open in second gallery /includes/constants.php
and change
Quote
define('USERS_TABLE', $table_prefix.'users');

to
Quote
define('USERS_TABLE', '4images_users');

where 4images_users is table on first gallery

this is just a theory, I dont know if anyone tryed this before, so good luck ;)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline HelpMeNow

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
Thank you
« Reply #2 on: April 10, 2003, 07:52:10 AM »
Dear V@no,

Thank you for the prompt reply.

I just tried the above code briefly and it works perfect so far as I can tell. I'll try this a few days and if all goes as plan, I'll make a little post so that others can use this too if they need something alike.

Thanks again so much.

Offline HelpMeNow

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
Dear Jan, is it possible to have two copies of 4images.....
« Reply #3 on: April 10, 2003, 08:52:02 AM »
Dear V@no,

A few problems occur with this and I think it's because the "user" table holds information not just for the username and password, but user_lastaction, user_location, user_lastvisit, and user_comments, and this creats some problems as being kicked out if your are signed in and a few other little problems such as getting logged out if you go from one instance of 4images to the second instance of the 4images. Other problems like then "new images since last visit" will not work properly...and few little other things.

But, regardless....thanks again.  :)

andersen

  • Guest
Dear Jan, is it possible to have two copies of 4images.....
« Reply #4 on: May 04, 2003, 01:31:51 PM »
Dear V@no,

Very interesting in this topic, but the answer haven't finish yet...