You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
Pages: 1
Last night I was testing my site on my pals new ipad. It loaded the mobile version of the site which although is simple and ideal for small mobile phone screens on a larger tablet screen, the full version of the site looked far better and was easy enough to navigate I thought still..
Offline
Look at the file {private}/core/CORE_Session/CORE_Session.php. In there you will see a function named idmobile(). Adjust the mobile_devices array to exclude the devices you don't want treated as mobile.
Offline
Be aware that not all mobile devices, including tablets, interpret Javascript properly and you may find other issues. Maybe in a few years they will come up to full standards, but IMHO, they are still in their infancy.
Last edited by Blitzen (10-27-2012 11:40:46)
Offline
Cannot find this file {private}/core/CORE_Session/CORE_Session.php? where do you go to edit this?
Offline
I see the mobile device array but I'm not sure what to change in order to get it to exclude a device. Say I wanted iPads to display CCP8 with the regular desktop skin, how would that be done?
thanks!
Michael
Offline
I see the mobile device array but I'm not sure what to change in order to get it to exclude a device. Say I wanted iPads to display CCP8 with the regular desktop skin, how would that be done?
In the file {private}/core/CORE_Session/CORE_Session.php, in the function idmobile() remove the line:
'Tablet: iPad' => 'iPad|iPad.*Mobile',
And change:
'OS: iOS' => '(iphone|ipod|ipad)',
To:
'OS: iOS' => '(iphone|ipod)',
Offline
thanks Nick!
Offline
HI Nick,
Going back to this, if we remove all tablet devices (there are many more now not listed?) then will these tablets still default to the mobile version due to them being Android Mobile for example?
I thought there was a way of doing this by screen size rather than device ID?
(Hoping CCP9 delivers a responsive design!)
Offline
You can only do it by screen size using JavaScript (when the page is rendered, which is too late). I would remove all OSes and all Tablets from the list and that would leave you only Phones which are explicitly identified without taking their OS into consideration.
Offline
Pages: 1