1 achillis Oct 13, 2013 13:48
3 achillis Oct 14, 2013 23:38
@mgsolipa could you maybe advise on this?
4 mgsolipa Oct 15, 2013 00:19
Hi @achillis,
I have had no chances to try this out, but I will keep an eye on this and back to you if something useful shows up.
5 gcasanova Oct 15, 2013 12:47
I noticed the same problem with two of my blogs and have not found a solution.
6 achillis Oct 15, 2013 20:59
The issue seems to be somewhere with the "gendvice" param specified in _stats.php. ...hmmm
7 gcasanova Oct 16, 2013 15:04
It seems the problem is with iPad and the Safari browser.
See: https://discussions.apple.com/thread/2771228
If only b2evolution developers could outsmart apple and solve this...
8 achillis Oct 16, 2013 23:41
Don't think it's an apple or Safari issue, but rather a bug in the b2evo code self. I get the same issue whether if I use safari or chrome. The skin is selected according to the data collected in the $_SERVER["HTTP_REFERER"] string. If the string contains "iPad" it will (or should use) the tablet skin. Perhaps I am mistaken, we'll see.
9 achillis Oct 17, 2013 07:06
I actually meant $_SERVER['HTTP_USER_AGENT'] not $_SERVER["HTTP_REFERER"]
10 achillis Oct 17, 2013 11:23
Solved it. (Needs a dev to confirm)
In:
/conf/_stats.php around #line 190
Find:
'gendvice' => '(kindle | mobile | mmp | midp | ...... ';
Replace/ add to "mobile" with:
'gendvice' => '(kindle | (!ipad)(.*)mobile | mmp | midp | ...... ';
After the file is updated, clear cache and cookies from devices and reload page.
The issue is that the $_SERVER["HTTP_REFERER"] string for iPads return both values "iPad" and "mobile", so it takes the value of "mobile" and ignore that it is actually a tablet (iPad).
I tested it on iPad, iPhone, Samsung Smart Phone and Samsung Tablet. It seems to work fine.
11 mgsolipa Jan 23, 2014 14:35
A solution for this issue will be included in the next release (version 5.0.7)
Thank you @achillis for reporting.
It detects Andriod tablets (andrtab) and Andriod Mobiles... but not iPad tablets.