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.

Please consider registering
guest

Log In

Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Some other minor code changes suggestions
June 28, 2009
7:32 am
Honza111
New Member
Forum Posts: 4
Member Since:
June 28, 2009
Offline

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.

July 2, 2009
9:12 pm
hallsofmontezuma
Admin
Forum Posts: 202
Member Since:
June 8, 2009
Offline

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?
July 3, 2009
2:26 am
Honza111
New Member
Forum Posts: 4
Member Since:
June 28, 2009
Offline

ucwords is not multibyte and damages some UTF characters.

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

Forum Timezone: America/New_York

Most Users Ever Online: 205

Currently Online:
65 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

romiojuliat: 102

yaoming987: 50

jintuy: 50

miki1986: 33

newshow: 28

karen1234: 27

Member Stats:

Guest Posters: 0

Members: 6356

Moderators: 3

Admins: 4

Forum Stats:

Groups: 5

Forums: 23

Topics: 1546

Posts: 3450

Newest Members: carofern@cisco.com, pronto, jessie, pbaylies, ninaeast, freda

Moderators: davecashmore (2), aaron (5), tempadmin (0)

Administrators: WordPress Professional (442), hallsofmontezuma (202), onefinejay (10), stevemortiboy (4)