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

Comments

suls @ 13.02.2006 11:38 CET
Ganz genial dieses Tool..
Merci für den Tipp wie's zu integrieren ist!
axelspin @ 20.02.2006 12:03 CET
cocomment added and now tried on freeflux
ycc2106 @ 28.02.2006 15:06 CET
Great! As I use cocomment! :)
Problem: Since more than a week I can't login to admin, when I click submit, I see the page reloading but I'm stuck at the login...
What can I do?
chregu @ 28.02.2006 15:21 CET
ycc2106: Which admin? cocomment or freeflux? If you have problems with freeflux, you should use the forum (http://forum.freeflux.net/) for support questions.
chregu @ 13.07.2006 09:01 CET
For all those using Flux CMS 1.4 and later. Here's the updated code
No new comments allowed (anymore) on this post.