Platinum SEO Pack - Version 1.1

Version Description

Download this release

Release Info

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

Code changes from version 1.0 to 1.1

Files changed (3) hide show
  1. Changelog.txt +9 -0
  2. platinum_seo_pack.php +10 -49
  3. readme.txt +2 -2
Changelog.txt ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ 2008-07-17 Rajesh (http://techblissonline.com/)
2
+
3
+ * Updated for wordpress 2.6
4
+ platinum_seo_pack.php
5
+
6
+ 2008-06-25 Rajesh (http://techblissonline.com/)
7
+
8
+ * Initial upload of plugin Platinum SEO Pack
9
+
platinum_seo_pack.php CHANGED
@@ -4,13 +4,14 @@
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.0
8
- Author: Techblissonline Dot Com (previous authors:Uberdose, joost de valk)
9
  Author URI: http://techblissonline.com/
10
  */
11
 
12
  /*
13
- Copyright (C) 2008 techblissonline.com (platinumseopack AT techblissonline DOT com)
 
14
 
15
  This program is free software; you can redistribute it and/or modify
16
  it under the terms of the GNU General Public License as published by
@@ -28,7 +29,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
28
 
29
  class Platinum_SEO_Pack {
30
 
31
- var $version = "1.0";
32
 
33
  /** Max numbers of chars in auto-generated description */
34
  var $max_description_length = 160;
@@ -932,30 +933,7 @@ class Platinum_SEO_Pack {
932
  /** crude approximization of whether current user is an admin */
933
  function is_admin() {
934
  return current_user_can('level_8');
935
- }
936
-
937
- function is_directory_writable($directory) {
938
- $filename = $directory . '/' . 'tmp_file_' . time();
939
- $fh = @fopen($filename, 'w');
940
- if (!$fh) {
941
- return false;
942
- }
943
-
944
- $written = fwrite($fh, "test");
945
- fclose($fh);
946
- unlink($filename);
947
- if ($written) {
948
- return true;
949
- } else {
950
- return false;
951
- }
952
- }
953
-
954
- function is_upgrade_directory_writable() {
955
- //return $this->is_directory_writable($this->upgrade_folder);
956
- // let's assume it is
957
- return true;
958
- }
959
 
960
  function add_meta_index_tags($id) {
961
  $awmp_edit = $_POST["psp_edit"];
@@ -1037,7 +1015,7 @@ class Platinum_SEO_Pack {
1037
  // End -->
1038
  </script>
1039
 
1040
- <?php if (substr($this->wp_version, 0, 3) == '2.5') { ?>
1041
  <div id="postpsp" class="postbox closed">
1042
  <h3><?php _e('Platinum SEO Pack', 'platinum_seo_pack') ?></h3>
1043
  <div class="inside">
@@ -1116,7 +1094,7 @@ class Platinum_SEO_Pack {
1116
 
1117
  </table>
1118
 
1119
- <?php if (substr($this->wp_version, 0, 3) == '2.5') { ?>
1120
  </div></div></div>
1121
  <?php } else { ?>
1122
  </div>
@@ -1242,23 +1220,6 @@ href="http://techblissonline.com/platinum-seo-pack/"><?php _e('Feedback', 'plati
1242
  | <a target="_blank" title="<?php _e('Donations for Platinum SEO Plugin', 'platinum_seo_pack') ?>"
1243
  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>
1244
  </p>
1245
- <p>
1246
- <?php
1247
- $canwrite = $this->is_upgrade_directory_writable();
1248
- //$canwrite = false;
1249
- ?>
1250
- <form class="form-table" name="dofollow" action="" method="post">
1251
- <p class="submit">
1252
- <input type="submit" <?php if (!$canwrite) echo(' disabled="disabled" ');?> name="psp_upgrade" value="<?php _e('One Click Upgrade', 'platinum_seo_pack')?> &raquo;" />
1253
- <strong><?php _e("(Remember: Backup early, backup often!)", 'platinum_seo_pack') ?></strong>
1254
- </form>
1255
- </p>
1256
- <p></p>
1257
-
1258
- <?php if (!$canwrite) {
1259
- echo("<p><strong>"); echo(sprintf(__("Please make sure that %s is writable.", 'platinum_seo_pack'), $this->upgrade_folder)); echo("</p></strong>");
1260
- } ?>
1261
- </p>
1262
 
1263
  <script type="text/javascript">
1264
  <!--
@@ -1932,7 +1893,7 @@ add_action('get_header', array($psp, 'apply_seo_title'));
1932
 
1933
  add_action('init', array($psp, 'init'));
1934
 
1935
- if (substr($psp->wp_version, 0, 3) == '2.5') {
1936
  add_action('edit_form_advanced', array($psp, 'psp_form_to_add_metatags'));
1937
  add_action('edit_page_form', array($psp, 'psp_form_to_add_metatags'));
1938
  } else {
@@ -1947,7 +1908,7 @@ add_action('edit_page_form', array($psp, 'add_meta_index_tags'));
1947
 
1948
  add_action('admin_menu', array($psp, 'admin_menu'));
1949
 
1950
- if ((substr($psp->wp_version, 0, 3) == '2.3') || (substr($psp->wp_version, 0, 3) == '2.5')) {
1951
  if (get_option('psp_comnts_feeds_noindex') || get_option('psp_rss_feeds_noindex')) {
1952
  add_action('commentsrss2_head', array($psp,'noindex_feed'));
1953
  }
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.1
8
+ Author: Techblissonline Dot Com
9
  Author URI: http://techblissonline.com/
10
  */
11
 
12
  /*
13
+ Copyright (C) 2008 Rajesh (http://techblissonline.com) (platinumseopack AT techblissonline DOT com)
14
+ Some code copyright 2007-2008 Uberdose, joost de valk
15
 
16
  This program is free software; you can redistribute it and/or modify
17
  it under the terms of the GNU General Public License as published by
29
 
30
  class Platinum_SEO_Pack {
31
 
32
+ var $version = "1.1";
33
 
34
  /** Max numbers of chars in auto-generated description */
35
  var $max_description_length = 160;
933
  /** crude approximization of whether current user is an admin */
934
  function is_admin() {
935
  return current_user_can('level_8');
936
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
937
 
938
  function add_meta_index_tags($id) {
939
  $awmp_edit = $_POST["psp_edit"];
1015
  // End -->
1016
  </script>
1017
 
1018
+ <?php if ((substr($this->wp_version, 0, 3) == '2.5') || (substr($this->wp_version, 0, 3) == '2.6')) { ?>
1019
  <div id="postpsp" class="postbox closed">
1020
  <h3><?php _e('Platinum SEO Pack', 'platinum_seo_pack') ?></h3>
1021
  <div class="inside">
1094
 
1095
  </table>
1096
 
1097
+ <?php if ((substr($this->wp_version, 0, 3) == '2.5') || (substr($this->wp_version, 0, 3) == '2.6')) { ?>
1098
  </div></div></div>
1099
  <?php } else { ?>
1100
  </div>
1220
  | <a target="_blank" title="<?php _e('Donations for Platinum SEO Plugin', 'platinum_seo_pack') ?>"
1221
  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>
1222
  </p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1223
 
1224
  <script type="text/javascript">
1225
  <!--
1893
 
1894
  add_action('init', array($psp, 'init'));
1895
 
1896
+ if ((substr($psp->wp_version, 0, 3) == '2.5') || (substr($psp->wp_version, 0, 3) == '2.6')) {
1897
  add_action('edit_form_advanced', array($psp, 'psp_form_to_add_metatags'));
1898
  add_action('edit_page_form', array($psp, 'psp_form_to_add_metatags'));
1899
  } else {
1908
 
1909
  add_action('admin_menu', array($psp, 'admin_menu'));
1910
 
1911
+ if ((substr($psp->wp_version, 0, 3) == '2.3') || (substr($psp->wp_version, 0, 3) == '2.5') || (substr($psp->wp_version, 0, 3) == '2.6')) {
1912
  if (get_option('psp_comnts_feeds_noindex') || get_option('psp_rss_feeds_noindex')) {
1913
  add_action('commentsrss2_head', array($psp,'noindex_feed'));
1914
  }
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: Techblissonline Dot Com (Rajesh), Uberdose
3
  Donate link: http://techblissonline.com/platinum-seo-pack/
4
  Tags: seo, plugin, wordpress, posts, google, meta index,meta keywords,meta description,title,post
5
  Requires at least: 1.5
6
- Tested up to: 2.5
7
  Stable tag: trunk
8
 
9
  Platinum SEO Plugin offers Complete onsite SEO solution for your Wordpress blog.Platinum SEO Plugin offers all the functionalities of All In One SEO plus more cooler onsite SEO options. It is automatic and also imports all your current settings in All in one SEO Plugin.But you need to disable All In One SEO before enabling Platinum SEO.
@@ -32,7 +32,7 @@ Some features:
32
  1. Unzip into your `/wp-content/plugins/` directory. If you're uploading it make sure to upload
33
  the top-level folder. Don't just upload all the php files and put them in `/wp-content/plugins/`.
34
  2. Activate the plugin through the 'Plugins' menu in WordPress
35
- 3. Visit your SEO options (*Options - Platinum SEO*) for Wordpress 2.3.x, (*Settings - Platinum SEO*) for Wordpress 2.5.x
36
  That's all folks!
37
 
38
  If you have to upgrade manually simply repeat the installation steps.
3
  Donate link: http://techblissonline.com/platinum-seo-pack/
4
  Tags: seo, plugin, wordpress, posts, google, meta index,meta keywords,meta description,title,post
5
  Requires at least: 1.5
6
+ Tested up to: 2.6
7
  Stable tag: trunk
8
 
9
  Platinum SEO Plugin offers Complete onsite SEO solution for your Wordpress blog.Platinum SEO Plugin offers all the functionalities of All In One SEO plus more cooler onsite SEO options. It is automatic and also imports all your current settings in All in one SEO Plugin.But you need to disable All In One SEO before enabling Platinum SEO.
32
  1. Unzip into your `/wp-content/plugins/` directory. If you're uploading it make sure to upload
33
  the top-level folder. Don't just upload all the php files and put them in `/wp-content/plugins/`.
34
  2. Activate the plugin through the 'Plugins' menu in WordPress
35
+ 3. Visit your SEO options (*Options - Platinum SEO*) for Wordpress 2.3.x, (*Settings - Platinum SEO*) for Wordpress 2.5.x & 2.6
36
  That's all folks!
37
 
38
  If you have to upgrade manually simply repeat the installation steps.