Load the last version of Coppermine, copy and unpack it on your server. I changed the name of the directory where gallery is placed to "gallery". Then go to your homepage and install the gallery by calling http://www.yoursite.com/gallery (gallery - is the name of directory where your board is placed). Fill the fiels on installation page. Again paste as username for admin user the nickname of iCMSUser.
Go to admin panel of iCMSUser, choose "Manage Applications" and then Coppermine tab. Enter the required information:
Then activate the integration.
Now you have to connect the admin user of Coppermine with user already created in iCMSUser. Assume you have created user in iCMS with nickname "My Name" and username "master". You admin user in Coppermine has the username "My name". You can synchronize the both now: go to admin panel of iCMSUser, choose "Manage Users" and klick on the blue info button beside edit and delete button on the right side of the table. Click on "Synchronize user" link and iCMS module will connect the both user to one login. You can see the connected accounts if you klick on blue button again. Then log out from blog and try to login using iCMSUser login page. You are already logged in gallery. After logout on CMS page user is also logged out from gallery.
Next test: Register new user and check if he is created in Coppermine too.
All applications connected with iCMSUser has a cookie life time of 3153600 seconds. Except Coppermine. Life time of cookies in this application is shorter. Let us adjust it. Open file include/logger.inc.php and find the line:
define('CPG_WEEK',604800);
The seconds defined here are doubled to make cookie life time. So we can calculate 3153600 / 2 = 1576800 and replace the number with the result:
define('CPG_WEEK',1576800);
The second cookie is set in the file include/functions.inc.php. Search the function:
function user_save_profile()
{
global $CONFIG, $USER;
$data = base64_encode(serialize($USER));
setcookie($CONFIG['cookie_name'].'_data', $data, time()+86400*30, $CONFIG['cookie_path']);
}
Adjust the time value: time() + 31536000.
Now we have to prevent direct login into gallery. We have to be brought
automatically to login page of CMS instead of Coppermine login page. You
have to put some code in Coppermine. This code is already generated for
you in iCMSUser Panel. Go to "Manage Applications", choose Coppermine tab
and copy the code at the bottom of the page. Open file login.php and find the line:
define('IN_COPPERMINE', true);
Place the generated code before this line.
Proceed to integrate PHPFreeChat.