Add a forum to your website
With Composite.Community.Forum.Nabble, you can embed a forum hosted on nabble.com.
How to implement
Step 1. Before you embed a forum on your website, set up the forum at nabble.com and get the embed code:
- Create a free forum at http://n5.nabble.com/free-forum.html.
- Configure and customize the forum at nabble.com - by creating sub-forums, setting proper permissions, customizing the appearance etc.
- On the main page of your forum a tnabble.com, click Options > Embedding Options to open the page with the forum's code.
- Under Javascript Code, select and copy the code.
The code will look similar to this:
<a id="nabblelink" href="http://composite-c1.1060022.n5.nabble.com/">Composite C1</a> <script src="http://composite-c1.1060022.n5.nabble.com/embed/f4654213"></script>
Step 2. Now embed the forum on your website:
- In the Content perspective, create or edit a page where you want to embed the forum, e.g. "Forum".
- Add the
Composite.Community.Forum.Nabble function (
Insert >
Function) or insert the similar code on the page:
(In the above example, we use sample code to embed.)<f:function name="Composite.Community.Forum.Nabble" xmlns:f="http://www.composite.net/ns/function/1.0"> <f:param name="EmbedCode" value="<a id="nabblelink" href="http://composite-c1.1060022.n5.nabble.com/">Composite C1</a> <script src="http://composite-c1.1060022.n5.nabble.com/embed/f4654213"></script>" /> </f:function>
- In the Embed Code parameter, paste the code copied from your forum's Embedding Options (see above).
- Save and publish the page.
Step 3. If you want the users to be redirected to the Forum page on your website when they access your forum directly at nabble.com:
- Open the "Forum" page on your website.
- Log in to the forum.
- Click Options > Embedding Options.
- Under Redirect Users, select the option "Redirect them to: {URL to the Forum page on your website}".
- Click Save Changes.
Requirements
Composite C1 version 2.1.1 or later