==========================================================
Integration 4images 1.7 / phpBB 2
==========================================================
Note: Main part in sessions.php is adapted from of phpBB
(C) 2001 The phpBB Group
phpBB and the file sessions.php are released under
the GNU General Public License
----------------------------------------------------------
Installation
----------------------------------------------------------
1. Replace the template user_loginform.html in your templates
folder with the file in this zip.
2. Replace the file sessions.php in your includes folder with
the file in this zip.
3. Open sessions.php and edit the configuration part at the top
of the file.
4. Open includes/constants.php and edit the following parts:
---------
Change:
define('SESSIONS_TABLE', $table_prefix.'sessions');
to:
define('SESSIONS_TABLE', 'phpbb_sessions');
(Maybe you should change the table prefix "phpbb_")
---------
Change:
define('USERS_TABLE', $table_prefix.'users');
to:
define('USERS_TABLE', 'phpbb_users');
(Maybe you should change the table prefix "phpbb_")
---------
Change:
define('GUEST', -1);
define('USER_AWAITING', 1);
define('USER', 2);
define('ADMIN', 9);
to:
define('GUEST', -1);
define('USER_AWAITING', -1);
define('USER', 0);
define('ADMIN', 1);
---------
Change:
define('ADMIN_SAFE_LOGIN', 1);
to:
define('ADMIN_SAFE_LOGIN', 0);
----------------------------------------------------------
Installation Notes
----------------------------------------------------------
1. Integration works only if the tables of 4images and
phpBB are on the same database.
---------
1. We recommend you to use integration only with fresh new
installations of 4images because of the following reason:
In the 4images user-table User A has the User-ID "1".
After integration 4images will use the user-table of phpBB.
There, the User A has the User-ID "2" and User B the
User-ID "1".
All images, comments and usergroup memberships are now
"owned" by User B.
---------
2. If you run 4images and phpBB under different subdomains,
for example
http://4images.domain.com and
http://phpbb.domain.com,
you should use the following setting for phpBB in
"General Admin -> Configuration":
Cookie Domain = .domain.com
Note the point at the beginning!
---------
3. If you delete users, you should delete the user first over
the Control Panel of 4images and after that over the
Administration Panel of phpBB.
This is neccessary to delete/modify all user-related data
from the 4images database (images, comments, usergroups).