cbnet Ping Optimizer - Version 2.3.3

Version Description

  • Bugfix update.
  • Fixed the Settings page link in the plugin description, and moved to Plugin Actions list (next to Deactivate|Edit links).
  • On settings page, moved Clear Log link to the top of the ping log, and added a record count.
Download this release

Release Info

Developer chipbennett
Plugin Icon wp plugin cbnet Ping Optimizer
Version 2.3.3
Comparing to
See all releases

Code changes from version 2.3.2 to 2.3.3

cbnet-ping-optimizer.php CHANGED
@@ -1,10 +1,10 @@
1
  <?php
2
  /*
3
  * Plugin Name: cbnet Ping Optimizer
4
- * Plugin URI: http://www.chipbennett.net/wordpress/plugins/cbnetpo-ping-optimizer/
5
- * Description: Saves your wordpress blog from getting tagged as ping spammer. (Note: this plugin is a fork of the cbnetpo Favicon plugin, with registration/activiation functionality removed.) Adjust settings <a href="options-general.php?page=cbnetpo-ping-optimizer/cbnetpo-ping-optimizer.php">here</a>.
6
- * Version: 2.3.2
7
- * Author: Chip Bennett
8
  * Author URI: http://www.chipbennett.net//
9
  *
10
  * License: GNU General Public License, v2 (or newer)
@@ -25,7 +25,7 @@
25
  */
26
 
27
  define('cbnetpo_NAME', 'cbnet Ping Optimizer'); // Name of the Plugin
28
- define('cbnetpo_VERSION', '2.3.2'); // Current version of the Plugin
29
  define("cbnetpo_LOG", true); // Set to 'true' to keep log, else 'false'.
30
 
31
  /**
@@ -64,11 +64,11 @@ class cbnetPingOptimizer
64
  $this->cbnetpo_abspath = str_replace("\\","/",ABSPATH);
65
  $this->img_how = '<img src="'.$this->cbnetpo_incpath.'images/how.gif" border="0" align="absmiddle">';
66
  $this->img_comment = '<img src="'.$this->cbnetpo_incpath.'images/comment.gif" border="0" align="absmiddle">';
67
- $this->cbnetpo_wp_version = $wp_version.
68
-
69
- add_action('activate_'.$this->cbnetpo_path, array(&$this, 'cbnetpoActivate'));
70
  add_action('deactivate_'.$this->cbnetpo_path, array(&$this, 'cbnetpoDeactivate'));
71
  add_action('admin_menu', array(&$this, 'cbnetpoAddMenu'));
 
72
  add_action('wp_head', array(&$this, 'cbnetpoFuturePing'));
73
  add_filter('title_save_pre', array(&$this, 'cbnetpoGetPostTitle'));
74
  add_action('edit_post', array(&$this, 'cbnetpoEditPost'));
@@ -167,6 +167,15 @@ class cbnetPingOptimizer
167
  function cbnetpoAddMenu() {
168
  add_options_page(cbnetpo_NAME, 'cbnet Ping Optimizer', 'manage_options', $this->cbnetpo_path, array(&$this, 'cbnetpoOptionsPg'));
169
  }
 
 
 
 
 
 
 
 
 
170
 
171
  /**
172
  * Page Header
@@ -596,10 +605,10 @@ class cbnetPingOptimizer
596
  }
597
  }
598
  }
599
- if ( $count >= $this->cbnetpo_rows_to_show ) return array($msg,$exists);
600
  }
601
  }
602
- return array($msg,$exists);
603
  }
604
 
605
 
1
  <?php
2
  /*
3
  * Plugin Name: cbnet Ping Optimizer
4
+ * Plugin URI: http://www.chipbennett.net/wordpress/plugins/cbnet-ping-optimizer/
5
+ * Description: Saves your wordpress blog from getting tagged as ping spammer. (Note: this plugin is a fork of the MaxBlogPress Ping Optimizer plugin, with registration/activiation functionality removed.)
6
+ * Version: 2.3.3
7
+ * Author: chipbennett
8
  * Author URI: http://www.chipbennett.net//
9
  *
10
  * License: GNU General Public License, v2 (or newer)
25
  */
26
 
27
  define('cbnetpo_NAME', 'cbnet Ping Optimizer'); // Name of the Plugin
28
+ define('cbnetpo_VERSION', '2.3.3'); // Current version of the Plugin
29
  define("cbnetpo_LOG", true); // Set to 'true' to keep log, else 'false'.
30
 
31
  /**
64
  $this->cbnetpo_abspath = str_replace("\\","/",ABSPATH);
65
  $this->img_how = '<img src="'.$this->cbnetpo_incpath.'images/how.gif" border="0" align="absmiddle">';
66
  $this->img_comment = '<img src="'.$this->cbnetpo_incpath.'images/comment.gif" border="0" align="absmiddle">';
67
+ $this->cbnetpo_wp_version = $wp_version;
68
+ add_action('activate_'.$this->cbnetpo_path, array(&$this, 'cbnetpoActivate'));
 
69
  add_action('deactivate_'.$this->cbnetpo_path, array(&$this, 'cbnetpoDeactivate'));
70
  add_action('admin_menu', array(&$this, 'cbnetpoAddMenu'));
71
+ add_filter('plugin_action_links_'.plugin_basename(__FILE__), array($this, 'cbnetpo_actlinks'), 10, 1 );
72
  add_action('wp_head', array(&$this, 'cbnetpoFuturePing'));
73
  add_filter('title_save_pre', array(&$this, 'cbnetpoGetPostTitle'));
74
  add_action('edit_post', array(&$this, 'cbnetpoEditPost'));
167
  function cbnetpoAddMenu() {
168
  add_options_page(cbnetpo_NAME, 'cbnet Ping Optimizer', 'manage_options', $this->cbnetpo_path, array(&$this, 'cbnetpoOptionsPg'));
169
  }
170
+
171
+ /**
172
+ * Adds "Settings" link to Plugin Action links on Manage Plugins page
173
+ */
174
+ function cbnetpo_actlinks( $links ) {
175
+ $cbnetpo_settings_link = '<a href="options-general.php?page=cbnet-ping-optimizer/cbnet-ping-optimizer.php">Settings</a>';
176
+ $links[] = $cbnetpo_settings_link;
177
+ return $links;
178
+ }
179
 
180
  /**
181
  * Page Header
605
  }
606
  }
607
  }
608
+ if ( $count >= $this->cbnetpo_rows_to_show ) return array($msg,$exists,$noof_records);
609
  }
610
  }
611
+ return array($msg,$exists,$noof_records);
612
  }
613
 
614
 
include/OneNote Table Of Contents.onetoc2 DELETED
Binary file
include/images/OneNote Table Of Contents.onetoc2 DELETED
Binary file
include/images/arr_blue1.gif DELETED
Binary file
include/images/arr_green1.gif DELETED
Binary file
include/images/arr_green2.gif DELETED
Binary file
include/images/comment.gif DELETED
Binary file
include/images/delete.gif DELETED
Binary file
include/images/help.gif DELETED
Binary file
include/images/how.gif DELETED
Binary file
include/options-pg.php CHANGED
@@ -31,16 +31,18 @@ function cbnetpoShowHide(Div,Img) {
31
  <input type="submit" name="cbnetpo[save]" value="<?php _e('Save Settings', 'cbnetpo'); ?>" class="button" />
32
  <input type="submit" name="cbnetpo[pingnow]" value="<?php _e('Ping Now', 'cbnetpo'); ?>" class="button" onclick="return confirm('Are you sure you want to ping these services now? Pinging too often could get you banned for spamming.');" />
33
  </p>
34
- </form><br />
35
  <?php if ( cbnetpo_LOG == true ) { ?>
36
  <h3><?php _e('Ping Log', 'cbnetpo'); ?></h3>
 
 
 
 
 
37
  <p><strong><?php _e('Following are the lastest actions performed by the plugin:', 'cbnetpo'); ?></strong>
38
  <?php
39
- list($pinglog,$exists) = $this->cbnetpoGetLogData();
40
  echo $pinglog;
41
  ?>
42
  </p>
43
- <?php if($exists){?><p><a href="?page=<?php echo $this->cbnetpo_path;?>&d=yes" onclick="return confirm('All ping log data will be deleted. Are you sure?')" style="color:#FF0000;font-weight:bold"><img src="<?php echo $this->cbnetpo_incpath;?>images/delete.gif" border="0" align="absmiddle"> Clear Log</a></p><?php }?>
44
- <?php } ?>
45
  <?php $this->cbnetpoFooter(); ?>
46
  </div>
31
  <input type="submit" name="cbnetpo[save]" value="<?php _e('Save Settings', 'cbnetpo'); ?>" class="button" />
32
  <input type="submit" name="cbnetpo[pingnow]" value="<?php _e('Ping Now', 'cbnetpo'); ?>" class="button" onclick="return confirm('Are you sure you want to ping these services now? Pinging too often could get you banned for spamming.');" />
33
  </p>
34
+ </form>
35
  <?php if ( cbnetpo_LOG == true ) { ?>
36
  <h3><?php _e('Ping Log', 'cbnetpo'); ?></h3>
37
+ <?php
38
+ list($pinglog,$exists,$pinglogrecords) = $this->cbnetpoGetLogData();
39
+
40
+ if($exists){?><p><a href="?page=<?php echo $this->cbnetpo_path;?>&d=yes" onclick="return confirm('All ping log data will be deleted. Are you sure?')" style="color:#FF0000;font-weight:bold"><img src="<?php echo $this->cbnetpo_incpath;?>images/delete.gif" border="0" align="absmiddle"> Clear Log (<?php echo $pinglogrecords; ?> Records)</a></p><?php }?>
41
+ <?php } ?>
42
  <p><strong><?php _e('Following are the lastest actions performed by the plugin:', 'cbnetpo'); ?></strong>
43
  <?php
 
44
  echo $pinglog;
45
  ?>
46
  </p>
 
 
47
  <?php $this->cbnetpoFooter(); ?>
48
  </div>
readme.txt CHANGED
@@ -1,16 +1,16 @@
1
  === cbnet Ping Optimizer ===
2
- Contributors: Chip Bennett
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QP3N9HUSYJPK6
4
  Tags: cbnet, Ping Optimizer, images, plugin, generator, picture, icon, admin, maxblogpress
5
  Requires at least: 2.9
6
- Tested up to: 2.9.1
7
- Stable tag: 2.3.2
8
 
9
  Save your wordpress blog from getting tagged as ping spammer. Activation/subscription-free fork of MaxBlogPress Ping Optimizer plugin
10
 
11
  == Description ==
12
 
13
- Even the latest version of WordPress (ver. 2.7) has this problem.
14
 
15
  Do you know your WordPress blog pings unnecessarily every time you edit a post? Think how many times you click on "Save and Continue Editing" or "Save" button. Your blog will ping unnecessarily that many times you click on those buttons.
16
 
@@ -56,6 +56,10 @@ Screenshots coming soon.
56
 
57
  == Changelog ==
58
 
 
 
 
 
59
  = 2.3.2 =
60
  * Readme.txt update.
61
  * Updated Donate Link in readme.txt.
@@ -68,6 +72,8 @@ Screenshots coming soon.
68
 
69
  == Upgrade Notice ==
70
 
 
 
71
  = 2.3.2 =
72
  Readme.txt update. Updated Donate Link in readme.txt.
73
  = 2.3.1 =
1
  === cbnet Ping Optimizer ===
2
+ Contributors: chipbennett
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QP3N9HUSYJPK6
4
  Tags: cbnet, Ping Optimizer, images, plugin, generator, picture, icon, admin, maxblogpress
5
  Requires at least: 2.9
6
+ Tested up to: 2.9.2
7
+ Stable tag: 2.3.3
8
 
9
  Save your wordpress blog from getting tagged as ping spammer. Activation/subscription-free fork of MaxBlogPress Ping Optimizer plugin
10
 
11
  == Description ==
12
 
13
+ Even the latest version of WordPress has this problem.
14
 
15
  Do you know your WordPress blog pings unnecessarily every time you edit a post? Think how many times you click on "Save and Continue Editing" or "Save" button. Your blog will ping unnecessarily that many times you click on those buttons.
16
 
56
 
57
  == Changelog ==
58
 
59
+ = 2.3.3 =
60
+ * Bugfix update.
61
+ * Fixed the Settings page link in the plugin description, and moved to Plugin Actions list (next to Deactivate|Edit links).
62
+ * On settings page, moved Clear Log link to the top of the ping log, and added a record count.
63
  = 2.3.2 =
64
  * Readme.txt update.
65
  * Updated Donate Link in readme.txt.
72
 
73
  == Upgrade Notice ==
74
 
75
+ = 2.3.3 =
76
+ Bugfix update. Fixed/moved Settings page link. Moved Clear Log link to top of ping log, and added record count.
77
  = 2.3.2 =
78
  Readme.txt update. Updated Donate Link in readme.txt.
79
  = 2.3.1 =