Page 1 of 1

PDA issues

Posted: Thu Jul 17, 2008 10:08 am
by midway31
I have a site nearly complete but the client cannot view the menu on it. I do not have a PDA so advice would be appreciated. They use Windows mobile 6 pro Using telstra
Also the banner is not done as yet so ignore the banner as it is not finalized and they designed the banner and like it
http://multihulls.net.au
Any help would be appreciated. ;D

Re: PDA issues

Posted: Thu Jul 17, 2008 10:45 am
by cyberman

Re: PDA issues

Posted: Fri Jul 18, 2008 1:17 am
by midway31
WM6 breaks the rules, it uses both the screen and mobile stylesheets so the PDA Simulator is wrong

Re: PDA issues

Posted: Fri Jul 18, 2008 1:38 am
by cyberman
You could check the user agent and set special styles for this. There's a stylesheet switcher in forge ...

Re: PDA issues

Posted: Fri Jul 18, 2008 1:47 am
by midway31
Can you explain further on the steps required as I am sure others will strike the same issues along the way

Re: PDA issues

Posted: Fri Jul 18, 2008 6:07 am
by cyberman
The user agent for Windows mobile 6 is something like this
Mozilla/4.0 (compatible; MSIE 6.0; Windows CE; IEMobile m.n)
http://blogs.msdn.com/iemobile/archive/ ... obile.aspx

So you have only to check this string if it contains IEMobile. Insert the following code instead {stylesheet}

Code: Select all

{if eregi("IEMobile",$smarty.server.HTTP_USER_AGENT)}
{stylesheet name='name_of_your_special_CSS_for_IEMobile'}
{else}
{stylesheet}
{/if}

Re: PDA issues

Posted: Sun Jul 20, 2008 11:01 pm
by midway31
A bit more info on where to insert exactly would be good.
What and where?

Re: PDA issues

Posted: Fri Jul 25, 2008 10:02 am
by midway31
Urgent