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

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

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

Warning: session_start() [function.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() [function.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
Rants and Raves

11.10.06

Issues with WordPress’s Rich Text Editor

Posted in Blogs, programming, technical at 1:26 pm by spryken

As I was trying to include the code snippet for my hack to automatically generate WML from a WordPress blog, I found out that even with the code plugins, the Rich Editor provided by WordPress strips the newlines from -pre- tags.

I had to edit the post in Preformancing, an extension for FireFox.  That or revert to the standard editor. 

I must say, that I have been extremely pleased with Preformancing.  It is browser based and open a “pane” below the browser tabs.  That way I can reference the page I am quoting or blogging about without having to switch windows.  Very handy.

Technorati Tags: ,

powered by performancing firefox

A Scout’s Campfire is WAP Friendly

Posted in Blogs, BoyScouts, programming, technical at 1:19 pm by spryken

I have implemented my WordPress hack for WAP enabling WordPress blogs on A Scout’s Campfire.  I will continue to monitor and update the WAP capality as I discover issues or improved plugins.

Technorati Tags: , ,

powered by performancing firefox

11.09.06

Hacking WordPress to Automatically Generate WML for WAP Devices - Part II

Posted in Blogs, programming, technical at 7:42 am by spryken

Well, I finally was able to hook up with Bob Porter to do some testing…… I cannot say I was pleased with the results. The very same redirect codes that work in a stand alone script were not working. The only difference was the “IF” statement to determine if the browser was WAP enabled.

After a day of email communication, we finally got together via phone. Then it was about a 1/2 an hour before I had the AHA moment.

We have successfully tested the automatic discovery of WAP enabled devices!! At least for Windows CE based devices. So, I am declaring success.

If you have some other WAP device, please test it here and let me know the results.

Here is the index.php that I created to replace the one provided by WordPress… If you use it, you will have to modify the location you redirect to.


<?
$pos = stripos($HTTP_ACCEPT, "VND.WAP.WML");
if ($pos === false)
{
 
 $pos = stripos($HTTP_USER_AGENT, "WINDOWS CE");
 if ($pos === false)
 {
  define('WP_USE_THEMES', true);
  require('./wp-blog-header.php');
  exit(0);
 }
 else
 {
 header( "HTTP/1.1 301 Moved Permanently" );
 header( "Status: 301 Moved Permanently" );
 header( "Location: http://www.spryken.com/blog/wp-wap.php" );
 exit(0); // This is Optional but suggested, to avoid any accidental output

 }
}
else {
 header( "HTTP/1.1 301 Moved Permanently" );
 header( "Status: 301 Moved Permanently" );
 header( "Location: http://www.spryken.com/blog/wp-wap.php" );
 exit(0); // This is Optional but suggested, to avoid any accidental output
}
?>
  

Technorati Tags: , , , ,

powered by performancing firefox

11.07.06

Hacking WordPress to Automatically Generate WML for WAP Devices

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

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.

11.03.06

All 3 Blogs Updated to WordPress 2.0.5

Posted in Blogs at 12:10 am by spryken

I have completed updating all 3 of my blogs to WordPress 2.0.5.

Rants and Raves - this blog
A Scout’s Campfire - my blog on Boy Scouts and Backpacking
WineWiki - my blog on Wine and Food

I also updated and switched themes on WineWiki.

I will be trying to add more content here.  As I have started A Scout’s Campfire, I am more in a writing mode.  So look for updates to all 3 blogs on an ongoing basis.

powered by performancing firefox

« Previous entries