CommentLuv - Version 2.7.61

Version Description

Download this release

Release Info

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

Code changes from version 2.7.6 to 2.7.61

Files changed (2) hide show
  1. commentluv.php +51 -41
  2. readme.txt +31 -10
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.6
6
  Author: Andy Bailey
7
  Author URI: http://fiddyp.comluv.com/
8
 
@@ -14,12 +14,12 @@ removed request id data from being inserted (too many complaints!) and adjusted
14
  delete is done at change status (with no request id sent)
15
  12 Jun 2009 - small fixes for valid xhtml on images and checkbox . remove identifying .-= / =-. from inserted link on display time. happy birthday to me
16
  13 Jun 2009 - fix php4 from not allowing last string pos (strrpos) (thanks http://www.makeupandbeautyblog.com/ && http://jahangiri.us/news/)
17
- - validates for Kelson (speedforce.org) (had a big cake yesterday nomnom)
18
- 14 Jun 2009 - Italian translation added (and fix CR in string on manager page). Thanks go to Gianni Diurno
19
  16 Jun 2009 - Bug fix, use_template checkbox not displaying when selected on settings page (breaker). typo in settings page now uses <?php cl_display_badge(); ?> (oops!)
20
- - added global variable for badgeshown to prevent mulitple instances (template contains function call AND use template check is off)
21
- - fixed output of prepend html using decode html and stripslashes. Added green background to update settings button.
22
-
23
  */
24
  // Avoid name collision
25
  if (! class_exists ( 'commentluv' )) {
@@ -31,7 +31,7 @@ if (! class_exists ( 'commentluv' )) {
31
  var $db_option = 'commentluv_options';
32
  var $cl_version = 276;
33
  var $api_url;
34
-
35
  //initialize the plugin
36
  function commentluv() {
37
  global $wp_version, $pagenow;
@@ -42,12 +42,12 @@ if (! class_exists ( 'commentluv' )) {
42
  $this->handle_load_domain ();
43
  }
44
  $exit_msg = __ ( 'CommentLuv requires Wordpress 2.6.5 or newer.', $this->plugin_domain ) . '<a href="http://codex.wordpress.org/Upgrading_Wordpress">' . __ ( 'Please Update!', $this->plugin_domain ) . '</a>';
45
-
46
  // can you dig it?
47
  if (version_compare ( $wp_version, "2.6.5", "<" )) {
48
  exit ( $exit_msg ); // no diggedy
49
  }
50
-
51
  // action hooks
52
  $this->plugin_url = trailingslashit ( WP_PLUGIN_URL . '/' . dirname ( plugin_basename ( __FILE__ ) ) );
53
  $this->api_url = 'http://api.comluv.com/cl_api/commentluvapi.php';
@@ -61,7 +61,7 @@ if (! class_exists ( 'commentluv' )) {
61
  add_filter ( 'comment_text', array (&$this, 'do_shortcode' ), 10 ); // replace inserted data with hidden span on display time of comment
62
  add_filter ( 'pre_comment_content', array (&$this, 'cl_post' ), 10 ); // extract extra fields data and insert data to end of comment
63
  }
64
-
65
  // hook the options page
66
  function admin_menu() {
67
  $menutitle = '<img src="' . $this->plugin_url . 'images/littleheart.gif" alt=""/> ';
@@ -113,7 +113,7 @@ if (! class_exists ( 'commentluv' )) {
113
  function commentluv_style() {
114
  echo '<link rel="stylesheet" href="' . $this->plugin_url . 'style/cl_style.css" type="text/css" />';
115
  }
116
-
117
  // get plugin options
118
  function get_options() {
119
  // default values
@@ -123,7 +123,7 @@ if (! class_exists ( 'commentluv' )) {
123
  if (! isset ( $_POST ['reset'] )) {
124
  $saved = get_option ( $this->db_option );
125
  }
126
-
127
  // assign values
128
  if (! empty ( $saved )) {
129
  foreach ( $saved as $key => $option ) {
@@ -137,18 +137,18 @@ if (! class_exists ( 'commentluv' )) {
137
  // return the options
138
  return $options;
139
  }
140
-
141
  // handle saving and displaying options
142
  function handle_options() {
143
  $options = $this->get_options ();
144
  if (isset ( $_POST ['submitted'] )) {
145
-
146
  // initialize the error class
147
  $errors = new WP_Error ( );
148
-
149
  // check security
150
  check_admin_referer ( 'commentluv-nonce' );
151
-
152
  $options = array ();
153
  $options ['comment_text'] = htmlspecialchars ( $_POST ['cl_comment_text'] );
154
  $options ['select_text'] = htmlspecialchars ( $_POST ['cl_select_text'] );
@@ -162,7 +162,7 @@ if (! class_exists ( 'commentluv' )) {
162
  $options ['comment_name'] = $_POST ['cl_comment_name'];
163
  $options ['email_name'] = $_POST ['cl_email_name'];
164
  $options ['use_template'] = $_POST['cl_use_template'];
165
-
166
  // check for errors
167
  if (count ( $errors->errors ) > 0) {
168
  echo '<div class="error"><h3>';
@@ -177,7 +177,7 @@ if (! class_exists ( 'commentluv' )) {
177
  update_option ( $this->db_option, $options );
178
  echo '<div class="updated fade"><p>Plugin settings saved.</p></div>';
179
  }
180
-
181
  }
182
  // loop through each option and assign it as key=value
183
  foreach ( $options as $key => $value ) {
@@ -193,7 +193,7 @@ if (! class_exists ( 'commentluv' )) {
193
  $badge5 = $options ['badge'] == 'nothing.gif' ? 'checked="checked"' : '';
194
  $use_template = $options ['use_template'] == 'on' ? 'checked="checked"' : '';
195
  $badge_text = $options ['badge'] == 'text' ? 'checked="checked"' : '';
196
-
197
  // url for form submit
198
  $action_url = $_SERVER ['REQUEST_URI'];
199
  include ('commentluv-manager.php');
@@ -219,7 +219,11 @@ if (! class_exists ( 'commentluv' )) {
219
  } else {
220
  $badge = '<a href="http://comluv.com" target="_blank">' . $options ['show_text'] . '</a>';
221
  }
222
- echo '<div id="commentluv">' . htmlspecialchars_decode(stripslashes($options ['prepend'])) . '<input type="checkbox" id="doluv" name="doluv" ' . $default_on . ' style="width:25px;"></input><span id="mylastpost" style="clear: both">' . $badge . '</span><img class="clarrow" id="showmore" src="' . $this->plugin_url . 'images/down-arrow.gif" alt="show more" style="display:none;"/></div><div id="lastposts" style="display: none;"></div>';
 
 
 
 
223
  $badgeshown = TRUE;
224
  }
225
  }
@@ -228,7 +232,7 @@ if (! class_exists ( 'commentluv' )) {
228
  $options = get_option ( $this->db_option );
229
  $cl_author_id = $options ['author_name'];
230
  $cl_site_id = $options ['url_name'];
231
-
232
  if (is_user_logged_in ()) {
233
  // get options values and insert as hidden fields
234
  global $userdata;
@@ -243,7 +247,7 @@ if (! class_exists ( 'commentluv' )) {
243
  $url = $userbloginfo [1]->siteurl;
244
  }
245
  }
246
-
247
  echo "<input type='hidden' id='$cl_author_id' name='$cl_author_id' value='$author' />";
248
  echo "<input type='hidden' id='$cl_site_id' name='$cl_site_id' value='$url' />";
249
  }
@@ -259,7 +263,7 @@ if (! class_exists ( 'commentluv' )) {
259
  }
260
  return $id;
261
  }
262
-
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'] )) {
@@ -334,7 +338,7 @@ if (! class_exists ( 'commentluv' )) {
334
  }
335
  $commentcontent .= '</span>';
336
  }
337
-
338
  // remove old codes
339
  if (strpos ( $commentcontent, "[rq=" ) && strpos ( $commentcontent, "[/rq]" )) {
340
  // get bit that was added
@@ -360,21 +364,21 @@ if (! class_exists ( 'commentluv' )) {
360
  }
361
  return $commentcontent;
362
  }
363
-
364
  // set up default values
365
  function install() {
366
  // set default options
367
  $this->get_options ();
368
  }
369
-
370
  // Localization support
371
  function handle_load_domain() {
372
  // get current language
373
  $locale = get_locale ();
374
-
375
  // locate translation file
376
  $mofile = WP_PLUGIN_DIR . '/' . plugin_basename ( dirname ( __FILE__ ) ) . '/lang/' . $this->plugin_domain . '-' . $locale . '.mo';
377
-
378
  // load translation
379
  load_textdomain ( $this->plugin_domain, $mofile );
380
  }
@@ -393,11 +397,11 @@ if (! class_exists ( 'commentluv' )) {
393
  $data = json_decode ( $content );
394
  if ($data->status != 200) {
395
  // unsuccessful confirmation.
396
- // have a tantrum here if you want.
397
  }
398
  }
399
  curl_close ( $curl );
400
-
401
  }
402
  } elseif (ini_get ( 'allow_url_fopen' )) {
403
  $content = @file_get_contents ( $url );
@@ -406,7 +410,7 @@ if (! class_exists ( 'commentluv' )) {
406
  }
407
  // find last occurrence of string in string (for php 4)
408
  function my_strrpos($haystack, $needle, $offset = 0) {
409
- // same as strrpos, except $needle can be a string
410
  // http://www.webmasterworld.com/forum88/10570.htm
411
  $strrpos = false;
412
  if (is_string ( $haystack ) && is_string ( $needle ) && is_numeric ( $offset )) {
@@ -418,21 +422,21 @@ if (! class_exists ( 'commentluv' )) {
418
  }
419
  return $strrpos;
420
  }
421
-
422
  }
423
  }
424
 
425
  // start commentluv class engines
426
  if (class_exists ( 'commentluv' )) :
427
- $badgeshown=FALSE;
428
- $commentluv = new commentluv ( );
429
-
430
- // confirm warp capability
431
- if (isset ( $commentluv )) {
432
- // engage
433
- register_activation_hook ( __FILE__, array (&$commentluv, 'install' ) );
434
-
435
- }
436
 
437
 
438
  endif;
@@ -444,4 +448,10 @@ function cl_display_badge() {
444
  $temp->display_badge ();
445
  }
446
 
 
 
 
 
 
 
447
  ?>
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.61
6
  Author: Andy Bailey
7
  Author URI: http://fiddyp.comluv.com/
8
 
14
  delete is done at change status (with no request id sent)
15
  12 Jun 2009 - small fixes for valid xhtml on images and checkbox . remove identifying .-= / =-. from inserted link on display time. happy birthday to me
16
  13 Jun 2009 - fix php4 from not allowing last string pos (strrpos) (thanks http://www.makeupandbeautyblog.com/ && http://jahangiri.us/news/)
17
+ - validates for Kelson (speedforce.org) (had a big cake yesterday nomnom)
18
+ 14 Jun 2009 - Italian translation added (and fix CR in string on manager page). Thanks go to Gianni Diurno http://gidibao.net
19
  16 Jun 2009 - Bug fix, use_template checkbox not displaying when selected on settings page (breaker). typo in settings page now uses <?php cl_display_badge(); ?> (oops!)
20
+ - added global variable for badgeshown to prevent mulitple instances (template contains function call AND use template check is off)
21
+ - fixed output of prepend html using decode html and stripslashes. Added green background to update settings button.
22
+ 19 Jun 2009 - fix for htmlspecialchars_decode causing error in wp < 2.8 (thanks @mitch_m for testing)
23
  */
24
  // Avoid name collision
25
  if (! class_exists ( 'commentluv' )) {
31
  var $db_option = 'commentluv_options';
32
  var $cl_version = 276;
33
  var $api_url;
34
+
35
  //initialize the plugin
36
  function commentluv() {
37
  global $wp_version, $pagenow;
42
  $this->handle_load_domain ();
43
  }
44
  $exit_msg = __ ( 'CommentLuv requires Wordpress 2.6.5 or newer.', $this->plugin_domain ) . '<a href="http://codex.wordpress.org/Upgrading_Wordpress">' . __ ( 'Please Update!', $this->plugin_domain ) . '</a>';
45
+
46
  // can you dig it?
47
  if (version_compare ( $wp_version, "2.6.5", "<" )) {
48
  exit ( $exit_msg ); // no diggedy
49
  }
50
+
51
  // action hooks
52
  $this->plugin_url = trailingslashit ( WP_PLUGIN_URL . '/' . dirname ( plugin_basename ( __FILE__ ) ) );
53
  $this->api_url = 'http://api.comluv.com/cl_api/commentluvapi.php';
61
  add_filter ( 'comment_text', array (&$this, 'do_shortcode' ), 10 ); // replace inserted data with hidden span on display time of comment
62
  add_filter ( 'pre_comment_content', array (&$this, 'cl_post' ), 10 ); // extract extra fields data and insert data to end of comment
63
  }
64
+
65
  // hook the options page
66
  function admin_menu() {
67
  $menutitle = '<img src="' . $this->plugin_url . 'images/littleheart.gif" alt=""/> ';
113
  function commentluv_style() {
114
  echo '<link rel="stylesheet" href="' . $this->plugin_url . 'style/cl_style.css" type="text/css" />';
115
  }
116
+
117
  // get plugin options
118
  function get_options() {
119
  // default values
123
  if (! isset ( $_POST ['reset'] )) {
124
  $saved = get_option ( $this->db_option );
125
  }
126
+
127
  // assign values
128
  if (! empty ( $saved )) {
129
  foreach ( $saved as $key => $option ) {
137
  // return the options
138
  return $options;
139
  }
140
+
141
  // handle saving and displaying options
142
  function handle_options() {
143
  $options = $this->get_options ();
144
  if (isset ( $_POST ['submitted'] )) {
145
+
146
  // initialize the error class
147
  $errors = new WP_Error ( );
148
+
149
  // check security
150
  check_admin_referer ( 'commentluv-nonce' );
151
+
152
  $options = array ();
153
  $options ['comment_text'] = htmlspecialchars ( $_POST ['cl_comment_text'] );
154
  $options ['select_text'] = htmlspecialchars ( $_POST ['cl_select_text'] );
162
  $options ['comment_name'] = $_POST ['cl_comment_name'];
163
  $options ['email_name'] = $_POST ['cl_email_name'];
164
  $options ['use_template'] = $_POST['cl_use_template'];
165
+
166
  // check for errors
167
  if (count ( $errors->errors ) > 0) {
168
  echo '<div class="error"><h3>';
177
  update_option ( $this->db_option, $options );
178
  echo '<div class="updated fade"><p>Plugin settings saved.</p></div>';
179
  }
180
+
181
  }
182
  // loop through each option and assign it as key=value
183
  foreach ( $options as $key => $value ) {
193
  $badge5 = $options ['badge'] == 'nothing.gif' ? 'checked="checked"' : '';
194
  $use_template = $options ['use_template'] == 'on' ? 'checked="checked"' : '';
195
  $badge_text = $options ['badge'] == 'text' ? 'checked="checked"' : '';
196
+
197
  // url for form submit
198
  $action_url = $_SERVER ['REQUEST_URI'];
199
  include ('commentluv-manager.php');
219
  } else {
220
  $badge = '<a href="http://comluv.com" target="_blank">' . $options ['show_text'] . '</a>';
221
  }
222
+ if($options['prepend']){
223
+ $prepend = stripslashes($options['prepend']);
224
+ $decodeprepend = htmlspecialchars_decode_own($prepend);
225
+ }
226
+ echo '<div id="commentluv">' . $decodeprepend . '<input type="checkbox" id="doluv" name="doluv" ' . $default_on . ' style="width:25px;"></input><span id="mylastpost" style="clear: both">' . $badge . '</span><img class="clarrow" id="showmore" src="' . $this->plugin_url . 'images/down-arrow.gif" alt="show more" style="display:none;"/></div><div id="lastposts" style="display: none;"></div>';
227
  $badgeshown = TRUE;
228
  }
229
  }
232
  $options = get_option ( $this->db_option );
233
  $cl_author_id = $options ['author_name'];
234
  $cl_site_id = $options ['url_name'];
235
+
236
  if (is_user_logged_in ()) {
237
  // get options values and insert as hidden fields
238
  global $userdata;
247
  $url = $userbloginfo [1]->siteurl;
248
  }
249
  }
250
+
251
  echo "<input type='hidden' id='$cl_author_id' name='$cl_author_id' value='$author' />";
252
  echo "<input type='hidden' id='$cl_site_id' name='$cl_site_id' value='$url' />";
253
  }
263
  }
264
  return $id;
265
  }
266
+
267
  // hook the pre_comment_content to add the link
268
  function cl_post($commentdata) {
269
  if (isset ( $_POST ['cl_post'] ) && $_POST ['request_id'] != '' && is_numeric ( $_POST ['choice_id'] ) && isset ( $_POST ['cl_type'] )) {
338
  }
339
  $commentcontent .= '</span>';
340
  }
341
+
342
  // remove old codes
343
  if (strpos ( $commentcontent, "[rq=" ) && strpos ( $commentcontent, "[/rq]" )) {
344
  // get bit that was added
364
  }
365
  return $commentcontent;
366
  }
367
+
368
  // set up default values
369
  function install() {
370
  // set default options
371
  $this->get_options ();
372
  }
373
+
374
  // Localization support
375
  function handle_load_domain() {
376
  // get current language
377
  $locale = get_locale ();
378
+
379
  // locate translation file
380
  $mofile = WP_PLUGIN_DIR . '/' . plugin_basename ( dirname ( __FILE__ ) ) . '/lang/' . $this->plugin_domain . '-' . $locale . '.mo';
381
+
382
  // load translation
383
  load_textdomain ( $this->plugin_domain, $mofile );
384
  }
397
  $data = json_decode ( $content );
398
  if ($data->status != 200) {
399
  // unsuccessful confirmation.
400
+ // have a tantrum here if you want.
401
  }
402
  }
403
  curl_close ( $curl );
404
+
405
  }
406
  } elseif (ini_get ( 'allow_url_fopen' )) {
407
  $content = @file_get_contents ( $url );
410
  }
411
  // find last occurrence of string in string (for php 4)
412
  function my_strrpos($haystack, $needle, $offset = 0) {
413
+ // same as strrpos, except $needle can be a string
414
  // http://www.webmasterworld.com/forum88/10570.htm
415
  $strrpos = false;
416
  if (is_string ( $haystack ) && is_string ( $needle ) && is_numeric ( $offset )) {
422
  }
423
  return $strrpos;
424
  }
425
+
426
  }
427
  }
428
 
429
  // start commentluv class engines
430
  if (class_exists ( 'commentluv' )) :
431
+ $badgeshown=FALSE;
432
+ $commentluv = new commentluv ( );
433
+
434
+ // confirm warp capability
435
+ if (isset ( $commentluv )) {
436
+ // engage
437
+ register_activation_hook ( __FILE__, array (&$commentluv, 'install' ) );
438
+
439
+ }
440
 
441
 
442
  endif;
448
  $temp->display_badge ();
449
  }
450
 
451
+ function htmlspecialchars_decode_own($string,$style=ENT_COMPAT)
452
+ {
453
+ $translation = array_flip(get_html_translation_table(HTML_SPECIALCHARS,$style));
454
+ if($style === ENT_QUOTES){ $translation['&#039;'] = '\''; }
455
+ return strtr($string,$translation);
456
+ }
457
  ?>
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.6.5
6
  Tested up to: 2.8
7
- Stable tag: 2.7.6
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
 
@@ -23,13 +23,18 @@ You can visit http://comluv.com to find out more about this plugin.
23
  == Details ==
24
 
25
  CommentLuv functionality
26
- * Works with Wordpress 2.65, 2.7.1 and 2.8, Compatible with WPmu and logged on users, Language support, Communicates with remote API when comment is deleted or spammed, Uses WP includes for jQuery and hoverIntent for improved compatibility with other plugins, Auto configures to recognize comment form
 
 
 
 
 
27
 
28
  == Installation ==
29
 
30
  Wordpress : Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress installation and then activate the Plugin from Plugins page.
31
 
32
- WordpressMu : Same as above (do not place in mu-plugins)
33
 
34
  == Configuration ==
35
 
@@ -37,7 +42,7 @@ Display Options :
37
  Enter the text you want displayed in the comment for the link that is added.
38
  [name] -> replaced with comment author name
39
  [type] -> replaced with blog, twitter or digg depending on what type of link the author chose to include.
40
- [lastpost] -> replaced with the titled link.
41
 
42
  Text displayed in the select box -> shows in the pull down box when a user has more than one post to choose from
43
 
@@ -53,11 +58,8 @@ CommentLuv member area -> for future use
53
 
54
  Technical Settings:
55
  Authors name field name -> The name value of the field used on your comment form for the comment authors name
56
-
57
  Email field name -> The name value of the field used on your comment form for the comment authors email
58
-
59
  Authors URL field name -> The name value of the field used on your comment form for the comment authors site URL
60
-
61
  Comments Text Area Name -> The name value of the field used on your comment form for the comment
62
 
63
  update -> updates the settings
@@ -65,7 +67,7 @@ update -> updates the settings
65
  reset -> if you get in trouble, click this to reset to default settings
66
 
67
  == Adding to your template ==
68
- Use &lt;php cl\_display\_badge(); ?&gt; in your comments.php file where you want the badge and checkbox to be shown
69
 
70
  == Frequently Asked Questions ==
71
 
@@ -85,7 +87,26 @@ You can submit a support ticket at http://comluv.com
85
  1. settings page
86
 
87
  2. in use
88
-
89
  This plugin inserts fields to the comment form at run time. If you find there is no badge shown on the comment form after you first install it, please check your comments.php file for the command &lt;?php do\_action('comment\_form', $post->ID); ?&gt; before the &lt;/form> tag
90
 
91
- For logged on users and administrators, be sure to check your profile on your own dashboard and make sure there is a url entered.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  Tags: commentluv, comments, last blog post, linkluv
5
  Requires at least: 2.6.5
6
  Tested up to: 2.8
7
+ Stable tag: 2.7.61
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
 
23
  == Details ==
24
 
25
  CommentLuv functionality
26
+ * Works with Wordpress 2.65, 2.7.1 and 2.8
27
+ * Compatible with WPmu and logged on users
28
+ * Language support
29
+ * Communicates with remote API when comment is deleted or spammed
30
+ * Uses WP includes for jQuery and hoverIntent for improved compatibility with other plugins
31
+ * Auto configures to recognize comment form
32
 
33
  == Installation ==
34
 
35
  Wordpress : Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress installation and then activate the Plugin from Plugins page.
36
 
37
+ WordpressMu : Same as above
38
 
39
  == Configuration ==
40
 
42
  Enter the text you want displayed in the comment for the link that is added.
43
  [name] -> replaced with comment author name
44
  [type] -> replaced with blog, twitter or digg depending on what type of link the author chose to include.
45
+ [lastpot] -> replaced with the titled link.
46
 
47
  Text displayed in the select box -> shows in the pull down box when a user has more than one post to choose from
48
 
58
 
59
  Technical Settings:
60
  Authors name field name -> The name value of the field used on your comment form for the comment authors name
 
61
  Email field name -> The name value of the field used on your comment form for the comment authors email
 
62
  Authors URL field name -> The name value of the field used on your comment form for the comment authors site URL
 
63
  Comments Text Area Name -> The name value of the field used on your comment form for the comment
64
 
65
  update -> updates the settings
67
  reset -> if you get in trouble, click this to reset to default settings
68
 
69
  == Adding to your template ==
70
+ Use &lt;php cl_show_badge(); ?&gt; in your comments.php file where you want the badge and checkbox to be shown
71
 
72
  == Frequently Asked Questions ==
73
 
87
  1. settings page
88
 
89
  2. in use
 
90
  This plugin inserts fields to the comment form at run time. If you find there is no badge shown on the comment form after you first install it, please check your comments.php file for the command &lt;?php do\_action('comment\_form', $post->ID); ?&gt; before the &lt;/form> tag
91
 
92
+ For logged on users and administrators, be sure to check your profile on your own dashboard and make sure there is a url entered.
93
+
94
+ == ChangeLog ==
95
+ 05 Jun 2009 - Finalized last functions and integrated API. big up to @wpmuguru for API coding!
96
+
97
+ 10 Jun 2009 - Fix for php4 hosting. changed "public" to "var" and check function exists for json_decode
98
+
99
+ 11 Jun 2009 - Small bug in using text as badge fixed. Changed strpos to strrpos to find last tag code in text. priority 1 for comment_text
100
+ removed request id data from being inserted (too many complaints!) and adjusted the way comment status change is handled. approve is done at post submission and delete is done at change status (with no request id sent)
101
+
102
+ 12 Jun 2009 - small fixes for valid xhtml on images and checkbox . remove identifying .-= / =-. from inserted link on display time.
103
+
104
+ 13 Jun 2009 - fix php4 from not allowing last string pos (strrpos)
105
+ - validates for Kelson (speedforce.org) (had a big cake yesterday nomnom)
106
+
107
+ 14 Jun 2009 - Italian translation added (and fix CR in string on manager page). Thanks go to Gianni Diurno
108
+
109
+ 16 Jun 2009 - Bug fix, use_template checkbox not displaying when selected on settings page (breaker). typo in settings page now uses &lt;?php cl\_display\_badge(); ?&gt;
110
+ - added global variable for badgeshown to prevent mulitple instances (template contains function call AND use template check is off)
111
+ - fixed output of prepend html using decode html and stripslashes. Added green background to update settings button.
112
+ 19 Jun 2009 - fix for htmlspecialchars\_decode causing error in wp < 2.8