CommentLuv - Version 2.7.66

Version Description

Download this release

Release Info

Developer teamplaylotto
Plugin Icon 128x128 CommentLuv
Version 2.7.66
Comparing to
See all releases

Code changes from version 2.7.64 to 2.7.66

commentluv-manager.php CHANGED
@@ -23,6 +23,11 @@
23
  <label for="cl_heart_tip"><?php _e('Show heart on links?',$this->plugin_domain);?></label>
24
  </p>
25
  <p>
 
 
 
 
 
26
  <input type="checkbox" name="cl_use_template" <?php echo $use_template;?>/>
27
  <label for="cl_use_template"><?php _e('Use template insert to show badge and checkbox?',$this->plugin_domain);?> ( &lt;?php cl_display_badge(); ?&gt; )</label>
28
  </p>
@@ -42,7 +47,7 @@
42
  <tr><td><label><input type="radio" <?php echo $badge_text;?> name="cl_badge" value="text"><?php _e('Show text','commentluv')?></label> <input class="form-table" type="text" name="cl_show_text" value="<?php echo stripslashes($show_text);?>"></input></td><td></td><td></td><td></td><td><label><?php _e('Prepend html before badge or text (optional)',$this->plugin_domain);?></label><input class="form-table" type="text" name="cl_prepend" value="<?php echo stripslashes($prepend);?>"></input></tr>
43
  </table> <p></p>
44
  <h3><?php _e('CommentLuv Member Area',$this->plugin_domain);?></h3>
45
- <p><?php _e('If you register your site for free at <a href="http://comluv.com">ComLuv.com</a> you will be able to open up lots of features that are for members only like link tracking so you can see which of the comments you make on CommentLuv blogs are getting the last blog post clicked and the ability to send back more than just blog posts. You can even create your own WP2.7 blog there with commentluv pre-installed!.',$this->plugin_domain);?></p>
46
 
47
  <h3><?php _e('Technical Settings',$this->plugin_domain);?></h3>
48
  <small><?php _e('In most cases you shouldn\'t need to change these settings unless you have a customized comment form',$this->plugin_domain);?></small>
23
  <label for="cl_heart_tip"><?php _e('Show heart on links?',$this->plugin_domain);?></label>
24
  </p>
25
  <p>
26
+ <label for="infoback"><?php _e('Info panel background color',$this->plugin_domain);?></label><br>
27
+ <input type="text" size ="8" name="infoback" value="<?php echo stripslashes($infoback);?>"/>
28
+ <span style="background-color:<?php echo stripslashes($infoback);?>">....</span>
29
+ </p>
30
+ <p>
31
  <input type="checkbox" name="cl_use_template" <?php echo $use_template;?>/>
32
  <label for="cl_use_template"><?php _e('Use template insert to show badge and checkbox?',$this->plugin_domain);?> ( &lt;?php cl_display_badge(); ?&gt; )</label>
33
  </p>
47
  <tr><td><label><input type="radio" <?php echo $badge_text;?> name="cl_badge" value="text"><?php _e('Show text','commentluv')?></label> <input class="form-table" type="text" name="cl_show_text" value="<?php echo stripslashes($show_text);?>"></input></td><td></td><td></td><td></td><td><label><?php _e('Prepend html before badge or text (optional)',$this->plugin_domain);?></label><input class="form-table" type="text" name="cl_prepend" value="<?php echo stripslashes($prepend);?>"></input></tr>
48
  </table> <p></p>
49
  <h3><?php _e('CommentLuv Member Area',$this->plugin_domain);?></h3>
50
+ <p><?php _e('If you register your site for free at <a href="http://comluv.com">ComLuv.com</a> you will be able to choose from your 10 last posts when you comment on other CommentLuv blogs. You can even add more urls and default links. .',$this->plugin_domain);?></p>
51
 
52
  <h3><?php _e('Technical Settings',$this->plugin_domain);?></h3>
53
  <small><?php _e('In most cases you shouldn\'t need to change these settings unless you have a customized comment form',$this->plugin_domain);?></small>
commentluv.php CHANGED
@@ -2,7 +2,7 @@
2
  Plugin Name: CommentLuv
3
  Plugin URI: http://comluv.com/download/commentluv-wordpress/
4
  Description: Plugin to show a link to the last post from the commenters blog by parsing the feed at their given URL when they leave a comment. Rewards your readers and encourage more comments.
5
- Version: 2.7.64
6
  Author: Andy Bailey
7
  Author URI: http://fiddyp.co.uk/
8
  */
@@ -36,6 +36,7 @@ if (! class_exists ( 'commentluv' )) {
36
  // action hooks
37
  $this->plugin_url = trailingslashit ( WP_PLUGIN_URL . '/' . dirname ( plugin_basename ( __FILE__ ) ) );
38
  $this->api_url = 'http://api.comluv.com/cl_api/commentluvapi.php';
 
39
  add_action ( 'admin_menu', array (&$this, 'admin_menu' ) );
40
  add_action ( 'template_redirect', array (&$this, 'commentluv_scripts' ) ); // template_redirect always called when page is displayed to user
41
  add_action ( 'wp_head', array (&$this, 'commentluv_style' ) ); // add style sheet to header
@@ -95,7 +96,8 @@ if (! class_exists ( 'commentluv' )) {
95
  // insert options to header
96
  wp_localize_script ( 'commentluv', 'cl_settings', array ('name' => $author_name, 'url' => $url_name, 'comment' => $comment_name, 'email' => $email_name, 'prepend' => $prepend, 'badge' => $badge,
97
  'show_text' => $show_text, 'badge_text' => $badge_text, 'heart_tip' => $heart_tip, 'default_on' => $default_on, 'select_text' => $select_text,
98
- 'cl_version' => $this->cl_version, 'images' => $this->plugin_url . 'images/', 'api_url' => $this->api_url, 'refer' => $refer_page ) );
 
99
  }
100
  }
101
  // hook the head function for adding stylesheet
@@ -106,7 +108,7 @@ if (! class_exists ( 'commentluv' )) {
106
  // get plugin options
107
  function get_options() {
108
  // default values
109
- $options = array ('comment_text' => '[name]&#180;s last [type] ..[lastpost]', 'select_text' => 'choose a different post to show', 'default_on' => 'on', 'heart_tip' => 'on', 'use_template' => '', 'badge' => 'CL91x17-white2.gif', 'show_text' => 'CommentLuv Enabled', 'author_name' => 'author', 'url_name' => 'url', 'comment_name' => 'comment', 'email_name' => 'email', 'prepend' => '' );
110
  // get saved options unless reset button was pressed
111
  $saved = '';
112
  if (! isset ( $_POST ['reset'] )) {
@@ -151,6 +153,7 @@ if (! class_exists ( 'commentluv' )) {
151
  $options ['comment_name'] = $_POST ['cl_comment_name'];
152
  $options ['email_name'] = $_POST ['cl_email_name'];
153
  $options ['use_template'] = $_POST['cl_use_template'];
 
154
 
155
  // check for errors
156
  if (count ( $errors->errors ) > 0) {
@@ -263,6 +266,12 @@ if (! class_exists ( 'commentluv' )) {
263
  // hook the pre_comment_content to add the link
264
  function cl_post($commentdata) {
265
  if (isset ( $_POST ['cl_post'] ) && $_POST ['request_id'] != '' && is_numeric ( $_POST ['choice_id'] ) && isset ( $_POST ['cl_type'] )) {
 
 
 
 
 
 
266
  // get values posted
267
  $luvlink = $_POST ['cl_post'];
268
  if (strstr ( $luvlink, "commentluv.com/error-check" ) || $_POST ['request_id'] == 0) {
2
  Plugin Name: CommentLuv
3
  Plugin URI: http://comluv.com/download/commentluv-wordpress/
4
  Description: Plugin to show a link to the last post from the commenters blog by parsing the feed at their given URL when they leave a comment. Rewards your readers and encourage more comments.
5
+ Version: 2.7.66
6
  Author: Andy Bailey
7
  Author URI: http://fiddyp.co.uk/
8
  */
36
  // action hooks
37
  $this->plugin_url = trailingslashit ( WP_PLUGIN_URL . '/' . dirname ( plugin_basename ( __FILE__ ) ) );
38
  $this->api_url = 'http://api.comluv.com/cl_api/commentluvapi.php';
39
+ //$this->api_url = 'http://firedwok.com/api/cl_api/commentluvapi.php';
40
  add_action ( 'admin_menu', array (&$this, 'admin_menu' ) );
41
  add_action ( 'template_redirect', array (&$this, 'commentluv_scripts' ) ); // template_redirect always called when page is displayed to user
42
  add_action ( 'wp_head', array (&$this, 'commentluv_style' ) ); // add style sheet to header
96
  // insert options to header
97
  wp_localize_script ( 'commentluv', 'cl_settings', array ('name' => $author_name, 'url' => $url_name, 'comment' => $comment_name, 'email' => $email_name, 'prepend' => $prepend, 'badge' => $badge,
98
  'show_text' => $show_text, 'badge_text' => $badge_text, 'heart_tip' => $heart_tip, 'default_on' => $default_on, 'select_text' => $select_text,
99
+ 'cl_version' => $this->cl_version, 'images' => $this->plugin_url . 'images/', 'api_url' => $this->api_url, 'refer' => $refer_page,
100
+ 'infoback' => $infoback,'usetemplate'=>$use_template) );
101
  }
102
  }
103
  // hook the head function for adding stylesheet
108
  // get plugin options
109
  function get_options() {
110
  // default values
111
+ $options = array ('comment_text' => '[name]&#180;s last [type] ..[lastpost]', 'select_text' => 'choose a different post to show', 'default_on' => 'on', 'heart_tip' => 'on', 'use_template' => '', 'badge' => 'CL91x17-white2.gif', 'show_text' => 'CommentLuv Enabled', 'author_name' => 'author', 'url_name' => 'url', 'comment_name' => 'comment', 'email_name' => 'email', 'prepend' => '', 'infoback' => 'pink' );
112
  // get saved options unless reset button was pressed
113
  $saved = '';
114
  if (! isset ( $_POST ['reset'] )) {
153
  $options ['comment_name'] = $_POST ['cl_comment_name'];
154
  $options ['email_name'] = $_POST ['cl_email_name'];
155
  $options ['use_template'] = $_POST['cl_use_template'];
156
+ $options ['infoback'] = htmlspecialchars($_POST['infoback']);
157
 
158
  // check for errors
159
  if (count ( $errors->errors ) > 0) {
266
  // hook the pre_comment_content to add the link
267
  function cl_post($commentdata) {
268
  if (isset ( $_POST ['cl_post'] ) && $_POST ['request_id'] != '' && is_numeric ( $_POST ['choice_id'] ) && isset ( $_POST ['cl_type'] )) {
269
+ if(!defined('LUVEDIT')){
270
+ define("LUVEDIT",1);
271
+ } else {
272
+ // already been here so shoo!
273
+ return $commentdata;
274
+ }
275
  // get values posted
276
  $luvlink = $_POST ['cl_post'];
277
  if (strstr ( $luvlink, "commentluv.com/error-check" ) || $_POST ['request_id'] == 0) {
images/CL88_Black4.gif ADDED
Binary file
images/CL88_White4.gif ADDED
Binary file
images/CL91_Black4.gif ADDED
Binary file
images/CL91_White4.gif ADDED
Binary file
images/blog.gif CHANGED
Binary file
images/down-arrow.gif CHANGED
Binary file
images/littleheart.gif CHANGED
Binary file
images/twitter.gif CHANGED
Binary file
images/undefined.gif CHANGED
Binary file
js/commentluv.js CHANGED
@@ -68,7 +68,7 @@
68
  // set click on anywhere closes info box
69
  $(document).click(heart_small);
70
  function heart_big(){
71
- $("body").append('<span id="heart_tip_big" style="position:absolute; z-index: 101; background-color: pink; width: 62px;"><img src="' + cl_settings['images'] + 'loader.gif" alt="Loading" width="62" height="13" /></span>');
72
  // find where to put left edge of info box (in case at right hand side of screen
73
  //opera Netscape 6 Netscape 4x Mozilla
74
  if (window.innerWidth || window.innerHeight){
@@ -94,7 +94,7 @@
94
  $('#heart_tip_big').hoverIntent({over:do_nowt,out: heart_small, interval : 50, timeout: 350});
95
  var linkspan = $(this).parents(".cluv");
96
  var link = $(linkspan).find("a:first").attr("href");
97
- var url = cl_settings['api_url'] + "?type=info&refer=" + cl_settings['refer'] + "&url=" + link + '&version='+ cl_settings['cl_version'] + '&callback=?';
98
  do_info(url);
99
  }
100
  function heart_small(){
68
  // set click on anywhere closes info box
69
  $(document).click(heart_small);
70
  function heart_big(){
71
+ $("body").append('<span id="heart_tip_big" style="position:absolute; z-index: 101; background-color: ' + cl_settings['infoback'] + '; width: 62px;"><img src="' + cl_settings['images'] + 'loader.gif" alt="Loading" width="62" height="13" /></span>');
72
  // find where to put left edge of info box (in case at right hand side of screen
73
  //opera Netscape 6 Netscape 4x Mozilla
74
  if (window.innerWidth || window.innerHeight){
94
  $('#heart_tip_big').hoverIntent({over:do_nowt,out: heart_small, interval : 50, timeout: 350});
95
  var linkspan = $(this).parents(".cluv");
96
  var link = $(linkspan).find("a:first").attr("href");
97
+ var url = cl_settings['api_url'] + "?type=info&refer=" + cl_settings['refer'] + '&version='+ cl_settings['cl_version'] + '&callback=?' + "&url=" + link ;
98
  do_info(url);
99
  }
100
  function heart_small(){
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:http://comluv.com/about/donate
4
  Tags: commentluv, comments, last blog post, linkluv
5
  Requires at least: 2.8
6
  Tested up to: 2.9
7
- Stable tag: 2.7.64
8
 
9
  Reward your readers by automatically placing a link to their last blog post at the end of their comment. Encourage a community and discover new posts.
10
 
@@ -34,8 +34,7 @@ No. The link and a small bit of associated data is appended to the comment conte
34
 
35
  = Will this plugin work with Disqus/Intense Debate/js-kit? =
36
 
37
- There is currently a version available for JS-Kit (Echo).
38
- Intense Debate and Disqus may be suppported soon.
39
 
40
  = I am having a problem getting it to work =
41
 
@@ -48,6 +47,13 @@ You can submit a support ticket at http://comluv.com
48
 
49
  == ChangeLog ==
50
 
 
 
 
 
 
 
 
51
  = 2.764 =
52
  * Removed json_decode. Some wp2.9 installs were getting errors
53
 
4
  Tags: commentluv, comments, last blog post, linkluv
5
  Requires at least: 2.8
6
  Tested up to: 2.9
7
+ Stable tag: 2.7.66
8
 
9
  Reward your readers by automatically placing a link to their last blog post at the end of their comment. Encourage a community and discover new posts.
10
 
34
 
35
  = Will this plugin work with Disqus/Intense Debate/js-kit? =
36
 
37
+ Intense Debate comments have a commentluv plugin built in. Just enable from your ID dashboard
 
38
 
39
  = I am having a problem getting it to work =
40
 
47
 
48
  == ChangeLog ==
49
 
50
+ = 2.766 =
51
+ * Check if function has been called before to prevent two links being added.
52
+ * updated images (supplied by http://byteful.com)
53
+
54
+ = 2.765 =
55
+ * Hollys changes. Allow user choice of colour for the info panel background.
56
+
57
  = 2.764 =
58
  * Removed json_decode. Some wp2.9 installs were getting errors
59