Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#31 2012-04-20 16:26:47

hilaryaq
Plugin Author
Registered: 2006-08-20
Posts: 335
Website

Re: pro_mobile

Hi Colak, you don’t need to use the pro_mobile plugin for the media queries at all! You would keep pro_mobile for things like perhaps showing a message to download the app for iphone if the device is iphone etc. So the media query code can execute without it..


…………………
I <3 txp
…………………

Offline

#32 2012-04-20 17:12:49

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,388
Website GitHub Mastodon Twitter

Re: pro_mobile

Hi Hillary, thanks again for your insight. The reason I am thinking to use the media queries within your plugin is because I am thinking to create mobile specific layouts so as your plugin detects mobile devices I can start from there and serve the stylesheets I want. Regarding desktop media I was thinking of sticking with 960px width.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#33 2012-04-20 17:19:11

hilaryaq
Plugin Author
Registered: 2006-08-20
Posts: 335
Website

Re: pro_mobile

Yep I’m using 960 all the time now, and even for tablets, the resolution is getting so good you don’t really need to do tablet specific anymore.. but for mobile phone it’s just so much better to serve a mobile layout for that tiny screen!

You can use the plugin to sniff, but if you don’t the media queries will still implement based on the page width, it’s a good catch all to use the media queries on their own because any new devices that come along will still be served the mobile stylesheet based on their resolution rather than device, so they don’t need to be added to the plugin array I would recommend that way but if you feel that works for you maybe it suits your specific project to implement that way :)


…………………
I <3 txp
…………………

Offline

#34 2012-07-13 14:42:20

HerrJemineh
New Member
Registered: 2010-01-10
Posts: 4

Re: pro_mobile

Thank you, very useful and easy to use plugin! :-)

Unfortunately it doesn’t work with Opera Mobile (!= Opera Mini1). Its user agent looks something like
Opera/9.80 (Linux; Opera Mobi/35779; U; de) Presto/2.10.254 Version/12.00 [2], so I added 'opera mobi', // Opera mobile to the $agents array which seems to work well. Maybe you might want to change this in a future version?

1 http://www.opera.com/mobile/download/versions/

2 installed on my desktop pc running linux, might differ from cell phones

Offline

#35 2012-07-13 14:48:28

hilaryaq
Plugin Author
Registered: 2006-08-20
Posts: 335
Website

Re: pro_mobile

Thanks for that will add it in! Glad it was useful for you!


…………………
I <3 txp
…………………

Offline

Board footer

Powered by FluxBB