Download and unzip the last version of Lifetype to the blog directory, ie. /blogs. Then go to your browser and type http://www.yoursite.com/blogs. Click on install link and provide your database information on the next site. UTF-8 on the next page is good :) Leave prefix as is unless you know what you do. After installation you have to create admin user. User Name is the nickname in your iCMSUser.
Go to admin panel of iCMSUser, choose "Manage Applications" and then Lifetype tab. Enter the required information:
Then activate the integration.
Now you have to connect the admin user of Lifetype with user already created in iCMSUser. Assume you have created user in iCMS with nickname "My Name" and username "master". You admin user in Lifetype 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 blog. After logout on CMS page user is also logged out from blog.
Next test: Register new user and check if he is created in Lifetype too.
Everything works now, but Lifetype does not support cookie for remember passwords. It means that after some time login information is gone from blog and you have to login again. It is not good since we are instantly logged in all other applications. So we are going to integrate the cookie in it. You have now to put some code in Lifetype. This code is already generated for you in iCMSUser Panel. Go to "Manage Applications", choose Lifetype tab and copy the first piece of code (there are two of them). Open file class/net/http/session/sessionmanager.class.php and find the line:
$__sessionManagerInitialized = true;
Add the generated piece of code just above this line.
User have to register through our module so we have to prevent registering directly in blogs. Go to "Administration" and Summary in Global Settings. Set summary_disable_registration to "Yes". Then go to tab "Templates " and set template_cache_enabled to "No" to prevent the logged user information to be cached on summary page.
Now we have to prevent direct login into blog. We have to be brought automatically to login page of CMS instead of Lifetype login page. You have to put some code in Lifetype. This code is already generated for you in iCMSUser Panel. Go to "Manage Applications", choose Lifetype tab and copy the seconde piece of code at the bottom of the page. Open file admin.php and find:
SessionManager::init();
Place the generated code after this line.
"User account fields" are username, password, email - all the information we gather in iCMSUser. So we have to prevent this fields from changing directly in blog otherwise login will be broken. Unfortunately there is no way to do it through Admin panel so you have to change templates in lifetype. Open file templates/admin/usersettings.template. To delete password field find the lines and delete them:
<div class="field">You cannot delete field for "Email" and "You bio" fields since it will broke the functionality of Lifetype. But we can disable the fields. Find in the same file the lines and make changes marked red:
<div class="field">
Modify the code for You bio field as marked in the code below:
If you use any other language on your site than English or even have blogs in different languages you better make your Lifetype template to show to content in utf-8. Open file with your interface language (default is locale/locale_en_UK.php) and set the first line as follows: $messages['encoding'] = 'utf-8'; You have to overwrite existing setting.
TODO
You can proceed to integration of Picture Gallery Coppermine.