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 12:38 CEST
Ganz genial dieses Tool..
Merci für den Tipp wie's zu integrieren ist!
axelspin @ 20.02.2006 13:03 CEST
cocomment added and now tried on freeflux
ycc2106 @ 28.02.2006 16:06 CEST
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 16:21 CEST
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 10:01 CEST
For all those using Flux CMS 1.4 and later. Here's the updated code

add a comment

This blog is gravatar enabled.
Your email adress will never be published.
Comment spam will be deleted!

Name*
E-Mail
For Spammers Only
URL
Comment*
Notify me via E-Mail when new comments are made to this entry
Remember me (needs cookies)