cocomment enabling your blog with Flux CMS 1.4 and later

As mentioned in another post, Flux CMS can be made cocomment enabled (or if you install it, it already is). But our comment form has slightly changed with the 1.4 release of Flux CMS, so you maybe have to adjust the cocomment code in your blog.xsl. The correct code is now:

<xsl:if test="$singlePost = 'true'">
<xsl:variable name="entry" select="/bx/plugin[@name = 'blog']/xhtml:html/xhtml:body/xhtml:div"/>
<xsl:if test="$entry/@blog:post_comment_allowed='1'">

/* cocomment elements*/
var blogTool               = "Flux CMS";
var blogURL                = "<xsl:value-of select="$blogroot"/>";
var blogTitle              = "<xsl:value-of select="$dctitle"/>";
var postURL                = "<xsl:value-of select="$blogroot"/>archive/<xsl:value-of select="$entry/@blog:post_uri"/>.html";
var postTitle  = "<xsl:value-of select="$entry/xhtml:h2/text()"/>";
var commentAuthorFieldName = "name";
var commentAuthorLoggedIn  = false;

var commentFormID          = "bx_foo";
var commentTextFieldName   = "comments";
var commentButtonName      = "bx[plugins][blog][_all]";

</xsl:if>
</xsl:if>

Hope that helps

Related Entries:
cocomment enabled
Tagcloud Plugin
Make private post got more useful
rel="bookmark" added to permalinks
Problems with FCKEditor and Firefox 1.0
Comments (0)  Permalink

cocomment enabled

Flux CMS is now cocomment enabled. It comes with the default themes, but you can add it to your theme by yourself. Just add the following code to blog.xsl somewhere in a <script> block.

<xsl:if test="$singlePost = 'true'">
<xsl:variable name="entry" select="/bx/plugin[@name = 'blog']/xhtml:html/xhtml:body/xhtml:div"/>
<xsl:if test="$entry/@blog:post_comment_allowed='1'">
/* cocomment elements*/
var blogTool               = "Flux CMS";
var blogURL                = "<xsl:value-of select="$blogroot"/>";
var blogTitle              = "<xsl:value-of select="$dctitle"/>";
var postURL                = "<xsl:value-of select="$blogroot"/>archive/<xsl:value-of select="$entry/@blog:post_uri"/>.html";
var postTitle  = "<xsl:value-of select="$entry/xhtml:h2/text()"/>";
var commentAuthorFieldName = "bx_fw[name]";
var commentAuthorLoggedIn  = false;
var commentFormID          = "bx_foo";
var commentTextFieldName   = "bx_fw[comments]";
var commentButtonName      = "send";
</xsl:if>
</xsl:if>
Related Entries:
cocomment enabling your blog with Flux CMS 1.4 and later
Tagcloud Plugin
Make private post got more useful
rel="bookmark" added to permalinks
Problems with FCKEditor and Firefox 1.0
Comments (5)  Permalink
1-2/2