Hi Kevin,
There isn’t a debug mode no, so you’d have to run some tests – I’m going to have to assume you’re comfortable with PHP at this point, otherwise let me know and we can see how to help you.
You can output some text based on the following PHP code – put it anywhere in your theme:
global $mobile_smart;
// double check is it mobile?
var_dump($mobile_smart->DetectIsMobile());
// and extra, double check is it an iPhone?
var_dump($mobile_smart->DetectIphone());
// check the switcher code
var_dump($mobile_smart->switcher_isMobile());
You should get:
true
true
true
Let me know what you get, and I’ll be able to help more.
Best,
Dan
at mobile device and mobile template I got int(1) int(0) int(1)
but, at dekstop and dekstop template I got int(0) int(0) bool(false)
Hi jagoannews,
Those are the correct results if you’re running on a desktop. To interpret them, they say that:
a. Is it a mobile? (Mobile device: Yes, Desktop: no)
b. Is it an iPhone? (Mobile device: No, Desktop: no)
c. Does the switcher (including cookie checking) think it’s mobile? (Mobile device: Yes, Desktop: no)
That’s a normal set of results, but have you had something not working for you?
Dan