Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-02-08 17:16:13

laurenthaug
New Member
From: Geneva, Switzerland
Registered: 2005-05-10
Posts: 2
Website

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):

&lt; script type=“text/javascript” &gt;
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=&lt;txp:article_id /&gt;“;
/* for me it means I have to write the following:
var postURL = “http://www.ballpark.ch/blog/?id=&lt;txp:article_id /&gt;“;
*/
var postTitle = “&lt;txp:title /&gt;“;
var commentAuthorFieldName = “comment_name_input”;
var commentAuthorLoggedIn = “false”;
var commentFormID = “txpCommentInputForm”;
var commentTextFieldName = “message”;
var commentButtonName = “submit”;
&lt; /script &gt;

Last edited by laurenthaug (2006-02-08 17:26:32)

Offline

#2 2006-02-08 18:26:20

asarbogast
Member
From: Arcata, CA
Registered: 2004-05-21
Posts: 33
Website

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

Board footer

Powered by FluxBB