[RFC] Include mobile style

Note: We are moving the topics of this forum and it will be deleted at some point

Publish your own request for comments/change or patches for the next version of phpBB. Discuss the contributions and proposals of others. Upcoming releases are 3.2/Rhea and 3.3.
Post Reply
User avatar
callumacrae
Former Team Member
Posts: 1046
Joined: Tue Apr 27, 2010 9:37 am
Location: England
Contact:

Re: [RFC] Include mobile style

Post by callumacrae » Tue Jun 19, 2012 2:28 pm

Meis2M wrote:is it possible use a system automatic switch to mobile style if user come with a phone?
Yep, that's fairly trivial. It can be a pain to keep it up to date, though.
Made by developers, for developers!
My blog

Danielx64
Registered User
Posts: 304
Joined: Mon Feb 08, 2010 3:42 am

Re: [RFC] Include mobile style

Post by Danielx64 » Wed Jun 20, 2012 2:02 am

ecwpa wrote:I've been trying to make my current theme mobile compatible using bootstrap and I would say it's almost impossible to make a proper mobile theme without javascript. I mean, you can, but what about embed videos? I managed to handle that issue using a library called jquery.fitvids.js but there's no other way to do that without JS unless the bbcode system is completely redone first.

Why don't you all look at the mobile theme that SMF got, one forum that work without javascript on a mobile is http://www.win7vista.com/.

User avatar
Erik Frèrejean
Registered User
Posts: 207
Joined: Thu Oct 25, 2007 2:25 pm
Location: surfnet
Contact:

Re: [RFC] Include mobile style

Post by Erik Frèrejean » Wed Jun 20, 2012 9:59 am

callumacrae wrote:
Arty wrote:
callumacrae wrote:Modern browsers by definition support JavaScript.
Not mobile browsers. They are designed to be as efficient as possible to increase battery life for mobile device. JS is disabled by default in some browsers, including Safari for some iOS devices.
http://jquerymobile.com/gbs/

jQuery Mobile doesn't work without JavaScript. I would say that that list is long enough to warrant using jQuery Mobile.

EDIT: Hangon, it works without JavaScript (mostly).

EDIT2: Just tested it without JavaScript. It's functional, but really really really ugly.
Javascript should only be used to enhance the user experience, I'm -1 on something that doesn't work (properly) without javascript.
Available on .com
Support Toolkit developer

Senky
Extension Customisations
Extension Customisations
Posts: 314
Joined: Thu Jul 16, 2009 4:41 pm

Re: [RFC] Include mobile style

Post by Senky » Thu Jun 21, 2012 5:21 pm

Well, using responsive design would remove problems with improper display on mobile phones, however I would rather go in the way of separate style for mobile, because:
  • we can send less data, page would be loaded faster
  • style authors can invent more styles for mobile phones, so that users can select style that suits them best
In ACP, there would need to be some changes - admins would need to choose default style AND default mobile style, but it is not a big deal, as it brings much more flexibility than using just one fixed style provided to all mobile phones...

User avatar
MichaelC
Development Team
Development Team
Posts: 889
Joined: Thu Jan 28, 2010 6:29 pm

Re: [RFC] Include mobile style

Post by MichaelC » Thu Jun 21, 2012 10:02 pm

Senky wrote:Well, using responsive design would remove problems with improper display on mobile phones, however I would rather go in the way of separate style for mobile, because:
  • we can send less data, page would be loaded faster
  • style authors can invent more styles for mobile phones, so that users can select style that suits them best
In ACP, there would need to be some changes - admins would need to choose default style AND default mobile style, but it is not a big deal, as it brings much more flexibility than using just one fixed style provided to all mobile phones...
+1. There would essentially be two sets of styles. Mobile Styles and Normal Styles.

In User Pref's it would have an option for each. In the ACP it would have a list of mobile styles and normal styles, a default for each etc.

However, this is probably something to add in for future. For 3.1 I think we should just have the 1 default mobile style built-in.
Formerly known as Unknown Bliss
psoTFX wrote: I went with Olympus because as I said to the teams ... "It's been one hell of a hill to climb"
No unsolicited PMs please except for quotes.

Oleg
Posts: 1150
Joined: Tue Feb 23, 2010 2:38 am
Contact:

Re: [RFC] Include mobile style

Post by Oleg » Fri Jun 22, 2012 3:41 am

Why does a mobile style require javascript exactly?

User avatar
naderman
Consultant
Posts: 1727
Joined: Sun Jan 11, 2004 2:11 am
Location: Karlsruhe, Germany
Contact:

Re: [RFC] Include mobile style

Post by naderman » Fri Jun 22, 2012 11:12 am

Indeed, i would like to see that question answered too. I'm rather convinced a style should be made mobile by using appropriate CSS. Additional UI improvements can be made through JS, but they are non-essential.

User avatar
callumacrae
Former Team Member
Posts: 1046
Joined: Tue Apr 27, 2010 9:37 am
Location: England
Contact:

Re: [RFC] Include mobile style

Post by callumacrae » Fri Jun 22, 2012 5:40 pm

All the decent mobile libraries and frameworks use it. Developing a mobile style from scratch and testing it fully would take months upon months, while the libraries and frameworks have already been tested.

I seriously don't get what the problem with dropping support for bad browsers is.
Made by developers, for developers!
My blog

User avatar
MichaelC
Development Team
Development Team
Posts: 889
Joined: Thu Jan 28, 2010 6:29 pm

Re: [RFC] Include mobile style

Post by MichaelC » Fri Jun 22, 2012 6:03 pm

I agree with callum. The majority of phones's browsers do support JS and it saves a lot of development time & effort.
Formerly known as Unknown Bliss
psoTFX wrote: I went with Olympus because as I said to the teams ... "It's been one hell of a hill to climb"
No unsolicited PMs please except for quotes.

User avatar
Arty
Former Team Member
Posts: 985
Joined: Wed Mar 06, 2002 2:36 pm
Location: Mars
Contact:

Re: [RFC] Include mobile style

Post by Arty » Fri Jun 22, 2012 6:42 pm

JavaScript should not be used for design, that's what CSS is for. It should only be used to enhance functionality, but style must work properly without it.

Post Reply