[pLog-svn] r5770 - in plugins/branches/lifetype-1.2: . cocomment unported
pwestbro at devel.lifetype.net
pwestbro at devel.lifetype.net
Wed Aug 1 19:32:25 EDT 2007
Author: pwestbro
Date: 2007-08-01 19:32:25 -0400 (Wed, 01 Aug 2007)
New Revision: 5770
Added:
plugins/branches/lifetype-1.2/cocomment/
Removed:
plugins/branches/lifetype-1.2/unported/cocomment/
Modified:
plugins/branches/lifetype-1.2/cocomment/plugincocomment.class.php
Log:
Moved the CoComment plugin to "ported" (It worked correctly.) Also updated
the javascript code to the sample that is on their website
http://www.cocomment.com/tools/integrate
Copied: plugins/branches/lifetype-1.2/cocomment (from rev 5632, plugins/branches/lifetype-1.2/unported/cocomment)
Modified: plugins/branches/lifetype-1.2/cocomment/plugincocomment.class.php
===================================================================
--- plugins/branches/lifetype-1.2/unported/cocomment/plugincocomment.class.php 2007-07-08 13:02:40 UTC (rev 5632)
+++ plugins/branches/lifetype-1.2/cocomment/plugincocomment.class.php 2007-08-01 23:32:25 UTC (rev 5770)
@@ -12,7 +12,7 @@
$this->id = "cocomment";
$this->author = "James Huang";
$this->desc = "Integrate cocomment into LifeType commentform template.";
- $this->version = "20070708";
+ $this->version = "20070801";
$this->locales = Array( "en_UK" , "zh_TW" );
if($source == "admin")
@@ -62,19 +62,23 @@
$post = $articles->getBlogArticle($postId);
$str = '<script type="text/javascript">';
- $str .= 'var blogTool = "LifeType";';
- $str .= 'var blogURL = "'.$rg->blogLink().'";';
- $str .= 'var blogTitle = "'.$this->blogInfo->getBlog().'";';
- $str .= 'var postURL = "'.$rg->postPermalink($post).'";';
- $str .= 'var postTitle = "'.$post->getTopic().'";';
- $str .= 'var commentAuthorFieldName = "userName";';
- $str .= 'var commentAuthorLoggedIn = false;';
- $str .='var commentFormID = "NewComment";';
- $str .='var commentTextFieldName = "commentText";';
- $str .='var commentButtonName = "Add";';
+ $str .= 'coco =';
+ $str .= '{';
+ $str .= 'tool : "LifeType",';
+ $str .= 'siteurl : "'.$rg->blogLink().'",';
+ $str .= 'sitetitle : "'.$this->blogInfo->getBlog().'",';
+ $str .= 'pageurl : "'.$rg->postPermalink($post).'",';
+ $str .= 'pagetitle : "'.$post->getTopic().'",';
+ $str .= 'authorID : "userName";';
+ // $str .= 'var commentAuthorLoggedIn = false;';
+ $str .= 'formID : "NewComment",';
+ $str .= 'textareaName: "commentText",';
+ $str .= 'buttonName : "Add"';
+ $str .= '}';
// $str .='var cocomment_force = false;';
- $str .='</script>';
- $str .='<script id="cocomment-fetchlet" src="http://www.cocomment.com/js/enabler.js"></script>';
+ $str .= '</script>';
+ $str .='<script id="cocomment-fetchlet" src="http://www.cocomment.com/js/enabler.js" type="text/javascript"></script>';
+ $str .= '</script>';
}
return $str;
}
More information about the pLog-svn
mailing list