CommentLuv - Version 2.90.8.3

Version Description

  • fixed : fixed the error with cl_settings not defined (it was not localizing the script)
Download this release

Release Info

Developer commentluv
Plugin Icon 128x128 CommentLuv
Version 2.90.8.3
Comparing to
See all releases

Code changes from version 2.90.8.2 to 2.90.8.3

Files changed (3) hide show
  1. commentluv.php +12 -10
  2. js/commentluv.js +1 -1
  3. readme.txt +4 -1
commentluv.php CHANGED
@@ -2,7 +2,7 @@
2
  Plugin Name: CommentLuv
3
  Plugin URI: http://comluv.com/
4
  Description: 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.
5
- Version: 2.90.8.2
6
  Author: Andy Bailey
7
  Author URI: http://www.commentluv.com
8
  Copyright (C) <2011> <Andy Bailey>
@@ -28,7 +28,7 @@
28
  var $plugin_url;
29
  var $plugin_dir;
30
  var $db_option = 'commentluv_options';
31
- var $version = "2.90.8.2";
32
  var $slug = 'commentluv-options';
33
  var $localize;
34
  var $is_commentluv_request = false;
@@ -183,8 +183,9 @@
183
  }
184
  }
185
  function add_footer(){
 
186
  extract($this->get_options());
187
- if((isset($minifying) && $minifying != 'on') || !$this->is_enabled()){
188
  return;
189
  }
190
  // from the excellent book wp-ajax (http://www.wpajax.com/)
@@ -232,14 +233,13 @@
232
  * used to add the commentluv script and localized settings (if not using minifying compatibility)
233
  */
234
  function add_script(){
 
 
235
  $options = $this->get_options();
236
  extract($options);
237
  if(!$this->is_enabled()){
238
  return;
239
  }
240
- if(!isset($template_insert)){
241
- $template_insert = false;
242
- }
243
  wp_enqueue_script('commentluv_script');
244
  $this->localize = array ('name' => $author_name, 'url' => $url_name, 'comment' => $comment_name, 'email' => $email_name,
245
  'infopanel' => $infopanel, 'default_on' => $default_on, 'default_on_admin' => $default_on_admin,
@@ -251,9 +251,10 @@
251
  'no_http_message'=>__('Please use http:// in front of your url',$this->plugin_domain),
252
  'no_url_logged_in_message'=>__('You need to visit your profile in the dashboard and update your details with your site URL',$this->plugin_domain),
253
  'no_info_message'=>__('No info was available or an error occured',$this->plugin_domain));
254
- if(!isset($minifying)){
255
  wp_localize_script('commentluv_script','cl_settings',$this->localize);
256
  }
 
257
 
258
  }
259
  /**
@@ -381,7 +382,7 @@
381
  * @param string $commentdata - status of comment
382
  */
383
  function comment_posted($id,$approved){
384
- if(isset($_POST['cl_post_url']) && isset($_POST['cl_post_title'])){
385
  //$title = apply_filters('kses',$_POST['cl_post_title']);
386
  $title = strip_tags($_POST['cl_post_title']);
387
  //$link = apply_filters('kses',$_POST['cl_post_url']);
@@ -1132,7 +1133,7 @@
1132
  <rss version="2.0">
1133
  <channel>
1134
  <title><![CDATA['. get_bloginfo('title') .']]></title>
1135
- <link>'. get_bloginfo('home') .'</link>
1136
  <description><![CDATA['. get_bloginfo('description') .']]></description>
1137
  <language>'.get_bloginfo('language').'</language>
1138
  <generator>commentluv?v='.$this->version.'</generator>
@@ -1272,7 +1273,7 @@
1272
  </tr>
1273
  <tr class="ifenable">
1274
  <td style="text-align: center;" colspan="2">
1275
- <input type="checkbox" name="<?php echo $dbo;?>[default_on]" <?php if(isset($o['default_on_admin'])) checked($o['default_on'],'on');?> value="on"/> <label for="<?php echo $dbo;?>[default_on]"><?php _e('On by default?',$pd);?></label>
1276
  </td>
1277
  <td></td>
1278
  <td style="text-align: center;" colspan="2">
@@ -1595,6 +1596,7 @@
1595
  <tr><td><img src="<?php echo $this->plugin_url;?>images/ro.png"/> <?php _e('Romanian',$this->plugin_domain);?></td><td><a target="_blank" href="http://obisnuit.eu/">Manuel Cheta</a></td></tr>
1596
  <tr><td><img src="<?php echo $this->plugin_url;?>images/no.png"/> <?php _e('Norwegian',$this->plugin_domain);?></td><td><a target="_blank" href="http://www.drommeland.com/">Hanna</a></td></tr>
1597
  <tr><td><img src="<?php echo $this->plugin_url;?>images/fr.png"/> <?php _e('French',$this->plugin_domain);?></td><td><a target="_blank" href="http://etreheureux.fr/">Jean-Luc Matthys</a></td></tr>
 
1598
  <tr><td><img src="<?php echo $this->plugin_url;?>images/ru.png"/> <?php _e('Russian',$this->plugin_domain);?></td><td><!--<a target="_blank" href="http://www.fatcow.com/">Fatcow</a>--></td></tr>
1599
  <tr><td><img src="<?php echo $this->plugin_url;?>images/il.png"/> <?php _e('Hebrew',$this->plugin_domain);?></td><td><!--<a target="_blank" href="http://www.maorb.info/">Maor Barazany</a>--></td></tr>
1600
 
2
  Plugin Name: CommentLuv
3
  Plugin URI: http://comluv.com/
4
  Description: 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.
5
+ Version: 2.90.8.3
6
  Author: Andy Bailey
7
  Author URI: http://www.commentluv.com
8
  Copyright (C) <2011> <Andy Bailey>
28
  var $plugin_url;
29
  var $plugin_dir;
30
  var $db_option = 'commentluv_options';
31
+ var $version = "2.90.8.3";
32
  var $slug = 'commentluv-options';
33
  var $localize;
34
  var $is_commentluv_request = false;
183
  }
184
  }
185
  function add_footer(){
186
+ $minifying = 'off';
187
  extract($this->get_options());
188
+ if($minifying != 'on' || !$this->is_enabled()){
189
  return;
190
  }
191
  // from the excellent book wp-ajax (http://www.wpajax.com/)
233
  * used to add the commentluv script and localized settings (if not using minifying compatibility)
234
  */
235
  function add_script(){
236
+ $minifying = 'off';
237
+ $template_insert = false;
238
  $options = $this->get_options();
239
  extract($options);
240
  if(!$this->is_enabled()){
241
  return;
242
  }
 
 
 
243
  wp_enqueue_script('commentluv_script');
244
  $this->localize = array ('name' => $author_name, 'url' => $url_name, 'comment' => $comment_name, 'email' => $email_name,
245
  'infopanel' => $infopanel, 'default_on' => $default_on, 'default_on_admin' => $default_on_admin,
251
  'no_http_message'=>__('Please use http:// in front of your url',$this->plugin_domain),
252
  'no_url_logged_in_message'=>__('You need to visit your profile in the dashboard and update your details with your site URL',$this->plugin_domain),
253
  'no_info_message'=>__('No info was available or an error occured',$this->plugin_domain));
254
+ if($minifying != 'on'){
255
  wp_localize_script('commentluv_script','cl_settings',$this->localize);
256
  }
257
+
258
 
259
  }
260
  /**
382
  * @param string $commentdata - status of comment
383
  */
384
  function comment_posted($id,$approved){
385
+ if(isset($_POST['cl_post_url']) && $_POST['cl_post_url'] != '' && isset($_POST['cl_post_title']) && $_POST['cl_post_title'] != ''){
386
  //$title = apply_filters('kses',$_POST['cl_post_title']);
387
  $title = strip_tags($_POST['cl_post_title']);
388
  //$link = apply_filters('kses',$_POST['cl_post_url']);
1133
  <rss version="2.0">
1134
  <channel>
1135
  <title><![CDATA['. get_bloginfo('title') .']]></title>
1136
+ <link>'. home_url() .'</link>
1137
  <description><![CDATA['. get_bloginfo('description') .']]></description>
1138
  <language>'.get_bloginfo('language').'</language>
1139
  <generator>commentluv?v='.$this->version.'</generator>
1273
  </tr>
1274
  <tr class="ifenable">
1275
  <td style="text-align: center;" colspan="2">
1276
+ <input type="checkbox" name="<?php echo $dbo;?>[default_on]" <?php if(isset($o['default_on'])) checked($o['default_on'],'on');?> value="on"/> <label for="<?php echo $dbo;?>[default_on]"><?php _e('On by default?',$pd);?></label>
1277
  </td>
1278
  <td></td>
1279
  <td style="text-align: center;" colspan="2">
1596
  <tr><td><img src="<?php echo $this->plugin_url;?>images/ro.png"/> <?php _e('Romanian',$this->plugin_domain);?></td><td><a target="_blank" href="http://obisnuit.eu/">Manuel Cheta</a></td></tr>
1597
  <tr><td><img src="<?php echo $this->plugin_url;?>images/no.png"/> <?php _e('Norwegian',$this->plugin_domain);?></td><td><a target="_blank" href="http://www.drommeland.com/">Hanna</a></td></tr>
1598
  <tr><td><img src="<?php echo $this->plugin_url;?>images/fr.png"/> <?php _e('French',$this->plugin_domain);?></td><td><a target="_blank" href="http://etreheureux.fr/">Jean-Luc Matthys</a></td></tr>
1599
+ <tr><td><img src="<?php echo $this->plugin_url;?>images/dk.png"/> <?php _e('Danish',$this->plugin_domain);?></td><td><a target="_blank" href="http://w3blog.dk/">Jimmy Sigenstroem</a></td></tr>
1600
  <tr><td><img src="<?php echo $this->plugin_url;?>images/ru.png"/> <?php _e('Russian',$this->plugin_domain);?></td><td><!--<a target="_blank" href="http://www.fatcow.com/">Fatcow</a>--></td></tr>
1601
  <tr><td><img src="<?php echo $this->plugin_url;?>images/il.png"/> <?php _e('Hebrew',$this->plugin_domain);?></td><td><!--<a target="_blank" href="http://www.maorb.info/">Maor Barazany</a>--></td></tr>
1602
 
js/commentluv.js CHANGED
@@ -1,4 +1,4 @@
1
- // commentluv 2.90.8.2
2
  jQuery(document).ready(function(){
3
  // get the form object and fields
4
  var formObj = jQuery('#cl_post_title').parents('form');
1
+ // commentluv 2.90.8.3
2
  jQuery(document).ready(function(){
3
  // get the form object and fields
4
  var formObj = jQuery('#cl_post_title').parents('form');
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:http://comluv.com/about/donate
4
  Tags: commentluv, comments, last blog post, linkluv, comment luv , commentlove, comment love
5
  Requires at least: 3.0
6
  Tested up to: 3.2.1
7
- Stable tag: 2.90.8.2
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
 
@@ -69,6 +69,9 @@ Please see the videos in the settings page for explanations of how they work.
69
  4. edit post comments
70
 
71
  == ChangeLog ==
 
 
 
72
  = 2.90.8.2 =
73
  * added : french translation
74
  * fixed : sorry! I messed up the code when I tried to remove notices from happening in debug mode which made some blogs have an error.
4
  Tags: commentluv, comments, last blog post, linkluv, comment luv , commentlove, comment love
5
  Requires at least: 3.0
6
  Tested up to: 3.2.1
7
+ Stable tag: 2.90.8.3
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
 
69
  4. edit post comments
70
 
71
  == ChangeLog ==
72
+ = 2.90.8.3 =
73
+ * fixed : fixed the error with cl_settings not defined (it was not localizing the script)
74
+
75
  = 2.90.8.2 =
76
  * added : french translation
77
  * fixed : sorry! I messed up the code when I tried to remove notices from happening in debug mode which made some blogs have an error.