All in One SEO Pack - Version 1.2.9.9

Version Description

Download this release

Release Info

Developer uberdose
Plugin Icon 128x128 All in One SEO Pack
Version 1.2.9.9
Comparing to
See all releases

Code changes from version 1.2.9.8 to 1.2.9.9

Files changed (1) hide show
  1. all_in_one_seo_pack.php +32 -6
all_in_one_seo_pack.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: All in One SEO Pack
5
  Plugin URI: http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/
6
  Description: Out-of-the-box SEO for your Wordpress blog.
7
- Version: 1.2.9.8
8
  Author: uberdose
9
  Author URI: http://wp.uberdose.com/
10
  */
@@ -28,7 +28,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
28
 
29
  class All_in_One_SEO_Pack {
30
 
31
- var $version = "1.2.9.8";
32
 
33
  /**
34
  * Max numbers of chars in auto-generated description.
@@ -554,6 +554,16 @@ class All_in_One_SEO_Pack {
554
  $title = htmlspecialchars(stripslashes(get_post_meta($post_id, 'title', true)));
555
  $description = htmlspecialchars(stripslashes(get_post_meta($post_id, 'description', true)));
556
  ?>
 
 
 
 
 
 
 
 
 
 
557
  <input value="aiosp_edit" type="hidden" name="aiosp_edit" />
558
  <table style="margin-bottom:40px; margin-top:30px;">
559
  <tr>
@@ -567,8 +577,11 @@ class All_in_One_SEO_Pack {
567
  </tr>
568
  <tr>
569
  <th scope="row" style="text-align:right;"><?php _e('Description:', 'all_in_one_seo_pack') ?></th>
570
- <td><textarea name="aiosp_description" rows="1" cols="78"><?php echo $description ?></textarea><br/>
571
- <?php _e('Most search engines use a maximum of 160 chars for the description.', 'all_in_one_seo_pack') ?>
 
 
 
572
  </td>
573
  </tr>
574
  <tr>
@@ -585,6 +598,16 @@ class All_in_One_SEO_Pack {
585
  $description = htmlspecialchars(stripslashes(get_post_meta($post->ID, 'description', true)));
586
  $title = htmlspecialchars(stripslashes(get_post_meta($post->ID, 'title', true)));
587
  ?>
 
 
 
 
 
 
 
 
 
 
588
  <input value="aiosp_edit" type="hidden" name="aiosp_edit"/>
589
  <table style="margin-bottom:40px; margin-top:30px;">
590
  <tr>
@@ -598,8 +621,11 @@ class All_in_One_SEO_Pack {
598
  </tr>
599
  <tr>
600
  <th scope="row" style="text-align:right;"><?php _e('Description:', 'all_in_one_seo_pack') ?></th>
601
- <td><textarea name="aiosp_description" rows="1" cols="78" tabindex="1001"><?php echo $description ?></textarea><br/>
602
- <?php _e('Most search engines use a maximum of 160 chars for the description.', 'all_in_one_seo_pack')?></td>
 
 
 
603
  </tr>
604
  <tr>
605
  <th scope="row" style="text-align:right;"><?php _e('Keywords (comma separated):', 'all_in_one_seo_pack') ?></th>
4
  Plugin Name: All in One SEO Pack
5
  Plugin URI: http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/
6
  Description: Out-of-the-box SEO for your Wordpress blog.
7
+ Version: 1.2.9.9
8
  Author: uberdose
9
  Author URI: http://wp.uberdose.com/
10
  */
28
 
29
  class All_in_One_SEO_Pack {
30
 
31
+ var $version = "1.2.9.9";
32
 
33
  /**
34
  * Max numbers of chars in auto-generated description.
554
  $title = htmlspecialchars(stripslashes(get_post_meta($post_id, 'title', true)));
555
  $description = htmlspecialchars(stripslashes(get_post_meta($post_id, 'description', true)));
556
  ?>
557
+ <SCRIPT LANGUAGE="JavaScript">
558
+ <!-- Begin
559
+ function countChars(field,cntfield,maxlimit) {
560
+ if (field.value.length > maxlimit)
561
+ field.value = field.value.substring(0, maxlimit);
562
+ else
563
+ cntfield.value = maxlimit - field.value.length;
564
+ }
565
+ // End -->
566
+ </script>
567
  <input value="aiosp_edit" type="hidden" name="aiosp_edit" />
568
  <table style="margin-bottom:40px; margin-top:30px;">
569
  <tr>
577
  </tr>
578
  <tr>
579
  <th scope="row" style="text-align:right;"><?php _e('Description:', 'all_in_one_seo_pack') ?></th>
580
+ <td><textarea name="aiosp_description" rows="1" cols="78"
581
+ onKeyDown="countChars(document.post.aiosp_description,document.post.length1,160)"
582
+ onKeyUp="countChars(document.post.aiosp_description,document.post.length1,160)"><?php echo $description ?></textarea><br/>
583
+ <input readonly type="text" name="length1" size="3" maxlength="3" value="160" />
584
+ <?php _e(' characters left (most search engines use a maximum of 160 chars for the description)', 'all_in_one_seo_pack') ?>
585
  </td>
586
  </tr>
587
  <tr>
598
  $description = htmlspecialchars(stripslashes(get_post_meta($post->ID, 'description', true)));
599
  $title = htmlspecialchars(stripslashes(get_post_meta($post->ID, 'title', true)));
600
  ?>
601
+ <SCRIPT LANGUAGE="JavaScript">
602
+ <!-- Begin
603
+ function countChars(field,cntfield,maxlimit) {
604
+ if (field.value.length > maxlimit)
605
+ field.value = field.value.substring(0, maxlimit);
606
+ else
607
+ cntfield.value = maxlimit - field.value.length;
608
+ }
609
+ // End -->
610
+ </script>
611
  <input value="aiosp_edit" type="hidden" name="aiosp_edit"/>
612
  <table style="margin-bottom:40px; margin-top:30px;">
613
  <tr>
621
  </tr>
622
  <tr>
623
  <th scope="row" style="text-align:right;"><?php _e('Description:', 'all_in_one_seo_pack') ?></th>
624
+ <td><textarea name="aiosp_description" rows="1" cols="78" tabindex="1001"
625
+ onKeyDown="countChars(document.post.aiosp_description,document.post.length1,160)"
626
+ onKeyUp="countChars(document.post.aiosp_description,document.post.length1,160)"><?php echo $description ?></textarea><br/>
627
+ <input readonly type="text" name="length1" size="3" maxlength="3" value="160" />
628
+ <?php _e(' characters left (most search engines use a maximum of 160 chars for the description)', 'all_in_one_seo_pack')?></td>
629
  </tr>
630
  <tr>
631
  <th scope="row" style="text-align:right;"><?php _e('Keywords (comma separated):', 'all_in_one_seo_pack') ?></th>