Platinum SEO Pack - Version 1.3

Version Description

  • 2009-10-04 - Added an option to turn off post/page title format set in platinum seo settings for any particular post/page.
  • 2009-10-04 - Platinum seo will have its own top level menu in wordpress admin panel.
  • 2009-10-04 - Added a migration form for migrating from All in one seo to platinum seo.
Download this release

Release Info

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

Code changes from version 1.2.9 to 1.3

Files changed (5) hide show
  1. Changelog.txt +5 -0
  2. aioseop-migrate.php +65 -0
  3. platinum_seo_pack.php +78 -41
  4. readme.txt +10 -1
  5. screenshot-1.jpg +0 -0
Changelog.txt CHANGED
@@ -1,3 +1,8 @@
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.
1
+ 2009-10-04 Rajesh (http://techblissonline.com/) - Version 1.3
2
+ * Added an option to turn off post/page title format set in platinum seo settings for any particular post/page.
3
+ * Platinum seo will have its own top level menu in wordpress admin panel.
4
+ * Added a migration form for migrating from All in one seo to platinum seo.
5
+
6
2009-09-27 Rajesh (http://techblissonline.com/) - Version 1.2.9
7
8
* added an option to turn on or off title rewrites for every post or page.
aioseop-migrate.php ADDED
@@ -0,0 +1,65 @@
1
+ <?php
2
+ $message = null;
3
+ $message_updated = __("All in one SEO Pack migrated.", 'platinum_seo_pack');
4
+
5
+ // update options
6
+ if ($_POST['action'] && $_POST['action'] == 'aioseop-migrate') {
7
+ $nonce = $_POST['aioseop-migrate-nonce'];
8
+ if (!wp_verify_nonce($nonce, 'aioseop-migrate-nonce')) die ( 'Security Check - If you receive this in error, log out and back in to WordPress');
9
+
10
+ $aioseop_options = get_option('aioseop_options');
11
+
12
+ update_option('aiosp_home_title',$aioseop_options['aiosp_home_title']);
13
+ update_option('aiosp_home_keywords',$aioseop_options['aiosp_home_keywords']);
14
+ update_option('aiosp_home_description',$aioseop_options['aiosp_home_description']);
15
+
16
+ update_option('psp_canonical', $aioseop_options['aiosp_can']);
17
+ update_option('aiosp_rewrite_titles', $aioseop_options['aiosp_rewrite_titles']);
18
+ update_option('aiosp_post_title_format', $aioseop_options['aiosp_post_title_format']);
19
+ update_option('aiosp_page_title_format', $aioseop_options['aiosp_page_title_format']);
20
+ update_option('aiosp_category_title_format', $aioseop_options['aiosp_category_title_format']);
21
+ update_option('aiosp_archive_title_format', $aioseop_options['aiosp_archive_title_format']);
22
+ update_option('aiosp_tag_title_format', $aioseop_options['aiosp_tag_title_format']);
23
+ update_option('aiosp_search_title_format', $aioseop_options['aiosp_search_title_format']);
24
+ update_option('aiosp_description_format', $aioseop_options['aiosp_description_format']);
25
+ update_option('aiosp_404_title_format', $aioseop_options['aiosp_404_title_format']);
26
+ update_option('aiosp_paged_format', $aioseop_options['aiosp_paged_format']);
27
+
28
+ update_option('psp_category_noindex', $aioseop_options['aiosp_category_noindex']);
29
+ update_option('psp_archive_noindex', $aioseop_options['aiosp_archive_noindex']);
30
+ update_option('psp_tags_noindex', $aioseop_options['aiosp_tags_noindex']);
31
+
32
+ update_option('aiosp_generate_descriptions', $aioseop_options['aiosp_generate_descriptions']);
33
+ update_option('aiosp_post_meta_tags', $aioseop_options['aiosp_post_meta_tags']);
34
+ update_option('aiosp_page_meta_tags', $aioseop_options['aiosp_page_meta_tags']);
35
+ update_option('aiosp_home_meta_tags', $aioseop_options['aiosp_home_meta_tags']);
36
+ update_option('aiosp_do_log', $aioseop_options['aiosp_do_log']);
37
+
38
+ global $wpdb;
39
+ $wpdb->query("UPDATE $wpdb->postmeta SET meta_key = 'keywords' WHERE meta_key = '_aioseop_keywords'");
40
+ $wpdb->query("UPDATE $wpdb->postmeta SET meta_key = 'title' WHERE meta_key = '_aioseop_title'");
41
+ $wpdb->query("UPDATE $wpdb->postmeta SET meta_key = 'description' WHERE meta_key = '_aioseop_description'");
42
+ $wpdb->query("UPDATE $wpdb->postmeta SET meta_key = 'psp_disable' WHERE meta_key in ('_aioseop_disable', 'aioseop_disable')" );
43
+ echo "<div class='updated fade' style='background-color:green;border-color:green;'><p><strong>Migrated All in One SEO to Platinum SEO.</strong></p></div";
44
+ }
45
+ ?>
46
+ <div class="wrap"><h2><?php _e('Migrate from All in one SEO', 'platinum_seo_pack'); ?></h2>
47
+ <p>
48
+ <a target="_blank" title="<?php _e('FAQ', 'platinum_seo_pack') ?>" href="http://techblissonline.com/platinum-seo-pack-faq/"><?php _e('FAQ', 'platinum_seo_pack') ?></a>
49
+ | <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>
50
+ | <a target="_blank" title="<?php _e('Platinum SEO - What is new in version 1.3?', 'platinum_seo_pack') ?>" href="http://techblissonline.com/page-title-format/"><?php _e('What is new in version 1.3?', 'platinum_seo_pack') ?></a>
51
+ | <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>
52
+ | <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>
53
+ | <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>
54
+ </p>
55
+ <p><strong><?php _e('Click the button to migrate All in one SEO options to Platinum SEO.(It is recommended to back up your database before updating.)', 'platinum_seo_pack') ?></em></strong></p></div>
56
+ <form name="aioseop-migrate" action="" method="post">
57
+ <p class="submit">
58
+ <input type="hidden" name="action" value="aioseop-migrate" />
59
+ <input type="hidden" name="aioseop-migrate-nonce" value="<?php echo wp_create_nonce('aioseop-migrate-nonce'); ?>" />
60
+ <input type="submit" name="Submit" value="<?php _e('Migrate from All in One SEO', 'platinum_seo_pack')?> &raquo;" />
61
+ </p>
62
+ </form>
63
+ <?php $pspurl = get_option( 'siteurl' ). "/wp-admin/admin.php?page=platinum-seo-pack/platinum_seo_pack.php"; ?>
64
+ <p><a title="<?php _e('Go back to Platinum SEO Options Page', 'platinum_seo_pack') ?>" href="<?php echo "$pspurl" ?>"><?php _e('Go back to Platinum SEO Options Page', 'platinum_seo_pack') ?>&raquo;</a></p>
65
+ </div>
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.9
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.9";
33
34
/** Max numbers of chars in auto-generated description */
35
var $max_description_length = 160;
@@ -149,7 +149,7 @@ class Platinum_SEO_Pack {
149
return;
150
}
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) {
@@ -229,7 +229,7 @@ class Platinum_SEO_Pack {
229
230
function nofollow_category_listing($output) {
231
232
- if ( (get_option('psp_nofollow_cat_posts') && (is_single() || is_search()) ) || (get_option('psp_nofollow_cat_pages') && (is_home() || is_page() || is_category() || is_tag()) ) ) {
233
234
$output = $this->nofollow_link($output);
235
return $output;
@@ -242,7 +242,7 @@ class Platinum_SEO_Pack {
242
243
function nofollow_archive_listing($output) {
244
245
- if ( (get_option('psp_nofollow_arc_posts') && (is_single() || is_search()) ) || (get_option('psp_nofollow_arc_pages') && (is_home() || is_page() || is_category() || is_tag()) ) ) {
246
$output = $this->nofollow_link($output);
247
return $output;
248
@@ -375,15 +375,19 @@ class Platinum_SEO_Pack {
375
} else {
376
$keywords = $this->get_all_keywords();
377
}
378
- if (is_single() || is_page()) {
379
//if ($this->is_static_front_page()) {
380
// $description = trim(stripcslashes($this->internationalize(get_option('aiosp_home_description'))));
381
//} else {
382
$description = $this->get_post_description($post);
383
- if ($canonical) {
384
- $post_link = get_permalink($post->ID);
385
- $can_link = $this->paged_link($post_link);
386
- //$can_link = trailingslashit($can_link);
387
}
388
// }
389
} else if (is_home()) {
@@ -790,7 +794,7 @@ class Platinum_SEO_Pack {
790
}
791
$title = $this->paged_title($title);
792
$header = $this->replace_title($header, $title);
793
- } else if (is_single()) {
794
// we're not in the loop :(
795
$authordata = get_userdata($post->post_author);
796
$categories = get_the_category($post->ID);
@@ -805,17 +809,21 @@ class Platinum_SEO_Pack {
805
$title = $this->internationalize(wp_title('', false));
806
}
807
}
808
- $title_format = get_option('aiosp_post_title_format');
809
- $new_title = str_replace('%blog_title%', $this->internationalize(get_bloginfo('name')), $title_format);
810
- $new_title = str_replace('%blog_description%', $this->internationalize(get_bloginfo('description')), $new_title);
811
- $new_title = str_replace('%post_title%', $title, $new_title);
812
- $new_title = str_replace('%category%', $category, $new_title);
813
- $new_title = str_replace('%category_title%', $category, $new_title);
814
- $new_title = str_replace('%post_author_login%', $authordata->user_login, $new_title);
815
- $new_title = str_replace('%post_author_nicename%', $authordata->user_nicename, $new_title);
816
- $new_title = str_replace('%post_author_firstname%', ucwords($authordata->first_name), $new_title);
817
- $new_title = str_replace('%post_author_lastname%', ucwords($authordata->last_name), $new_title);
818
- $title = $new_title;
819
$title = trim($title);
820
$header = $this->replace_title($header, $title);
821
} else if (is_search() && isset($s) && !empty($s)) {
@@ -852,15 +860,18 @@ class Platinum_SEO_Pack {
852
if (!$title) {
853
$title = $this->internationalize(wp_title('', false));
854
}
855
- $title_format = get_option('aiosp_page_title_format');
856
- $new_title = str_replace('%blog_title%', $this->internationalize(get_bloginfo('name')), $title_format);
857
- $new_title = str_replace('%blog_description%', $this->internationalize(get_bloginfo('description')), $new_title);
858
- $new_title = str_replace('%page_title%', $title, $new_title);
859
- $new_title = str_replace('%page_author_login%', $authordata->user_login, $new_title);
860
- $new_title = str_replace('%page_author_nicename%', $authordata->user_nicename, $new_title);
861
- $new_title = str_replace('%page_author_firstname%', ucwords($authordata->first_name), $new_title);
862
- $new_title = str_replace('%page_author_lastname%', ucwords($authordata->last_name), $new_title);
863
- $title = trim($new_title);
864
$header = $this->replace_title($header, $title);
865
//}
866
} else if (function_exists('is_tag') && is_tag()) {
@@ -1201,6 +1212,7 @@ class Platinum_SEO_Pack {
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
}
@@ -1219,6 +1231,7 @@ class Platinum_SEO_Pack {
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
@@ -1229,6 +1242,10 @@ class Platinum_SEO_Pack {
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
@@ -1264,6 +1281,7 @@ class Platinum_SEO_Pack {
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
?>
@@ -1307,14 +1325,14 @@ class Platinum_SEO_Pack {
1307
</td>
1308
</tr>
1309
<tr>
1310
- <th scope="row" style="text-align:right;"><?php _e('Keywords (comma separated):', 'platinum_seo_pack') ?></th>
1311
<td><input value="<?php echo $keywords ?>" type="text" name="psp_keywords" size="62"/></td>
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;
1319
<label for="meta_robots_index_nofollow" class="selectit"><input id="meta_robots_index_nofollow" name="psp_robotsmeta" type="radio" value="index,nofollow" <?php if ($psp_meta == "index,nofollow") echo 'checked="1"'?>/>index, nofollow</label>&nbsp;&nbsp;
1320
<label for="meta_robots_noindex_follow" class="selectit"><input id="meta_robots_noindex_follow" name="psp_robotsmeta" type="radio" value="noindex,follow" <?php if ($psp_meta == "noindex,follow") echo 'checked="1"'?>/>noindex, follow</label>&nbsp;&nbsp;
@@ -1324,15 +1342,17 @@ class Platinum_SEO_Pack {
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')?>
1329
</th>
1330
<td>
1331
<input type="checkbox" name="psp_noarchive" <?php if ($psp_noarchive) echo "checked=\"1\""; ?>/>
1332
</td>
1333
- </tr>
1334
- <tr>
1335
- <th scope="row" style="text-align:right; vertical-align:top;">
1336
<?php _e('NOSNIPPET of this page/post:', 'platinum_seo_pack')?>
1337
</th>
1338
<td>
@@ -1340,7 +1360,9 @@ class Platinum_SEO_Pack {
1340
</td>
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>
@@ -1348,7 +1370,19 @@ class Platinum_SEO_Pack {
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>
@@ -1369,13 +1403,16 @@ class Platinum_SEO_Pack {
1369
1370
function admin_menu() {
1371
$file = __FILE__;
1372
1373
// hack for 1.5
1374
if (substr($this->wp_version, 0, 3) == '1.5') {
1375
$file = 'platinum-seo-pack/platinum_seo_pack.php';
1376
}
1377
//add_management_page(__('Platinum SEO Title', 'platinum_seo_pack'), __('Platinum SEO', 'platinum_seo_pack'), 10, $file, array($this, 'management_panel'));
1378
- add_submenu_page('options-general.php', __('Platinum SEO', 'platinum_seo_pack'), __('Platinum SEO', 'platinum_seo_pack'), 10, $file, array($this, 'options_panel'));
1379
if( function_exists( 'add_meta_box' )) {
1380
add_meta_box( 'postpsp', __( 'Platinum SEO Pack', 'platinum_seo_pack' ),
1381
array($this, 'psp_form_to_add_metatags'), 'post', 'advanced' );
@@ -1496,7 +1533,7 @@ class Platinum_SEO_Pack {
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>
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.3
8
Author: Rajesh - Techblissonline Dot Com
9
Author URI: http://techblissonline.com/
10
*/
29
30
class Platinum_SEO_Pack {
31
32
+ var $version = "1.3";
33
34
/** Max numbers of chars in auto-generated description */
35
var $max_description_length = 160;
149
return;
150
}
151
152
+ if (is_single() || is_page() || $this->is_static_front_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) {
229
230
function nofollow_category_listing($output) {
231
232
+ if ( (get_option('psp_nofollow_cat_posts') && (is_single() || is_search()) ) || (get_option('psp_nofollow_cat_pages') && (is_home() || is_page() || is_category() || is_tag() || $this->is_static_front_page()) ) ) {
233
234
$output = $this->nofollow_link($output);
235
return $output;
242
243
function nofollow_archive_listing($output) {
244
245
+ if ( (get_option('psp_nofollow_arc_posts') && (is_single() || is_search()) ) || (get_option('psp_nofollow_arc_pages') && (is_home() || is_page() || is_category() || is_tag() || $this->is_static_front_page()) ) ) {
246
$output = $this->nofollow_link($output);
247
return $output;
248
375
} else {
376
$keywords = $this->get_all_keywords();
377
}
378
+ if (is_single() || is_page() || $this->is_static_front_page()) {
379
//if ($this->is_static_front_page()) {
380
// $description = trim(stripcslashes($this->internationalize(get_option('aiosp_home_description'))));
381
//} else {
382
$description = $this->get_post_description($post);
383
+ if ($canonical) {
384
+ $post_link = get_permalink($post->ID);
385
+ $can_link = $this->paged_link($post_link);
386
+ //$can_link = trailingslashit($can_link);
387
+
388
+ if ($this->is_static_front_page()){
389
+ $can_link = trailingslashit($can_link);
390
+ }
391
}
392
// }
393
} else if (is_home()) {
794
}
795
$title = $this->paged_title($title);
796
$header = $this->replace_title($header, $title);
797
+ } else if (is_single() || $this->is_static_front_page()) {
798
// we're not in the loop :(
799
$authordata = get_userdata($post->post_author);
800
$categories = get_the_category($post->ID);
809
$title = $this->internationalize(wp_title('', false));
810
}
811
}
812
+ $psp_notitleformat = htmlspecialchars(stripcslashes(get_post_meta($post->ID, 'psp_notitleformat', true)));
813
+ if (!$psp_notitleformat) {
814
+
815
+ $title_format = get_option('aiosp_post_title_format');
816
+ $new_title = str_replace('%blog_title%', $this->internationalize(get_bloginfo('name')), $title_format);
817
+ $new_title = str_replace('%blog_description%', $this->internationalize(get_bloginfo('description')), $new_title);
818
+ $new_title = str_replace('%post_title%', $title, $new_title);
819
+ $new_title = str_replace('%category%', $category, $new_title);
820
+ $new_title = str_replace('%category_title%', $category, $new_title);
821
+ $new_title = str_replace('%post_author_login%', $authordata->user_login, $new_title);
822
+ $new_title = str_replace('%post_author_nicename%', $authordata->user_nicename, $new_title);
823
+ $new_title = str_replace('%post_author_firstname%', ucwords($authordata->first_name), $new_title);
824
+ $new_title = str_replace('%post_author_lastname%', ucwords($authordata->last_name), $new_title);
825
+ $title = $new_title;
826
+ }
827
$title = trim($title);
828
$header = $this->replace_title($header, $title);
829
} else if (is_search() && isset($s) && !empty($s)) {
860
if (!$title) {
861
$title = $this->internationalize(wp_title('', false));
862
}
863
+ $psp_notitleformat = htmlspecialchars(stripcslashes(get_post_meta($post->ID, 'psp_notitleformat', true)));
864
+ if (!$psp_notitleformat) {
865
+ $title_format = get_option('aiosp_page_title_format');
866
+ $new_title = str_replace('%blog_title%', $this->internationalize(get_bloginfo('name')), $title_format);
867
+ $new_title = str_replace('%blog_description%', $this->internationalize(get_bloginfo('description')), $new_title);
868
+ $new_title = str_replace('%page_title%', $title, $new_title);
869
+ $new_title = str_replace('%page_author_login%', $authordata->user_login, $new_title);
870
+ $new_title = str_replace('%page_author_nicename%', $authordata->user_nicename, $new_title);
871
+ $new_title = str_replace('%page_author_firstname%', ucwords($authordata->first_name), $new_title);
872
+ $new_title = str_replace('%page_author_lastname%', ucwords($authordata->last_name), $new_title);
873
+ $title = trim($new_title);
874
+ }
875
$header = $this->replace_title($header, $title);
876
//}
877
} else if (function_exists('is_tag') && is_tag()) {
1212
delete_post_meta($id, 'psp_disable');
1213
delete_post_meta($id, 'robotsmeta');
1214
delete_post_meta($id, 'psp_notitlerewrite');
1215
+ delete_post_meta($id, 'psp_notitleformat');
1216
delete_post_meta($id, 'psp_noarchive');
1217
delete_post_meta($id, 'psp_nosnippet');
1218
}
1231
$pspmeta = $_POST["psp_robotsmeta"];
1232
$psp_disable = $_POST["psp_disable"];
1233
$psp_notitlerewrite = $_POST["psp_notitlerewrite"];
1234
+ $psp_notitleformat = $_POST["psp_notitleformat"];
1235
$psp_noarchive = $_POST["psp_noarchive"];
1236
$psp_nosnippet = $_POST["psp_nosnippet"];
1237
1242
if (isset($psp_notitlerewrite) && !empty($psp_notitlerewrite)) {
1243
1244
add_post_meta($id, 'psp_notitlerewrite', $psp_notitlerewrite);
1245
+ }
1246
+ if (isset($psp_notitleformat) && !empty($psp_notitleformat)) {
1247
+
1248
+ add_post_meta($id, 'psp_notitleformat', $psp_notitleformat);
1249
}
1250
if (isset($pspmeta) && !empty($pspmeta)) {
1251
1281
$psp_meta = $robotsmeta;
1282
$psp_disable = htmlspecialchars(stripcslashes(get_post_meta($post_id, 'psp_disable', true)));
1283
$psp_notitlerewrite = htmlspecialchars(stripcslashes(get_post_meta($post_id, 'psp_notitlerewrite', true)));
1284
+ $psp_notitleformat = htmlspecialchars(stripcslashes(get_post_meta($post_id, 'psp_notitleformat', true)));
1285
$psp_noarchive = htmlspecialchars(stripcslashes(get_post_meta($post_id, 'psp_noarchive', true)));
1286
$psp_nosnippet = htmlspecialchars(stripcslashes(get_post_meta($post_id, 'psp_nosnippet', true)));
1287
?>
1325
</td>
1326
</tr>
1327
<tr>
1328
+ <th scope="row" style="text-align:left;"><?php _e('Keywords (comma separated):', 'platinum_seo_pack') ?></th>
1329
<td><input value="<?php echo $keywords ?>" type="text" name="psp_keywords" size="62"/></td>
1330
</tr>
1331
<input type="hidden" name="psp-meta-nonce" value="<?php echo wp_create_nonce('psp-meta-nonce') ?>" />
1332
1333
<?php if ( $this->is_admin() ) { ?>
1334
<tr>
1335
+ <th scope="row" style="text-align:left;"><?php _e('PSP Meta Index and Nofollow Tags:', 'platinum_seo_pack') ?></th>
1336
<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;
1337
<label for="meta_robots_index_nofollow" class="selectit"><input id="meta_robots_index_nofollow" name="psp_robotsmeta" type="radio" value="index,nofollow" <?php if ($psp_meta == "index,nofollow") echo 'checked="1"'?>/>index, nofollow</label>&nbsp;&nbsp;
1338
<label for="meta_robots_noindex_follow" class="selectit"><input id="meta_robots_noindex_follow" name="psp_robotsmeta" type="radio" value="noindex,follow" <?php if ($psp_meta == "noindex,follow") echo 'checked="1"'?>/>noindex, follow</label>&nbsp;&nbsp;
1342
1343
<?php if ($this->is_admin()) { ?>
1344
<tr>
1345
+ <th scope="row" style="text-align:left; vertical-align:top;">
1346
<?php _e('NOARCHIVE this page/post:', 'platinum_seo_pack')?>
1347
</th>
1348
<td>
1349
<input type="checkbox" name="psp_noarchive" <?php if ($psp_noarchive) echo "checked=\"1\""; ?>/>
1350
</td>
1351
+ </tr>
1352
+ <tr>
1353
+ </tr>
1354
+ <tr>
1355
+ <th scope="row" style="text-align:left; vertical-align:top;">
1356
<?php _e('NOSNIPPET of this page/post:', 'platinum_seo_pack')?>
1357
</th>
1358
<td>
1360
</td>
1361
</tr>
1362
<tr>
1363
+ </tr>
1364
+ <tr>
1365
+ <th scope="row" style="text-align:left; vertical-align:top;">
1366
<?php _e('Disable title rewrite on this page/post:', 'platinum_seo_pack')?>
1367
</th>
1368
<td>
1370
</td>
1371
</tr>
1372
<tr>
1373
+ </tr>
1374
+ <tr>
1375
+ <th scope="row" style="text-align:left; vertical-align:top;">
1376
+ <?php _e('Disable PSP title format on this page/post:', 'platinum_seo_pack')?>
1377
+ </th>
1378
+ <td>
1379
+ <input type="checkbox" name="psp_notitleformat" <?php if ($psp_notitleformat) echo "checked=\"1\""; ?>/>
1380
+ </td>
1381
+ </tr>
1382
+ <tr>
1383
+ </tr>
1384
+ <tr>
1385
+ <th scope="row" style="text-align:left; vertical-align:top;">
1386
<?php _e('Disable PSP on this page/post:', 'platinum_seo_pack')?>
1387
</th>
1388
<td>
1403
1404
function admin_menu() {
1405
$file = __FILE__;
1406
+ $filem = 'platinum-seo-pack/aioseop-migrate.php';
1407
1408
// hack for 1.5
1409
if (substr($this->wp_version, 0, 3) == '1.5') {
1410
$file = 'platinum-seo-pack/platinum_seo_pack.php';
1411
}
1412
//add_management_page(__('Platinum SEO Title', 'platinum_seo_pack'), __('Platinum SEO', 'platinum_seo_pack'), 10, $file, array($this, 'management_panel'));
1413
+ //add_submenu_page('options-general.php', __('Platinum SEO', 'platinum_seo_pack'), __('Platinum SEO', 'platinum_seo_pack'), 10, $file, array($this, 'options_panel'));
1414
+ add_menu_page(__('Platinum SEO', 'platinum_seo_pack'), __('Platinum SEO', 'platinum_seo_pack'), 10, $file, array($this, 'options_panel'));
1415
+ add_submenu_page($file, __('Migrate from All in one SEO', 'platinum_seo_pack'), __('Migrate from All in one SEO', 'platinum_seo_pack'), 10, $filem);
1416
if( function_exists( 'add_meta_box' )) {
1417
add_meta_box( 'postpsp', __( 'Platinum SEO Pack', 'platinum_seo_pack' ),
1418
array($this, 'psp_form_to_add_metatags'), 'post', 'advanced' );
1533
| <a target="_blank" title="<?php _e('FAQ', 'platinum_seo_pack') ?>"
1534
href="http://techblissonline.com/platinum-seo-pack-faq/"><?php _e('FAQ', 'platinum_seo_pack') ?></a>
1535
| <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>
1536
+ | <a target="_blank" title="<?php _e('Platinum SEO - What is new in version 1.3?', 'platinum_seo_pack') ?>" href="http://techblissonline.com/page-title-format/"><?php _e('What is new in version 1.3?', 'platinum_seo_pack') ?></a>
1537
| <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>
1538
| <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>
1539
| <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
@@ -19,8 +19,12 @@ Platinum SEO Plugin offers Complete onsite SEO solution for your Wordpress blog.
19
Some features:
20
21
* Automatic 301 redirects for any permalink changes
22
* Optimized Post and Page Titles for search engines
23
* Generates all SEO relevant META tags automatically
24
* Helps you avoid duplicate content
25
* Lets you override any title and set any META description and META keywords, for any post or page
26
* Compatible with most other plugins, like Auto Meta, Ultimate Tag Warrior and others.However you may have to disable All in One SEO pack
@@ -34,7 +38,7 @@ Some features:
34
1. Unzip into your `/wp-content/plugins/` directory. If you're uploading it make sure to upload
35
the top-level folder. Don't just upload all the php files and put them in `/wp-content/plugins/`.
36
2. Activate the plugin through the 'Plugins' menu in WordPress
37
- 3. Visit your SEO options (*Options - Platinum SEO*) for Wordpress 2.3.x, (*Settings - Platinum SEO*) for Wordpress 2.5.x, 2.6.x, 2.7.x, & 2.8.x
38
That's all folks!
39
40
If you have to upgrade manually simply repeat the installation steps.
@@ -52,6 +56,11 @@ Please read these **[FAQs](http://techblissonline.com/platinum-seo-pack-faq/)**
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
19
Some features:
20
21
* Automatic 301 redirects for any permalink changes
22
+ * Canonical URLs
23
* Optimized Post and Page Titles for search engines
24
* Generates all SEO relevant META tags automatically
25
+ * Option to specify meta description and meta keywords tag for categories and tag pages. (http://techblissonline.com/wordpress-categories/)**
26
+ * Option to turn off Page title or Post title rewrites for any particular post or page(http://techblissonline.com/page-title/)**
27
+ * Option to turn off Page title or Post title format for any particular post or page
28
* Helps you avoid duplicate content
29
* Lets you override any title and set any META description and META keywords, for any post or page
30
* Compatible with most other plugins, like Auto Meta, Ultimate Tag Warrior and others.However you may have to disable All in One SEO pack
38
1. Unzip into your `/wp-content/plugins/` directory. If you're uploading it make sure to upload
39
the top-level folder. Don't just upload all the php files and put them in `/wp-content/plugins/`.
40
2. Activate the plugin through the 'Plugins' menu in WordPress
41
+ 3. Visit your SEO options (*Platinum SEO -> Platinum SEO*)
42
That's all folks!
43
44
If you have to upgrade manually simply repeat the installation steps.
56
57
== Changelog ==
58
59
+ = 1.3 =
60
+ * 2009-10-04 - Added an option to turn off post/page title format set in platinum seo settings for any particular post/page.
61
+ * 2009-10-04 - Platinum seo will have its own top level menu in wordpress admin panel.
62
+ * 2009-10-04 - Added a migration form for migrating from All in one seo to platinum seo.
63
+
64
= 1.2.9 =
65
* 2009-09-27 - added an option to turn on or off title rewrites for every post or page.
66
screenshot-1.jpg CHANGED
Binary file