September 1, 2004

WAP Support

I added WAP support to AnalogousMember today. I followed a tutorial at Building a Better Wap Diary with the following exceptions:

  • I edited the link in the index template to the archive files to point to archives/wap/ folder. The link is now:

    <a href="<$MTBlogArchiveURL$>wap/<$MTEntryID pad="1"$>.wml">Read This Entry...</a>

  • The individual archive files are being saved to a wap/ folder which requires you to enter

    "wap/<$MTEntryID pad="1"$>.wml"

    for the archive filename

  • I added the following to my .htaccess file so WAP browsers will automatically be served the proper content:

    RewriteCond %{HTTP_ACCEPT} text/vnd.wap.wml
    RewriteRule ^$ /index.wml

  • Removed the hardcoded link to symbiandiares.com from the archive template and replaced it with <$MTBlogURL$>.

If you want to see this in action without using your phone, goto WapTiger WAP Emulator for a conventional browser based WAP emulator. Just enter http://www.analogousmember.com/ for the URL.

Posted by DrFooMod2 at 12:52 PM | Comments (1)