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:

  1. Create a free forum at http://n5.nabble.com/free-forum.html.
  2. Configure and customize the forum at nabble.com - by creating sub-forums, setting proper permissions, customizing the appearance etc.
  3. On the main page of your forum a tnabble.com, click Options > Embedding Options to open the page with the forum's code.
  4. 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:

  1. In the Content perspective, create or edit a page where you want to embed the forum, e.g. "Forum".
  2. Add the Composite.Community.Forum.Nabble function ( Insert > Function) or insert the similar code on the page:

     
    <f:function name="Composite.Community.Forum.Nabble" xmlns:f="http://www.composite.net/ns/function/1.0"> 
      <f:param name="EmbedCode" value="&lt;a id=&quot;nabblelink&quot; href=&quot;http://composite-c1.1060022.n5.nabble.com/&quot;&gt;Composite C1&lt;/a&gt; &lt;script src=&quot;http://composite-c1.1060022.n5.nabble.com/embed/f4654213&quot;&gt;&lt;/script&gt;" /> 
    </f:function>
    (In the above example, we use sample code to embed.)
  3. In the Embed Code parameter, paste the code copied from your forum's Embedding Options (see above).
  4. 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:

  1. Open the "Forum" page on your website.
  2. Log in to the forum.
  3. Click Options > Embedding Options.
  4. Under Redirect Users, select the option "Redirect them to: {URL to the Forum page on your website}".
  5. Click Save Changes.

Requirements

Composite C1 version 2.1.1 or later

SHARE