Recent Topics

1 Oct 13, 2013 13:48    

Hi. V5.0.6

I have a different skin for normal, tablet & mobile users.

I display skin type and device type at the bottom of my skin:

/* Skin Type: */ $this->type;

/* Device Type: */ $Session->sess_device;

and noticed that if the skin is accessed from an iPad it shows skin type as 'Mobile' and skin type as 'gendvice' and not 'iPad'.

When the skin is accessed from an iPhone it shows skin type correctly as 'Mobile' and device as 'iPhone'.

Link to the site:
http://www.midnightstudios.co.za/?disp=mediaidx

2 Oct 13, 2013 19:53

It detects Andriod tablets (andrtab) and Andriod Mobiles... but not iPad tablets.

4 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 Oct 15, 2013 12:47

I noticed the same problem with two of my blogs and have not found a solution.

6 Oct 15, 2013 20:59

The issue seems to be somewhere with the "gendvice" param specified in _stats.php. ...hmmm

8 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 Oct 17, 2013 07:06

I actually meant $_SERVER['HTTP_USER_AGENT'] not $_SERVER["HTTP_REFERER"]

10 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 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.


Form is loading...