vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Add-On Releases - VB4 - Mobile Phone / iPhone / PDA Detection and Style Assignment (https://vborg.vbsupport.ru/showthread.php?t=249967)

bfdzio 09-07-2010 02:08 PM

Quote:

Originally Posted by dartho (Post 2094488)
You would be after:
Code:

if (($vbulletin->options['mob_detect_enabled'] == 1) AND ($bbuserinfo['fieldxx'] == "On"))
{

...

}

The confusing thing with this issue you are having is that it detects and assigns the style initially, but then presents with default subsequently - I'm not sure how it could do that based on what you are reporting.

This is exactly what is happening to me, with Android (Froyo). I received the mobile style at first only once, then since then it hasn't worked.

dartho 09-07-2010 09:57 PM

new version released which adds a "disable style override" option and *might* resolve the issue reported by a couple of detection on being triggered on first page visited

Robru 09-10-2010 04:37 PM

A user with an Appele iPad wants the default style, must I put 'iPad' in the Useragent Exceptions section?

dartho 09-10-2010 09:09 PM

Yes, that should work

swiftor 09-10-2010 09:59 PM

Hmm, doesn't seem to work with my iphone (only device I have to try it with).

I have it set to use the mobile style for mobile devices... but it still brings me to the default style. Any thoughts?

Thanks!

dartho 09-10-2010 10:36 PM

Do you have the mobile style set as user selectable. Double check your settings in AdminCP and take a screen shot to post here if still not working. Thanks

swiftor 09-11-2010 03:42 AM

1 Attachment(s)
I believe these are the relevant screens, and yep, the style is available to anyone, guest or otherwise.

dartho 09-11-2010 06:31 AM

That all looks correct. I've just connected to your site using my desktop browser with a spooffed USER Agent (pretending to be an iPhone) and got the lightweight style OK. The full style link does not work though, as you have specified not to enable over-ride.

Could you try 2 things. 1 - clear all your cookies, and then if that doesn;t work, log out of vbulletin and clear the cookies again then connect to your site again.

Also try turning off iPhone detection (having Mobiule Detection enabled implicitly catches iPhones also)

masons 09-11-2010 10:35 AM

Works great! woohoooooooo!

swiftor 09-11-2010 02:47 PM

strange, i used the user switch agent to manually add the user agent of my iphone 4, and it works in my browser then. but no matter what i do, I can't get it to work on my actual iphone4. cleared cache/cookies/history. restarted iphone for good measure. not logged in. still doesn't work, haha.

i'm going to ask some of my users to try it out, if its just me I don't mind.

Many thanks for your awesome products and excellent responsiveness. you rock.

here is the user agent just for reference:

Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_1 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Version/4.0.5 Mobile/8B117 Safari/6531.22.7


All times are GMT. The time now is 06:03 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01134 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete