Some other minor code changes suggestions All in One SEO Pack Feature Requests Forum

The support forums have a new home! Please visit All in One SEO Pack's new residence at Semper Plugins to purchase a support plan.

 
You must be logged in to post
Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

Some other minor code changes suggestions

Post
New Member

Honza111

posts 4

7:32 am June 28, 2009

Admin meta box tuning

1. Textarea for description is too small, change height row=1 to row=3

<td><textarea name="aiosp_description" rows="3" cols="60" 

 2. Add LABEL tag for form fields in metabox

  <tr>
  <th scope="row" style="text-align:right; vertical-align:top;">
  <label for="aiosp_disable"><?php _e('Disable on this page/post:', 'all_in_one_seo_pack')?></label>
  </th>
  <td>
  <input type="checkbox" name="aiosp_disable" id="aiosp_disable" <?php if ($aiosp_disable) echo "checked=\\"1\\""; ?>/>
  </td>
  </tr>

etc.

 
3. Metabox title is not gettexted

add_meta_box('aiosp',__('All in One SEO Pack', 'all_in_one_seo_pack'),'aiosp_meta','post');
add_meta_box('aiosp',__('All in One SEO Pack', 'all_in_one_seo_pack'),'aiosp_meta','page');

All in One SEO metabox genarally is not very optimized and is not XHTML valid.

UCWORDS issue 

First, "ucwords" is not multibyte function, use

mb_convert_case($str, MB_CASE_TITLE, get_bloginfo('charset'))

instead, please.

Generally, using "ucwords" on category titles is controversal – in other languages than English is NOT usually to have all first letters of titles uppercase.

Admin

hallsofmontezuma

Cary, NC

posts 202

9:12 pm July 2, 2009

You must be a subscriber to view administrator posts. Click here to purchase a support subscription.

For what shall it profit a man, if he shall gain the whole world, and lose his own soul?

New Member

Honza111

posts 4

2:26 am July 3, 2009

ucwords is not multibyte and damages some UTF characters.

Try use as keywords e.g. "příšerně žluťoučký kůň ŠŽŤ"


About the WordPress Developer Forum

Forum Timezone: America/New_York

Most Users Ever Online: 205

Currently Online:
18 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 5
Forums: 23
Topics: 1543
Posts: 3447

Membership:

There are 6357 Members

There are 4 Admins
There are 3 Moderators