Windows Phone & Mobile Style

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Beremates
    New Member
    • Apr 2015
    • 2
    • 4.2.x

    Windows Phone & Mobile Style

    Hello,

    we are using vbulletin 4.2.1 and the mobile style doesn't support Windows Phones.

    Is there a way to enable the mobile style for windows phone users?

    thanks in advance

    Guido
  • Replicant
    Senior Member
    • Sep 2014
    • 527

    #2
    The default mobile style in 4.x does work on Windows Phone. I use Internet explorer and UC Browser all the time to view 4.x forums with the default mobile style. Windows Phone 8 and 8.1, I can't say whether or not Windows Phone 7 works or not.


    Comment

    • Beremates
      New Member
      • Apr 2015
      • 2
      • 4.2.x

      #3
      I have further investigated the issue and now i'm a bit confused.

      I updated my test device to Windows Phone 8.1. The internet explorer send the following user agent:

      "Mozilla/5.0 (compatible; MSIE 10.0; Windows Phone 8.0; Trident/6.0; IEMobile/10.0; ARM; Touch; NOKIA; Lumia 520)"

      In the vbulletin code "includes/init.php" in line 554 there is the check for mobile devices:

      if (stripos($_SERVER['HTTP_USER_AGENT'], 'windows') === false)

      As you can see, the windows phones are excluded from the mobile device detection. Are you sure, that 4x are supporting Windows Phone?

      Thanks in advance.






      Comment

      • Replicant
        Senior Member
        • Sep 2014
        • 527

        #4
        I wasn't aware you were talking about auto detection. I browse to the site and select the mobile style from the dropdown list. You are correct that it doesn't autodetect. Have you tried changing the false to true?


        Comment

        • Wayne Luke
          vBulletin Technical Support Lead
          • Aug 2000
          • 74132

          #5
          In 4.2.2 and the 4.2.3 Beta the system uses this code:
          Code:
          if (stripos($_SERVER['HTTP_USER_AGENT'], 'windows') === false OR preg_match('/(Windows Phone OS|htc)/i', strtolower($_SERVER['HTTP_USER_AGENT'])))
          Translations provided by Google.

          Wayne Luke
          The Rabid Badger - a vBulletin Cloud demonstration site.
          vBulletin 5 API

          Comment


          • Wayne Luke
            Wayne Luke commented
            Editing a comment
            Though this will probably fail with Windows 10 Mobile as Microsoft has once again decided to change the name of the product and will probably change the user agent string to match.
        • ndahiya
          New Member
          • Dec 2004
          • 3
          • 3.0.3

          #6
          I am using windows phone 8.1, and it is NOT auto-recognized as a mobile (both in IE and UC browser). Please fix.

          ndahiya

          Comment


          • Trevor Hannant
            Trevor Hannant commented
            Editing a comment
            What version of vB4 are you running?

          • ndahiya
            ndahiya commented
            Editing a comment
            4.2.3 rc1 ...
        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...