Mobile Redirect for IPAD |
Post Reply |
Author | |
ojmuo
Newbie Joined: 02-March-2009 Status: Offline Points: 0 |
Post Options
Thanks(0)
Posted: 13-April-2012 at 2:56pm |
We would like the IPAD to redirect to the main (non-mobile) site but keep all other mobile users to redirect to the moble version. How do i modify the inc_mobiledetect.asp to keep IPAD users on the main site? |
|
Greg Dinger
Certified ProductCart Developers Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
Post Options
Thanks(0)
|
Edit the file "inc_mobiledetect.asp" Add this code around line 44, just above "if session("pcStayNormal")="" then" If instr(user_agent,"iPad")>0 Then we used this in www.tastefulgarden.com/store/m and it tested successfully.
|
|
ojmuo
Newbie Joined: 02-March-2009 Status: Offline Points: 0 |
Post Options
Thanks(0)
|
Thank you. |
|
Greg Dinger
Certified ProductCart Developers Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
Post Options
Thanks(0)
|
FYI, we have also created full mobile support for the SEO-friendly URL's and the content manager pages. That code has been provided to Early Impact, and when time allows, will be distributed as part of the base application. Not sure about their schedule.
We don't have this bundled in a form that I can just send out, but if you need it, it could be installed for you.
|
|
rocky123
Newbie Joined: 30-July-2012 Status: Offline Points: 0 |
Post Options
Thanks(0)
|
The screen width for the iPhone is 480, Blackberry is 480, Samsung Galaxy listed as 480, I couldn't find the actual reported screen width for the Galaxy S3 but since it is 4.8" which is substantially less than the 7" tablet that reports a screen width of 600 I think it's a pretty sure bet that it reports less than 600.
There is general confusion in mobile devices regarding screen Resolution and reported screen width by the browser, they are two different specifications and relate loosely by how many ppi the display is capable of showing in the actual width of the display. |
|
rocky
|
|
macleather
Newbie Joined: 23-June-2008 Location: Los Angeles Status: Offline Points: 3 |
Post Options
Thanks(0)
|
Hey Greg,
I can't find the line "if session("pcStayNormal")="" then" anywhere in the file. I'm on version v.4.1b SP 2, could that be the reason? Our current re-direction works fine but we also have the iPad issue. Alan
|
|
Greg Dinger
Certified ProductCart Developers Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
Post Options
Thanks(0)
|
I have this in tastefulgarden.com
If InStr(Request.ServerVariables("HTTP_USER_AGENT"), "Novarra") > 0 Then mobile_browser = mobile_browser+1
'TEST MODE
'mobile_browser=1 If instr(user_agent,"iPad")>0 Then 'gbdg per Matt @ EI 3/12/2012
mobile_browser=0 'gbdg per Matt @ EI 3/12/2012 End If 'gbdg per Matt @ EI 3/12/2012 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |