Deprecated: Assigning the return value of new by reference is deprecated in /home/spryken/www/www/blog/wp-settings.php on line 512

Deprecated: Assigning the return value of new by reference is deprecated in /home/spryken/www/www/blog/wp-settings.php on line 527

Deprecated: Assigning the return value of new by reference is deprecated in /home/spryken/www/www/blog/wp-settings.php on line 534

Deprecated: Assigning the return value of new by reference is deprecated in /home/spryken/www/www/blog/wp-settings.php on line 570

Strict Standards: Declaration of Walker_Page::start_lvl() should be compatible with Walker::start_lvl(&$output) in /home/spryken/www/www/blog/wp-includes/classes.php on line 1199

Strict Standards: Declaration of Walker_Page::end_lvl() should be compatible with Walker::end_lvl(&$output) in /home/spryken/www/www/blog/wp-includes/classes.php on line 1199

Strict Standards: Declaration of Walker_Page::start_el() should be compatible with Walker::start_el(&$output) in /home/spryken/www/www/blog/wp-includes/classes.php on line 1199

Strict Standards: Declaration of Walker_Page::end_el() should be compatible with Walker::end_el(&$output) in /home/spryken/www/www/blog/wp-includes/classes.php on line 1199

Strict Standards: Declaration of Walker_PageDropdown::start_el() should be compatible with Walker::start_el(&$output) in /home/spryken/www/www/blog/wp-includes/classes.php on line 1244

Strict Standards: Declaration of Walker_Category::start_lvl() should be compatible with Walker::start_lvl(&$output) in /home/spryken/www/www/blog/wp-includes/classes.php on line 1391

Strict Standards: Declaration of Walker_Category::end_lvl() should be compatible with Walker::end_lvl(&$output) in /home/spryken/www/www/blog/wp-includes/classes.php on line 1391

Strict Standards: Declaration of Walker_Category::start_el() should be compatible with Walker::start_el(&$output) in /home/spryken/www/www/blog/wp-includes/classes.php on line 1391

Strict Standards: Declaration of Walker_Category::end_el() should be compatible with Walker::end_el(&$output) in /home/spryken/www/www/blog/wp-includes/classes.php on line 1391

Strict Standards: Declaration of Walker_CategoryDropdown::start_el() should be compatible with Walker::start_el(&$output) in /home/spryken/www/www/blog/wp-includes/classes.php on line 1442

Strict Standards: Redefining already defined constructor for class wpdb in /home/spryken/www/www/blog/wp-includes/wp-db.php on line 306

Deprecated: Assigning the return value of new by reference is deprecated in /home/spryken/www/www/blog/wp-includes/cache.php on line 103

Strict Standards: Redefining already defined constructor for class WP_Object_Cache in /home/spryken/www/www/blog/wp-includes/cache.php on line 431

Deprecated: Assigning the return value of new by reference is deprecated in /home/spryken/www/www/blog/wp-includes/query.php on line 61

Deprecated: Assigning the return value of new by reference is deprecated in /home/spryken/www/www/blog/wp-includes/theme.php on line 1109

Strict Standards: Declaration of Walker_Comment::start_lvl() should be compatible with Walker::start_lvl(&$output) in /home/spryken/www/www/blog/wp-includes/comment-template.php on line 1266

Strict Standards: Declaration of Walker_Comment::end_lvl() should be compatible with Walker::end_lvl(&$output) in /home/spryken/www/www/blog/wp-includes/comment-template.php on line 1266

Strict Standards: Declaration of Walker_Comment::start_el() should be compatible with Walker::start_el(&$output) in /home/spryken/www/www/blog/wp-includes/comment-template.php on line 1266

Strict Standards: Declaration of Walker_Comment::end_el() should be compatible with Walker::end_el(&$output) in /home/spryken/www/www/blog/wp-includes/comment-template.php on line 1266

Strict Standards: Redefining already defined constructor for class WP_Dependencies in /home/spryken/www/www/blog/wp-includes/class.wp-dependencies.php on line 31

Strict Standards: Redefining already defined constructor for class WP_Http in /home/spryken/www/www/blog/wp-includes/http.php on line 61

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/spryken/www/www/blog/wp-settings.php:512) in /home/spryken/www/www/blog/wp-content/plugins/wordpress-automatic-upgrade/wordpress-automatic-upgrade.php on line 119

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/spryken/www/www/blog/wp-settings.php:512) in /home/spryken/www/www/blog/wp-content/plugins/wordpress-automatic-upgrade/wordpress-automatic-upgrade.php on line 119

Strict Standards: Redefining already defined constructor for class ftp_base in /home/spryken/www/www/blog/wp-content/plugins/wordpress-automatic-upgrade/lib/ftp_class.php on line 56

Strict Standards: Redefining already defined constructor for class ftp in /home/spryken/www/www/blog/wp-content/plugins/wordpress-automatic-upgrade/lib/ftp_class_sockets.php on line 8

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 398

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 398

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 398

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 1002

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 1003

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 398

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 398

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 1002

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 1003

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 398

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 398

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 398

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 1002

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 1003

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 398

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 1002

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 1003

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 398

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 1002

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 1003

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 398

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 398

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 1002

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 1003

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 398

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 398

Deprecated: Non-static method WP_Http_ExtHTTP::test() should not be called statically, assuming $this from incompatible context in /home/spryken/www/www/blog/wp-includes/http.php on line 94

Deprecated: Non-static method WP_Http_Curl::test() should not be called statically, assuming $this from incompatible context in /home/spryken/www/www/blog/wp-includes/http.php on line 97

Deprecated: Non-static method WP_Http_ExtHTTP::test() should not be called statically, assuming $this from incompatible context in /home/spryken/www/www/blog/wp-includes/http.php on line 142

Deprecated: Non-static method WP_Http_Streams::test() should not be called statically, assuming $this from incompatible context in /home/spryken/www/www/blog/wp-includes/http.php on line 145

Deprecated: Non-static method WP_Http::processHeaders() should not be called statically, assuming $this from incompatible context in /home/spryken/www/www/blog/wp-includes/http.php on line 1037

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 1002

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 1003

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 1002

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 1003
Rants and Raves » Hacking WordPress to Automatically Generate WML for WAP Devices
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 1002

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 1003

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 1002

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 1003

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 1002

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 1003

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 1002

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 1003

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 1002

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 1003

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 1002

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 1003

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 1002

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 1003

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 1002

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-includes/kses.php on line 1003

Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method AutoMeta::echoMetaTags() should not be called statically in /home/spryken/www/www/blog/wp-includes/plugin.php on line 339

Strict Standards: Non-static method AutoMeta::checkIndex() should not be called statically in /home/spryken/www/www/blog/wp-content/plugins/autometa/autometa.php on line 289

11.07.06

Hacking WordPress to Automatically Generate WML for WAP Devices

Posted in Blogs, programming at 12:09 am by spryken


Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-content/plugins/wpg2/wpg2embed.inc on line 1229

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-content/plugins/wpg2/wpg2embed.inc on line 1245

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/spryken/www/www/blog/wp-content/plugins/stats/stats.php on line 371

I was exploring some plug-ins for WordPress, looking for a Post Hit Counter or a stats plug-in, when I ran across wp-wap by GaMerZ.  It provides WordPress with the ability to deliver pages in WML for WAP enabled Mobile Devices.  Great I thought.  I will make A Scout’s Campfire wap friendly.  I created a sub-domain and put a redirect php script in it, pointing to the wp-wap.php.  Since I don’t have WAP enabled mobile device, I contacted my buddy Bob Porter.  Both he and I got prompted to save the file wp-wap.php when we hit the new sub-domain in FireFox and IE.  Puzzled, I suggested he try with his smartphone.  Lo and behold, it worked correctly.

We deduced that both FF and IE could not handle the mime type WML.  A little digging on the web revealed ways to detect WAP enabled devices and redirect accordingly.  WAP and domain names,  provide a starting point for me to build a replacement for index.php in WordPress.  Using information from that site and IEMobile Team Log, I was able to modify the index.php to query for WAP devices and redirect to wp-wap.php while allowing any other devices to process normally.

At least I think that’s what I did.  Bob is off-line currently, so I can’t test the WAP device, but FF is working correctly.  I have enabled this on this site only.  If further testing holds up, then I will be adding it to A Scout’s Campfire.

Look for an update tomorrow.

Leave a Comment

You must be logged in to post a comment.


Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method AutoMeta::includeTechnoratiTags() should not be called statically in /home/spryken/www/www/blog/wp-includes/plugin.php on line 339

Strict Standards: Non-static method AutoMeta::echoTechnoratiTags() should not be called statically in /home/spryken/www/www/blog/wp-content/plugins/autometa/autometa.php on line 275

Strict Standards: Non-static method AutoMeta::getTagArray() should not be called statically in /home/spryken/www/www/blog/wp-content/plugins/autometa/autometa.php on line 217