ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Template for pda?

July 01, 2007 4:03am

Subscribe [5]
  • #1 / Jul 01, 2007 4:03am

    JT Thompson

    745 posts

    Has anyone come up with a good template to use for PDA browsing? I’m writing one but I’m just not that great at style design. Figured surely someone’s got one out there already.

    Anyone?

  • #2 / Jul 01, 2007 5:38am

    JT Thompson

    745 posts

    Nevermind, I’ve got mine complete.

  • #3 / Jul 01, 2007 9:44am

    JT Thompson

    745 posts

    If anyone’s interested I’ve zipped the templates. You can add the three templates to any group and they’ll work. I used the archive from vb
    http://www.hillaryproject.com/?/sg_distro/pda

    I attached the file

    Incase you’re wondering what i mean by PDA browsing, here’s a couple screen caps of my PDA:
    http://www.hillaryproject.com/stuff/pda.gif

  • #4 / Jul 02, 2007 3:44pm

    DeltaJo

    22 posts

    That’s excellent, JT.  Thanks for that. 

    Now I just have to get a PDA to test it.

  • #5 / Jul 02, 2007 10:09pm

    JT Thompson

    745 posts

    haha.

    Well i’ll tell you. The first thing I thought of was to use type=“handheld” or whatever and specify a different CSS, but the problem is to really fit in a pda the whole page can’t be loaded.

    I’m a little surprised more people aren’t interested in them. Or maybe they just made their own. Not much sense putting it in the wiki since nobody’s responding.

    I made the templates dynamic so I don’t think there should be any changes to be made. Originally i had hard coded my url at the bottom and some other places but I removed that.

    Should be real simple. Create the 3 templates, paste the content then check it out.

  • #6 / Jul 02, 2007 10:53pm

    ms

    274 posts

    Nice work, looks great ... thanks for sharing. May come handy at some time.

    JT, can you comment on how you switch between the “full-blown” and the stripped-down pda version of the site? Are you using some automated discovery or has the user to select the pda version manually? (I haven’t visited your site with a pda, so bear with me if I’m asking something obvious.)

    -Markus

  • #7 / Jul 02, 2007 10:55pm

    JT Thompson

    745 posts

    When you posted it was still manual, but I just added some javascript to redirect it. unfortunately it only handles windows mobile. but you could also use the following in your .htaccess file if your host allows mod_rewrite.

    here’s the link to the javascript i put in that worked
    http://www.hillaryproject.com/stuff/ce.htm

    #browser redirects For PDA Based Browsers
    RewriteCond %{HTTP_USER_AGENT} “Windows CE” [NC,OR] #Windows CE and Pocket PC
    RewriteCond %{HTTP_USER_AGENT} “NetFront” [NC,OR] #PalmSource WebBrowser 2.0
    RewriteCond %{HTTP_USER_AGENT} “Palm OS” [NC,OR] #Eudora Web Browser for Palm
    RewriteCond %{HTTP_USER_AGENT} “Blazer” [NC,OR] #Handspring Blazer Browser
    RewriteCond %{HTTP_USER_AGENT} “Elaine” [NC,OR] #RIM Devices
    RewriteCond %{HTTP_USER_AGENT} “^WAP.*$” [NC,OR] #WAP Browsers
    RewriteCond %{HTTP_USER_AGENT} “Plucker” [NC,OR] #Plucker Offline download client
    RewriteCond %{HTTP_USER_AGENT} “AvantGo” [NC] #AvantGo Service
    RewriteRule ^index\.php <a href="http://www.yourdomain.net/pda.php">http://www.yourdomain.net/pda.php</a> [L,R]

    Of course the above statement assumes your host is allowing mod_rewrite

    Here’s a better list of handheld O/S.

    http://www.zytrax.com/tech/web/mobile_ids.html

  • #8 / Jul 03, 2007 1:09pm

    Ben McNelly

    20 posts

    Hey thanks for sharing this info, and your work 😉

    I pretty much want to direct all mobile traffic, but still working out the details. This will help allot!

  • #9 / Jul 05, 2007 7:45pm

    DeltaJo

    22 posts

    Question: JT (or anyone), what’s up with the “/?/” in the URL you use for the PDA pages?

  • #10 / Jul 06, 2007 12:58am

    JT Thompson

    745 posts

    I just use it instead of index.php?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases