Platinum SEO Pack - Version 1.2.3

Version Description

Download this release

Release Info

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

Code changes from version 1.2.2 to 1.2.3

Files changed (3) hide show
  1. Changelog.txt +8 -2
  2. platinum_seo_pack.php +33 -8
  3. readme.txt +3 -2
Changelog.txt CHANGED
@@ -1,6 +1,12 @@
1
- 2008-10-12 Rajesh (http://techblissonline.com/) - Version 1.2.2
2
3
- * * Updated for wordpress 2.7
4
platinum_seo_pack.php
5
6
2008-10-12 Rajesh (http://techblissonline.com/) - Version 1.2.1
1
+ 2008-01-04 Rajesh (http://techblissonline.com/) - Version 1.2.3
2
3
+ * Introduced an option to noindex comments pages of posts, if the option to break comments into pages is chosen in Wordpress 2.7
4
+ * 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.
5
+ platinum_seo_pack.php
6
+
7
+ 2008-12-28 Rajesh (http://techblissonline.com/) - Version 1.2.2
8
+
9
+ * Updated for wordpress 2.7
10
platinum_seo_pack.php
11
12
2008-10-12 Rajesh (http://techblissonline.com/) - Version 1.2.1
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.2
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.2";
33
34
/** Max numbers of chars in auto-generated description */
35
var $max_description_length = 160;
@@ -255,13 +255,19 @@ class Platinum_SEO_Pack {
255
//$pspmeta = $_POST["psp_robotsmeta"];
256
$pspmeta = htmlspecialchars(stripcslashes(get_post_meta($post->ID, 'robotsmeta', true)));
257
258
- if (isset($pspmeta) && !empty($pspmeta)) {
259
-
260
- $meta = $pspmeta;
261
-
262
- } else {
263
264
- $meta .= "index,follow";
265
266
}
267
$psp_noarchive = htmlspecialchars(stripcslashes(get_post_meta($post->ID, 'psp_noarchive', true)));
@@ -1184,6 +1190,7 @@ class Platinum_SEO_Pack {
1184
update_option('psp_category_noindex', $_POST['psp_category_noindex']);
1185
update_option('psp_archive_noindex', $_POST['psp_archive_noindex']);
1186
update_option('psp_tags_noindex', $_POST['psp_tags_noindex']);
1187
update_option('psp_comnts_feeds_noindex', $_POST['psp_comnts_feeds_noindex']);
1188
update_option('psp_rss_feeds_noindex', $_POST['psp_rss_feeds_noindex']);
1189
update_option('psp_search_results_noindex', $_POST['psp_search_results_noindex']);
@@ -1601,6 +1608,22 @@ _e('Check this for excluding tag pages from being crawled. Might help to avoid d
1601
</td>
1602
</tr>
1603
1604
<tr>
1605
<th scope="row" style="text-align:right; vertical-align:top;">
1606
<a style="cursor:pointer;" title="<?php _e('Click for Help!', 'platinum_seo_pack')?>" onclick="toggleVisibility('psp_comnts_feeds_noindex_tip');">
@@ -1926,6 +1949,7 @@ add_option("aiosp_use_categories", 0, 'Platinum SEO Plugin Use Categories', 'yes
1926
add_option("psp_category_noindex", 0, 'Platinum SEO Plugin Noindex for Categories', 'yes');
1927
add_option("psp_archive_noindex", 1, 'Platinum SEO Plugin Noindex for date based archives', 'yes');
1928
add_option("psp_tags_noindex", 0, 'Platinum SEO Plugin Noindex for Tag Archives', 'yes');
1929
add_option("psp_comnts_feeds_noindex", 1, 'Platinum SEO Plugin Noindex for Comments Archives', 'yes');
1930
add_option("psp_rss_feeds_noindex", 1, 'Platinum SEO Plugin Noindex for all RSS Archives', 'yes');
1931
add_option("psp_search_results_noindex", 1, 'Platinum SEO Plugin Noindex for search results', 'yes');
@@ -1986,6 +2010,7 @@ if (get_option('psp_rss_feeds_noindex')) {
1986
1987
if (get_option('psp_nofollow_cat_pages') || get_option('psp_nofollow_cat_posts')) {
1988
add_filter('wp_list_categories',array($psp,'nofollow_category_listing'));
1989
}
1990
1991
if (get_option('psp_nofollow_arc_pages') || get_option('psp_nofollow_arc_posts')) {
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.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.2.3";
33
34
/** Max numbers of chars in auto-generated description */
35
var $max_description_length = 160;
255
//$pspmeta = $_POST["psp_robotsmeta"];
256
$pspmeta = htmlspecialchars(stripcslashes(get_post_meta($post->ID, 'robotsmeta', true)));
257
258
+ if (isset($pspmeta) && !empty($pspmeta)) {
259
+ if ( get_option('psp_comnts_pages_noindex') && get_option('page_comments') && (get_query_var('cpage') >= 1 || get_query_var('cpage') < get_comment_pages_count()) ) {
260
+ $meta .= "noindex,follow";
261
+ } else {
262
+ $meta = $pspmeta;
263
+ }
264
265
+ } else {
266
+ if ( get_option('psp_comnts_pages_noindex') && get_option('page_comments') && (get_query_var('cpage') >= 1 || get_query_var('cpage') < get_comment_pages_count()) ) {
267
+ $meta .= "noindex,follow";
268
+ } else {
269
+ $meta .= "index,follow";
270
+ }
271
272
}
273
$psp_noarchive = htmlspecialchars(stripcslashes(get_post_meta($post->ID, 'psp_noarchive', true)));
1190
update_option('psp_category_noindex', $_POST['psp_category_noindex']);
1191
update_option('psp_archive_noindex', $_POST['psp_archive_noindex']);
1192
update_option('psp_tags_noindex', $_POST['psp_tags_noindex']);
1193
+ update_option('psp_comnts_pages_noindex', $_POST['psp_comnts_pages_noindex']);
1194
update_option('psp_comnts_feeds_noindex', $_POST['psp_comnts_feeds_noindex']);
1195
update_option('psp_rss_feeds_noindex', $_POST['psp_rss_feeds_noindex']);
1196
update_option('psp_search_results_noindex', $_POST['psp_search_results_noindex']);
1608
</td>
1609
</tr>
1610
1611
+ <tr>
1612
+ <th scope="row" style="text-align:right; vertical-align:top;">
1613
+ <a style="cursor:pointer;" title="<?php _e('Click for Help!', 'platinum_seo_pack')?>" onclick="toggleVisibility('psp_comnts_pages_noindex_tip');">
1614
+ <?php _e('Use noindex for comment pages of posts(Introduced in wordpress 2.7):', 'platinum_seo_pack')?>
1615
+ </a>
1616
+ </td>
1617
+ <td>
1618
+ <input type="checkbox" name="psp_comnts_pages_noindex" <?php if (get_option('psp_comnts_pages_noindex')) echo "checked=\"1\""; ?>/>
1619
+ <div style="max-width:500px; text-align:left; display:none" id="psp_comnts_pages_noindex_tip">
1620
+ <?php
1621
+ _e('Check this for excluding comments pages from being indexed. Thereby avoid duplicate content if you wish to use Comment paging (from wordpress 2.7)', 'platinum_seo_pack');
1622
+ ?>
1623
+ </div>
1624
+ </td>
1625
+ </tr>
1626
+
1627
<tr>
1628
<th scope="row" style="text-align:right; vertical-align:top;">
1629
<a style="cursor:pointer;" title="<?php _e('Click for Help!', 'platinum_seo_pack')?>" onclick="toggleVisibility('psp_comnts_feeds_noindex_tip');">
1949
add_option("psp_category_noindex", 0, 'Platinum SEO Plugin Noindex for Categories', 'yes');
1950
add_option("psp_archive_noindex", 1, 'Platinum SEO Plugin Noindex for date based archives', 'yes');
1951
add_option("psp_tags_noindex", 0, 'Platinum SEO Plugin Noindex for Tag Archives', 'yes');
1952
+ add_option("psp_comnts_pages_noindex", 1, 'Platinum SEO Plugin Noindex for Comments Pages of Posts (WP 2.7 or later)', 'yes');
1953
add_option("psp_comnts_feeds_noindex", 1, 'Platinum SEO Plugin Noindex for Comments Archives', 'yes');
1954
add_option("psp_rss_feeds_noindex", 1, 'Platinum SEO Plugin Noindex for all RSS Archives', 'yes');
1955
add_option("psp_search_results_noindex", 1, 'Platinum SEO Plugin Noindex for search results', 'yes');
2010
2011
if (get_option('psp_nofollow_cat_pages') || get_option('psp_nofollow_cat_posts')) {
2012
add_filter('wp_list_categories',array($psp,'nofollow_category_listing'));
2013
+ add_filter('the_category',array($psp,'nofollow_category_listing'));
2014
}
2015
2016
if (get_option('psp_nofollow_arc_pages') || get_option('psp_nofollow_arc_posts')) {
readme.txt CHANGED
@@ -1,7 +1,7 @@
1
=== Platinum SEO Pack ===
2
Contributors: Techblissonline Dot Com (Rajesh)
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.7
7
Stable tag: trunk
@@ -46,5 +46,6 @@ Please read these **[FAQs](http://techblissonline.com/platinum-seo-pack-faq/)**
46
47
== Screenshots ==
48
49
- 1. Post/Page level meta tag options
50
2. General options in Platinum SEO Plugin
1
=== Platinum SEO Pack ===
2
Contributors: Techblissonline Dot Com (Rajesh)
3
Donate link: http://techblissonline.com/platinum-seo-pack/
4
+ Tags: seo, plugin, wordpress, posts, google, meta index,meta keywords,meta description,title,post, wordpress seo, platinum seo, seo plugin
5
Requires at least: 1.5
6
Tested up to: 2.7
7
Stable tag: trunk
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)