CommentLuv - Version 2.81.2

Version Description

  • silly me, put the version number wrong!
  • Set back to default settings if upgrading from less than 2.81
  • Show url field for logged on user if buddypress is active
Download this release

Release Info

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

Code changes from version 2.81.1 to 2.81.2

Files changed (3) hide show
  1. commentluv-manager.php +2 -2
  2. commentluv.php +21 -5
  3. readme.txt +15 -3
commentluv-manager.php CHANGED
@@ -3,8 +3,8 @@ global $wpdb;
3
  if(!$wpdb){
4
  // not run from wordpress
5
  ?>
6
- <h1>CommentLuv <?php echo $this->cl_version/100;?></h1>
7
- <p>This is the settings page for CommentLuv <?php echo $this->version;?> and should not be viewed outside of the Wordpress dashboard</p>
8
  <p>You can download the latest version version of CommentLuv at Wordpress.org</p>
9
  <?php exit;
10
  }
3
  if(!$wpdb){
4
  // not run from wordpress
5
  ?>
6
+ <h1>CommentLuv </h1>
7
+ <p>This is the settings page for CommentLuv and should not be viewed outside of the Wordpress dashboard</p>
8
  <p>You can download the latest version version of CommentLuv at Wordpress.org</p>
9
  <?php exit;
10
  }
commentluv.php CHANGED
@@ -1,8 +1,8 @@
1
- <?php /* CommentLuv 2.8.1.1
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.8.1.1
6
  Author: Andy Bailey
7
  Author URI: http://fiddyp.co.uk/
8
  */
@@ -14,7 +14,7 @@ if (! class_exists ( 'commentluv' )) {
14
  var $plugin_domain = 'commentluv';
15
  var $plugin_url;
16
  var $db_option = 'commentluv_options';
17
- var $cl_version = 281.1;
18
  var $api_url;
19
  var $test = false;
20
 
@@ -31,7 +31,17 @@ if (! class_exists ( 'commentluv' )) {
31
 
32
  // can you dig it?
33
  if (version_compare ( $wp_version, "2.9.2", "<" )) {
34
- exit ( $exit_msg ); // no diggedy
 
 
 
 
 
 
 
 
 
 
35
  }
36
 
37
  // action hooks
@@ -288,7 +298,13 @@ if (! class_exists ( 'commentluv' )) {
288
  }
289
 
290
  echo "<input type='hidden' id='$cl_author_id' name='$cl_author_id' value='$author' />";
291
- echo "<input type='hidden' id='$cl_site_id' name='$cl_site_id' value='$url' />";
 
 
 
 
 
 
292
  }
293
  global $fieldsadded;
294
  if(!$fieldsadded){
1
+ <?php /* CommentLuv 2.81.2
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.81.2
6
  Author: Andy Bailey
7
  Author URI: http://fiddyp.co.uk/
8
  */
14
  var $plugin_domain = 'commentluv';
15
  var $plugin_url;
16
  var $db_option = 'commentluv_options';
17
+ var $cl_version = 281.2;
18
  var $api_url;
19
  var $test = false;
20
 
31
 
32
  // can you dig it?
33
  if (version_compare ( $wp_version, "2.9.2", "<" )) {
34
+ echo ( $exit_msg ); // no diggedy
35
+ }
36
+ // check if update changes needed
37
+ $installed_version = get_option('cl_version');
38
+ if(!$installed_version || $installed_version < $this->cl_version){
39
+ update_option('cl_version',$this->cl_version);
40
+ $options = $this->get_options();
41
+ // set new defaults for info back color and badge
42
+ $options['badge'] = 'CL91_White.gif';
43
+ $options['infoback'] = "white";
44
+ update_option($this->db_option,$options);
45
  }
46
 
47
  // action hooks
298
  }
299
 
300
  echo "<input type='hidden' id='$cl_author_id' name='$cl_author_id' value='$author' />";
301
+ // check for buddypress
302
+ if(function_exists('bp_core_setup_globals')){
303
+ $input_type = 'text';
304
+ } else {
305
+ $input_type = 'hidden';
306
+ }
307
+ echo "<input type='$input_type' id='$cl_site_id' name='$cl_site_id' value='$url' />";
308
  }
309
  global $fieldsadded;
310
  if(!$fieldsadded){
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === CommentLuv ===
2
- Contributors: @commentluv (concept & coding) @hishaman (css additions)
3
  Donate link:http://comluv.com/about/donate
4
  Tags: commentluv, comments, last blog post, linkluv, comment luv
5
  Requires at least: 2.9.2
6
  Tested up to: 3.0.1
7
- Stable tag: 2.8.1.1
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
 
@@ -53,9 +53,14 @@ You can submit a support ticket at http://comluv.com
53
  4. edit post comments
54
 
55
  == ChangeLog ==
 
 
 
 
 
56
  = 2.81.1 =
57
  * Prevent empty last post from being included. Also included in API
58
- * added Dutch translation (thanks Rene http://wpwebshop.com)
59
  * Also have commentluv on pages
60
  * updated badges to new version (thanks Byteful Traveller)
61
 
@@ -134,6 +139,13 @@ You can submit a support ticket at http://comluv.com
134
  = 2.7 =
135
  * 12 Jun 2009 - small fixes for valid xhtml on images and checkbox . remove identifying .-= / =-. from inserted link on display time.
136
 
 
 
 
 
 
 
 
137
  == Configuration ==
138
 
139
  Display Options : Enter the text you want displayed in the comment for the link that is added.
1
  === CommentLuv ===
2
+ Contributors: teamplaylotto, @commentluv, @hishaman (css additions)
3
  Donate link:http://comluv.com/about/donate
4
  Tags: commentluv, comments, last blog post, linkluv, comment luv
5
  Requires at least: 2.9.2
6
  Tested up to: 3.0.1
7
+ Stable tag: 2.81.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
 
53
  4. edit post comments
54
 
55
  == ChangeLog ==
56
+ = 2.81.2 =
57
+ * silly me, put the version number wrong!
58
+ * Set back to default settings if upgrading from less than 2.81
59
+ * Show url field for logged on user if buddypress is active
60
+
61
  = 2.81.1 =
62
  * Prevent empty last post from being included. Also included in API
63
+ * Fixed Dutch translation (thanks Rene http://wpwebshop.com)
64
  * Also have commentluv on pages
65
  * updated badges to new version (thanks Byteful Traveller)
66
 
139
  = 2.7 =
140
  * 12 Jun 2009 - small fixes for valid xhtml on images and checkbox . remove identifying .-= / =-. from inserted link on display time.
141
 
142
+ == Upgrade Notice ==
143
+
144
+ = 2.81.2 =
145
+
146
+ Shows url field on buddypress and fixes version number and badge display.
147
+
148
+
149
  == Configuration ==
150
 
151
  Display Options : Enter the text you want displayed in the comment for the link that is added.