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)

djbaxter 09-05-2010 10:52 PM

Question: How many additional database queries are required by this add-on?

dartho 09-05-2010 11:29 PM

zero

djbaxter 09-05-2010 11:37 PM

Quote:

Originally Posted by dartho (Post 2094341)
zero

Great. That's what I thought I was seeing but I wasn't sure how it was possible to determine the device being used without additional queries. :)

CvP 09-06-2010 01:00 AM

Quote:

Originally Posted by djbaxter (Post 2094344)
Great. That's what I thought I was seeing but I wasn't sure how it was possible to determine the device being used without additional queries. :)

http://en.wikipedia.org/wiki/User_agent

djbaxter 09-06-2010 01:17 AM

Oh, of course. Just a simple if... then. :o

Hornstar 09-06-2010 05:50 AM

Nice update. thanks.

moonclamp 09-06-2010 08:43 AM

Quote:

Originally Posted by dartho (Post 2094307)
try giving him a link to follow to the style, ie. http://mydomain.com/forum.php?styleid=nn where nn is the style you want to display to him on his phone

Quote:

Originally Posted by moonclamp (Post 2094312)
Cheers, I'll report back :)

Still got the same problem, and it's also being reported on the LG Secret too.

Considering it worked on the older version, I'm thinking the only way to make the style fully switchable (without problems) is with a custom profile option and a conditional to turn off the useragent detection ... I did try the following:

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

but that just killed the plugin completely.

dartho 09-06-2010 09:21 AM

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.

moonclamp 09-06-2010 09:41 AM

I'm a bit stumped too, I haven't got any access to different brands of phone to see if it's user error or not.

I'll try your conditional and see if that works, in the meantime I've gone back to the 3.8 plugin. :)

moonclamp 09-06-2010 10:07 AM

Hmm, that conditional is just getting ignored :S


All times are GMT. The time now is 05:56 PM.

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.02172 seconds
  • Memory Usage 1,734KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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