1. Notes
This method integrates a forum (any forum) into CMSMS only as far as looks are concerned. The forum will be displayed within CMSMS (in the content area of a page) but otherwise it will remain completely separate. Users will be required to register and login separately, for instance (even though they might already be logged in to CMSMS if your site is using the Frontend Users module).
2. Prerequisites
- Your CMSMS site and the forum engine need to be in the same domain (e.g. www.mydomain.com for the site itself and www.yourdomain.com/forum for the forum).
- Visitors of your site should have javascript enabled in their browser.
These prerequisites are due to the {embed} tag that I used for integrating the forum into CMSMS. This tag uses inline frames (hence the 1st prerequisite) and javascript. The {embed} tag is included in CMSMS by default, you don't need to install it separately.
3. Edit the template
Choose or create a CMSMS template you'll be using for your forum (Layout/Templates within the CMSMS Admin Panel). Open it and insert the following line anywhere between the HEAD tags:
{content block='headertags' wysiwyg='false'}
This will turn the FCKeditor (the word-processor like text editor) off for the pages that use this template.
4. Edit the Page you'll use for displaying the forum
Your forum is going to be displayed within one of the Pages of your site. Create this Page (the type of the page should be "content") and make sure it will use the template you created or modified in step 3.
Insert the following line into the "content" box:
{embed url=http://www.domain.org}
Of course you should replace www.domain.org with the URL of your forum (remember that the forum should be in the same domain as your site).
Now you should see another box below the content box called "Headertags" (if you don't see it, re-open the Page). Note that the "Headertags" box will not be displayed unless the Page you are editing uses the template created or modified in step 3. Insert the following line into this box:
{embed header=true}
5. You are done!
The page you have just created should display the forum within CMSMS. The height of the forum shoud be adjusted automatically and you should not see any scrollbars. If your are using IE, that is... If you are using Firefox, chances are that you'll see a vertical scrollbar, which shouldn't really be there. To get rid of the scrollbar, you'll need to edit the "function.embed.php" file, which is located in the "Plugins" folder of your CMSMS installation. Go to line 111, look for the "style=" variable, and set it to "hidden". Once you've made this small change, your forum should be displayed perfectly (without scrollbars) in your site.
Hope this helps


