Platinum SEO Pack - Version 1.2.9

Version Description

  • 2009-09-27 - added an option to turn on or off title rewrites for every post or page.
Download this release

Release Info

Developer Rajesh Babu
Plugin Icon 128x128 Platinum SEO Pack
Version 1.2.9
Comparing to
See all releases

Code changes from version 1.2.8 to 1.2.9

Files changed (5) hide show
  1. Changelog.txt +5 -0
  2. platinum_seo_pack.php +40 -15
  3. readme.txt +44 -2
  4. screenshot-1.gif +0 -0
  5. screenshot-1.jpg +0 -0
Changelog.txt CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
 
1
  2009-09-11 Rajesh (http://techblissonline.com/) - Version 1.2.8
2
 
3
  * fixed a superficial bug related to function_exists that caused php errors.
1
+ 2009-09-27 Rajesh (http://techblissonline.com/) - Version 1.2.9
2
+
3
+ * added an option to turn on or off title rewrites for every post or page.
4
+ platinum_seo_pack.php
5
+
6
  2009-09-11 Rajesh (http://techblissonline.com/) - Version 1.2.8
7
 
8
  * fixed a superficial bug related to function_exists that caused php errors.
platinum_seo_pack.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Platinum SEO Pack
5
  Plugin URI: http://techblissonline.com/platinum-seo-pack/
6
  Description: Complete SEO solution for your Wordpress blog.
7
- Version: 1.2.8
8
  Author: Rajesh - Techblissonline Dot Com
9
  Author URI: http://techblissonline.com/
10
  */
@@ -29,7 +29,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
29
 
30
  class Platinum_SEO_Pack {
31
 
32
- var $version = "1.2.8";
33
 
34
  /** Max numbers of chars in auto-generated description */
35
  var $max_description_length = 160;
@@ -151,9 +151,13 @@ class Platinum_SEO_Pack {
151
 
152
  if (is_single() || is_page()) {
153
  $psp_disable = htmlspecialchars(stripcslashes(get_post_meta($post->ID, 'psp_disable', true)));
 
154
  if ($psp_disable) {
155
  return;
156
  }
 
 
 
157
  }
158
 
159
  if (get_option('aiosp_rewrite_titles')) {
@@ -350,7 +354,7 @@ class Platinum_SEO_Pack {
350
 
351
  if ($meta != "" || isset($meta)) {
352
 
353
- if ($$meta_string != "" || isset($meta_string)) {
354
 
355
  $$meta_string .= "\n";
356
  }
@@ -1070,19 +1074,20 @@ class Platinum_SEO_Pack {
1070
  }
1071
 
1072
  function get_unique_keywords($keywords) {
1073
- $small_keywords = array();
1074
  foreach ($keywords as $word) {
 
1075
  /*if (function_exists('mb_strtolower')) {
1076
  if (mb_detect_encoding($word) == 'UTF8') {
1077
  $small_keywords[] = mb_strtolower($word, 'UTF8');
1078
  } else {
1079
  $small_keywords[] = strtolower($word);
1080
  }
1081
- } else {*/
1082
  $small_keywords[] = strtolower($word);
1083
- /*}*/
1084
  }
1085
- $keywords_ar = array_unique($small_keywords);
1086
  return implode(',', $keywords_ar);
1087
  }
1088
 
@@ -1184,10 +1189,10 @@ class Platinum_SEO_Pack {
1184
  $keywords = $_POST["psp_keywords"];
1185
  $description = $_POST["psp_description"];
1186
  $title = $_POST["psp_title"];
1187
- $pspmeta = $_POST["psp_robotsmeta"];
1188
- $psp_disable = $_POST["psp_disable"];
1189
- $psp_noarchive = $_POST["psp_noarchive"];
1190
- $psp_nosnippet = $_POST["psp_nosnippet"];
1191
 
1192
  delete_post_meta($id, 'keywords');
1193
  delete_post_meta($id, 'description');
@@ -1195,6 +1200,7 @@ class Platinum_SEO_Pack {
1195
  if ($this->is_admin()) {
1196
  delete_post_meta($id, 'psp_disable');
1197
  delete_post_meta($id, 'robotsmeta');
 
1198
  delete_post_meta($id, 'psp_noarchive');
1199
  delete_post_meta($id, 'psp_nosnippet');
1200
  }
@@ -1209,11 +1215,21 @@ class Platinum_SEO_Pack {
1209
  add_post_meta($id, 'title', $title);
1210
  }
1211
  if ($this->is_admin()) {
 
 
 
 
 
 
1212
 
1213
  if (isset($psp_disable) && !empty($psp_disable)) {
1214
 
1215
  add_post_meta($id, 'psp_disable', $psp_disable);
1216
  }
 
 
 
 
1217
  if (isset($pspmeta) && !empty($pspmeta)) {
1218
 
1219
  add_post_meta($id, 'robotsmeta', $pspmeta);
@@ -1247,6 +1263,7 @@ class Platinum_SEO_Pack {
1247
  $description = htmlspecialchars(stripcslashes(get_post_meta($post_id, 'description', true)));
1248
  $psp_meta = $robotsmeta;
1249
  $psp_disable = htmlspecialchars(stripcslashes(get_post_meta($post_id, 'psp_disable', true)));
 
1250
  $psp_noarchive = htmlspecialchars(stripcslashes(get_post_meta($post_id, 'psp_noarchive', true)));
1251
  $psp_nosnippet = htmlspecialchars(stripcslashes(get_post_meta($post_id, 'psp_nosnippet', true)));
1252
  ?>
@@ -1295,7 +1312,7 @@ class Platinum_SEO_Pack {
1295
  </tr>
1296
  <input type="hidden" name="psp-meta-nonce" value="<?php echo wp_create_nonce('psp-meta-nonce') ?>" />
1297
 
1298
- <?php if ( current_user_can('edit_posts') ) { ?>
1299
  <tr>
1300
  <th scope="row" style="text-align:right;"><?php _e('PSP Meta Index and Nofollow Tags:', 'platinum_seo_pack') ?></th>
1301
  <td><label for="meta_robots_index_follow" class="selectit"><input id="meta_robots_index_follow" name="psp_robotsmeta" type="radio" value="index,follow" <?php if ($psp_meta == "index,follow") echo 'checked="1"'?>/>index, follow</label>&nbsp;&nbsp;
@@ -1305,7 +1322,7 @@ class Platinum_SEO_Pack {
1305
  </tr>
1306
  <?php } ?>
1307
 
1308
- <?php if ($this->is_admin()) { ?>
1309
  <tr>
1310
  <th scope="row" style="text-align:right; vertical-align:top;">
1311
  <?php _e('NOARCHIVE this page/post:', 'platinum_seo_pack')?>
@@ -1324,7 +1341,15 @@ class Platinum_SEO_Pack {
1324
  </tr>
1325
  <tr>
1326
  <th scope="row" style="text-align:right; vertical-align:top;">
1327
- <?php _e('Disable on this page/post:', 'platinum_seo_pack')?>
 
 
 
 
 
 
 
 
1328
  </th>
1329
  <td>
1330
  <input type="checkbox" name="psp_disable" <?php if ($psp_disable) echo "checked=\"1\""; ?>/>
@@ -1471,7 +1496,7 @@ class Platinum_SEO_Pack {
1471
  | <a target="_blank" title="<?php _e('FAQ', 'platinum_seo_pack') ?>"
1472
  href="http://techblissonline.com/platinum-seo-pack-faq/"><?php _e('FAQ', 'platinum_seo_pack') ?></a>
1473
  | <a target="_blank" title="<?php _e('Platinum SEO Plugin Feedback', 'platinum_seo_pack') ?>" href="http://techblissonline.com/platinum-seo-pack/"><?php _e('Feedback', 'platinum_seo_pack') ?></a>
1474
- | <a target="_blank" title="<?php _e('Platinum SEO - What is new in version 1.2.8?', 'platinum_seo_pack') ?>" href="http://techblissonline.com/wordpress-categories/"><?php _e('What is new in version 1.2.8?', 'platinum_seo_pack') ?></a>
1475
  | <a target="_blank" title="<?php _e('Platinum SEO - Smart Options, Smart Benefits', 'platinum_seo_pack') ?>" href="http://techblissonline.com/wordpress-seo-plugin-smart-options-benefits/"><?php _e('Wordpress SEO options', 'platinum_seo_pack') ?></a>
1476
  | <a target="_blank" title="<?php _e('Donations for Platinum SEO Plugin', 'platinum_seo_pack') ?>" href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=rrajeshbab%40gmail%2ecom&item_name=Platinum%20SEO%20plugin%20development%20and%20support%20expenses&item_number=1&no_shipping=0&no_note=1&tax=0&currency_code=USD&lc=IN&bn=PP%2dDonationsBF&charset=UTF%2d8"><?php _e('Please Donate', 'platinum_seo_pack') ?></a>
1477
  | <a target="_blank" title="<?php _e('Save Bandwidth with Chennai Central Plugin', 'platinum_seo_pack') ?>" href="http://techblissonline.com/save-bandwidth/"><?php _e('Save Bandwidth with Chennai Central Plugin', 'platinum_seo_pack') ?></a>
4
  Plugin Name: Platinum SEO Pack
5
  Plugin URI: http://techblissonline.com/platinum-seo-pack/
6
  Description: Complete SEO solution for your Wordpress blog.
7
+ Version: 1.2.9
8
  Author: Rajesh - Techblissonline Dot Com
9
  Author URI: http://techblissonline.com/
10
  */
29
 
30
  class Platinum_SEO_Pack {
31
 
32
+ var $version = "1.2.9";
33
 
34
  /** Max numbers of chars in auto-generated description */
35
  var $max_description_length = 160;
151
 
152
  if (is_single() || is_page()) {
153
  $psp_disable = htmlspecialchars(stripcslashes(get_post_meta($post->ID, 'psp_disable', true)));
154
+ $psp_notitlerewrite = htmlspecialchars(stripcslashes(get_post_meta($post->ID, 'psp_notitlerewrite', true)));
155
  if ($psp_disable) {
156
  return;
157
  }
158
+ if ($psp_notitlerewrite) {
159
+ return;
160
+ }
161
  }
162
 
163
  if (get_option('aiosp_rewrite_titles')) {
354
 
355
  if ($meta != "" || isset($meta)) {
356
 
357
+ if ($meta_string != "" || isset($meta_string)) {
358
 
359
  $$meta_string .= "\n";
360
  }
1074
  }
1075
 
1076
  function get_unique_keywords($keywords) {
1077
+ $uni_keywords = array();
1078
  foreach ($keywords as $word) {
1079
+ $uni_keywords[] = $word;
1080
  /*if (function_exists('mb_strtolower')) {
1081
  if (mb_detect_encoding($word) == 'UTF8') {
1082
  $small_keywords[] = mb_strtolower($word, 'UTF8');
1083
  } else {
1084
  $small_keywords[] = strtolower($word);
1085
  }
1086
+ } else {
1087
  $small_keywords[] = strtolower($word);
1088
+ }*/
1089
  }
1090
+ $keywords_ar = array_unique($uni_keywords);
1091
  return implode(',', $keywords_ar);
1092
  }
1093
 
1189
  $keywords = $_POST["psp_keywords"];
1190
  $description = $_POST["psp_description"];
1191
  $title = $_POST["psp_title"];
1192
+ //$pspmeta = $_POST["psp_robotsmeta"];
1193
+ //$psp_disable = $_POST["psp_disable"];
1194
+ //$psp_noarchive = $_POST["psp_noarchive"];
1195
+ //$psp_nosnippet = $_POST["psp_nosnippet"];
1196
 
1197
  delete_post_meta($id, 'keywords');
1198
  delete_post_meta($id, 'description');
1200
  if ($this->is_admin()) {
1201
  delete_post_meta($id, 'psp_disable');
1202
  delete_post_meta($id, 'robotsmeta');
1203
+ delete_post_meta($id, 'psp_notitlerewrite');
1204
  delete_post_meta($id, 'psp_noarchive');
1205
  delete_post_meta($id, 'psp_nosnippet');
1206
  }
1215
  add_post_meta($id, 'title', $title);
1216
  }
1217
  if ($this->is_admin()) {
1218
+
1219
+ $pspmeta = $_POST["psp_robotsmeta"];
1220
+ $psp_disable = $_POST["psp_disable"];
1221
+ $psp_notitlerewrite = $_POST["psp_notitlerewrite"];
1222
+ $psp_noarchive = $_POST["psp_noarchive"];
1223
+ $psp_nosnippet = $_POST["psp_nosnippet"];
1224
 
1225
  if (isset($psp_disable) && !empty($psp_disable)) {
1226
 
1227
  add_post_meta($id, 'psp_disable', $psp_disable);
1228
  }
1229
+ if (isset($psp_notitlerewrite) && !empty($psp_notitlerewrite)) {
1230
+
1231
+ add_post_meta($id, 'psp_notitlerewrite', $psp_notitlerewrite);
1232
+ }
1233
  if (isset($pspmeta) && !empty($pspmeta)) {
1234
 
1235
  add_post_meta($id, 'robotsmeta', $pspmeta);
1263
  $description = htmlspecialchars(stripcslashes(get_post_meta($post_id, 'description', true)));
1264
  $psp_meta = $robotsmeta;
1265
  $psp_disable = htmlspecialchars(stripcslashes(get_post_meta($post_id, 'psp_disable', true)));
1266
+ $psp_notitlerewrite = htmlspecialchars(stripcslashes(get_post_meta($post_id, 'psp_notitlerewrite', true)));
1267
  $psp_noarchive = htmlspecialchars(stripcslashes(get_post_meta($post_id, 'psp_noarchive', true)));
1268
  $psp_nosnippet = htmlspecialchars(stripcslashes(get_post_meta($post_id, 'psp_nosnippet', true)));
1269
  ?>
1312
  </tr>
1313
  <input type="hidden" name="psp-meta-nonce" value="<?php echo wp_create_nonce('psp-meta-nonce') ?>" />
1314
 
1315
+ <?php if ( $this->is_admin() ) { ?>
1316
  <tr>
1317
  <th scope="row" style="text-align:right;"><?php _e('PSP Meta Index and Nofollow Tags:', 'platinum_seo_pack') ?></th>
1318
  <td><label for="meta_robots_index_follow" class="selectit"><input id="meta_robots_index_follow" name="psp_robotsmeta" type="radio" value="index,follow" <?php if ($psp_meta == "index,follow") echo 'checked="1"'?>/>index, follow</label>&nbsp;&nbsp;
1322
  </tr>
1323
  <?php } ?>
1324
 
1325
+ <?php if ($this->is_admin()) { ?>
1326
  <tr>
1327
  <th scope="row" style="text-align:right; vertical-align:top;">
1328
  <?php _e('NOARCHIVE this page/post:', 'platinum_seo_pack')?>
1341
  </tr>
1342
  <tr>
1343
  <th scope="row" style="text-align:right; vertical-align:top;">
1344
+ <?php _e('Disable title rewrite on this page/post:', 'platinum_seo_pack')?>
1345
+ </th>
1346
+ <td>
1347
+ <input type="checkbox" name="psp_notitlerewrite" <?php if ($psp_notitlerewrite) echo "checked=\"1\""; ?>/>
1348
+ </td>
1349
+ </tr>
1350
+ <tr>
1351
+ <th scope="row" style="text-align:right; vertical-align:top;">
1352
+ <?php _e('Disable PSP on this page/post:', 'platinum_seo_pack')?>
1353
  </th>
1354
  <td>
1355
  <input type="checkbox" name="psp_disable" <?php if ($psp_disable) echo "checked=\"1\""; ?>/>
1496
  | <a target="_blank" title="<?php _e('FAQ', 'platinum_seo_pack') ?>"
1497
  href="http://techblissonline.com/platinum-seo-pack-faq/"><?php _e('FAQ', 'platinum_seo_pack') ?></a>
1498
  | <a target="_blank" title="<?php _e('Platinum SEO Plugin Feedback', 'platinum_seo_pack') ?>" href="http://techblissonline.com/platinum-seo-pack/"><?php _e('Feedback', 'platinum_seo_pack') ?></a>
1499
+ | <a target="_blank" title="<?php _e('Platinum SEO - What is new in version 1.2.9?', 'platinum_seo_pack') ?>" href="http://techblissonline.com/page-title/"><?php _e('What is new in version 1.2.9?', 'platinum_seo_pack') ?></a>
1500
  | <a target="_blank" title="<?php _e('Platinum SEO - Smart Options, Smart Benefits', 'platinum_seo_pack') ?>" href="http://techblissonline.com/wordpress-seo-plugin-smart-options-benefits/"><?php _e('Wordpress SEO options', 'platinum_seo_pack') ?></a>
1501
  | <a target="_blank" title="<?php _e('Donations for Platinum SEO Plugin', 'platinum_seo_pack') ?>" href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=rrajeshbab%40gmail%2ecom&item_name=Platinum%20SEO%20plugin%20development%20and%20support%20expenses&item_number=1&no_shipping=0&no_note=1&tax=0&currency_code=USD&lc=IN&bn=PP%2dDonationsBF&charset=UTF%2d8"><?php _e('Please Donate', 'platinum_seo_pack') ?></a>
1502
  | <a target="_blank" title="<?php _e('Save Bandwidth with Chennai Central Plugin', 'platinum_seo_pack') ?>" href="http://techblissonline.com/save-bandwidth/"><?php _e('Save Bandwidth with Chennai Central Plugin', 'platinum_seo_pack') ?></a>
readme.txt CHANGED
@@ -46,6 +46,48 @@ Please read these **[FAQs](http://techblissonline.com/platinum-seo-pack-faq/)**
46
 
47
  == Screenshots ==
48
 
49
- 1. Post/Page level meta tag options (pre wordpress 2.7)
50
  2. General options in Platinum SEO Plugin
51
- 2. Post/Page level meta tag options (in wordpress 2.7)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
 
47
  == Screenshots ==
48
 
49
+ 1. Post/Page level meta tag options
50
  2. General options in Platinum SEO Plugin
51
+ 3. Platinum SEO Pack form in "Add Post" section of wordpress
52
+
53
+ == Changelog ==
54
+
55
+ = 1.2.9 =
56
+ * 2009-09-27 - added an option to turn on or off title rewrites for every post or page.
57
+
58
+ = 1.2.8 =
59
+ * 2009-09-11 - fixed a superficial bug related to function_exists that caused php errors.
60
+
61
+ = 1.2.7 =
62
+ * 2009-08-30 - added options to specify meta description and meta tags for Wordpress category and tag pages.
63
+
64
+ = 1.2.6 =
65
+ * 2009-05-25 - Corrected a minor problem with canonical link.
66
+
67
+ = 1.2.5 =
68
+ * 2009-05-24 - Corrected a minor characterset problem for an european language (Bulgarian).
69
+
70
+ = 1.2.4 =
71
+ * 2009-05-18 - Introduced Option to generate Canonical URLs.
72
+ * 2009-05-18 - Introduced an Option to use tags as keywords for posts (Earlier tags were automatically included and now it is optional)
73
+
74
+ = 1.2.3 =
75
+ * 2008-01-04 - Introduced an option to noindex comments pages of posts, if the option to break comments into pages is chosen in Wordpress 2.7
76
+ * 2008-01-04 - Automatically add nofollow tag to category links in breadcrumbs if the PSP options nofollow category listings on posts or nofollow category listings on pages is chosen.
77
+
78
+ = 1.2.2 =
79
+ * 2008-12-28 - Updated for wordpress 2.7
80
+
81
+ = 1.2.1 =
82
+ * 2008-10-12 - Updated for providing an option to turn off automatic 301 redirects while changing permalink structure (Refer http://techblissonline.com/wordpress-permalink-structure-plugin/)
83
+
84
+ = 1.2 =
85
+ * 2008-08-17 - Updated for providing Nofollow option for archive listings
86
+
87
+ = 1.1 =
88
+ * 2008-07-17 - Updated for wordpress 2.6
89
+
90
+ = 1.0 =
91
+ * 2008-06-25 - Initial upload of plugin Platinum SEO Pack
92
+
93
+
screenshot-1.gif DELETED
Binary file
screenshot-1.jpg ADDED
Binary file