Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Make TextPattern compatible with cocomment:
To make your TextPattern blog compatible with cocomment (www.cocomment.com), simply add the following code to the <em>comment_form</em> form (under the presentation tab):
< script type=“text/javascript” >
var blogTool = “TextPattern”;
var blogURL = “Replace with URL of your blog”;
var blogTitle = “Replace with Title of your blog”;
var postURL = “URL of your blog then add the following: /?id=<txp:article_id />“;
/* for me it means I have to write the following:
var postURL = “http://www.ballpark.ch/blog/?id=<txp:article_id />“;
*/
var postTitle = “<txp:title />“;
var commentAuthorFieldName = “comment_name_input”;
var commentAuthorLoggedIn = “false”;
var commentFormID = “txpCommentInputForm”;
var commentTextFieldName = “message”;
var commentButtonName = “submit”;
< /script >
Last edited by laurenthaug (2006-02-08 17:26:32)
Offline
Re: Make TextPattern compatible with cocomment:
Thanks!
If you change
<code>var postTitle = “”;</code>
to
<code>var postTitle = “<txp:title />”;</code>
the title of the post will show up in coComment, rather than just “null”.
Offline