
10-14-2009, 12:02 AM
|
|
|
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Taken from teh Mobile Style thread
Quote:
Originally Posted by dartho
G'day , get your users to visit http://vbdev.org/test-mob-detect.php and to copy and paste what shows up on the screen to you. This will tell you whether the browser is being detected as a mobile device, and also give you useragent info.
|
Quote:
Originally Posted by wacnstac
Well the device that doesn't render one of the websites properly shows:
Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.14912/756; U; en)
Presto/2.2.0
Don't know what part(s) of that I need to enter to get it auto recognized.....
|
Quote:
Originally Posted by wacnstac
So here's what one user who gets the mobile style shows for a user agent:
HTTP_USER_AGENT: Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; PalmSource/Palm-D062; Blazer/4.5) 16;320x320
HTTP_ACCEPT: text/html, application/vnd.wap.xhtml+xml, application/xhtml+xml, text/vnd.wap.wml , image/png, image/jpeg, image/gif, image/bmp, image/vnd.wap.wbmp, application/octet-stream, image/pjpeg, */*;q=0.1, */*,text/html;q=0.062,image/gif;q=0.062,image/x-jng;q=0.062,video/x-mng;q=0.062,image/x-mng;q=0.062,image/bmp;q=0.062,image/x-bmp;q=0.062
|
Quote:
Originally Posted by wacnstac
I am experiencing the following error now while browsing the mobile style:
"Warning: preg_match() [function.pre-match]: unknown modifier 'M' in [path]/global.php(238) : eval()'d code on line 117
This error started occurring after I tried to add J2ME/MIDP to the list of mobile browsers in the XML file that does the auto detect. I have since removed it and the error went away. Any thoughts on how to add J2ME/MIDP?
|
I'd say it was the "/" that upset it. J2ME and MIDP should already be detected. That link I posted should tell you if it was detected as a mobile device or not - what did it have to say?
|