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)

Dexter_kcd 10-29-2010 10:43 PM

Quote:

Originally Posted by dartho (Post 2115861)
The every style hack is only checking what the users default style is, not what style is currently in use. Also, it is checking on global_start which happens before the mobile detect add-on does it's business and possible changes the style, modifying that particular plugin would not work anyway.

If you are using the Lightweight style I wrote, try installin the Lightweight STyle Options addon and add the line
Code:

// disable ESB
global $bbandSBactive=0;

to the disable add-ons section


Yes, I am using your style. I will give this a try over the weekend and see how it works. Thanks for the quick reply, and thanks for these great add-ons. My members appreciate the mobile style a lot.

Cheers,

Dexter...

dartho 10-29-2010 11:40 PM

Sorry - where I said "The every style hack" - I meant the "The sidebars everywhere hack", but all else remains same

Dexter_kcd 10-30-2010 04:20 AM

I knew what you meant. :)

Unfortunately, that code did not do the trick. I added it to the disable addons option area just as you instructed, logged out from my iPhone, cleared cookies/cache/history, and then browsed to my site. The sidebar is still there. Do you have any other suggestions?

Dexter...

dartho 10-30-2010 06:07 AM

This might work - edit all the everysidebar templates in the lightweight style only, and delete the entire contents of each one

Dexter_kcd 11-15-2010 04:04 AM

Quote:

Originally Posted by dartho (Post 2115956)
This might work - edit all the everysidebar templates in the lightweight style only, and delete the entire contents of each one


Hi Dartho,

I finally had time to go back to this problem. The above suggestion worked. I will post it in the thread for the ESB mod.

Thanks for your help.

Dexter...

steve1966 11-23-2010 08:48 PM

hi my mobile devices are not being detected i have to use the style changer what have i done wrong to show the light style

edit if i use i older version 3.7 version it detects but when i click on pc mode it will not change back to the default style any ideas please it still does not detect using the 4.o or 4.01

dartho 11-23-2010 11:52 PM

clear your cookies, or if you want to be selective, just clear he cookies for your site and try again. As soon as you manually select a style, you are effectively turning off auto-detection. In theory, closing all your browser windows should then re-instate it, but it depends on your browser.

steve1966 11-24-2010 06:25 AM

Quote:

Originally Posted by dartho (Post 2125196)
clear your cookies, or if you want to be selective, just clear he cookies for your site and try again. As soon as you manually select a style, you are effectively turning off auto-detection. In theory, closing all your browser windows should then re-instate it, but it depends on your browser.

Thank you

SnapOff Racing 12-04-2010 09:41 PM

Would be nice if we could get this working with vB 3.8 as having the option to allow users to decide on whether or not they actually want to view a mobile version is the way to go.

dartho 12-05-2010 04:13 AM

Did you try it? As mentioned in teh first post, it probably will work


All times are GMT. The time now is 09:19 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.01194 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)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