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)
-   -   Integration with vBulletin - Mobile Device & Browser Detection (Adapted by BOP5) (https://vborg.vbsupport.ru/showthread.php?t=292704)

oldfan 03-12-2014 05:40 AM

This work with 4.2.2? Cause I installed it and I still get the regular site with my iphone.

Guest20210129 11-16-2014 10:51 AM

Quote:

Originally Posted by oldfan (Post 2486626)
This work with 4.2.2? Cause I installed it and I still get the regular site with my iphone.

Same for me.

Guest20210129 11-16-2014 11:02 AM

Quote:

Originally Posted by ivanp (Post 2409190)
Nice mod :)

I suggest changing the hook to "init_startup" to be able to replace default mobile browser detection in init.php with:

Code:

if($vbulletin->options['bop5_mob_detect'])
{
        $mobile_browser = $vbulletin->detect->isMobile();
        if($mobile_browser && $vbulletin->detect->isTablet()) $mobile_browser = false;
        $mobile_browser_advanced = $mobile_browser;
}

That way tablets will not be considered as mobile devices, thus not being served mobile style as default style.

Can you explain how to implement this? Which files i have to modify?

Thanks.

BirdOPrey5 11-16-2014 07:23 PM

Quote:

Originally Posted by oldfan (Post 2486626)
This work with 4.2.2? Cause I installed it and I still get the regular site with my iphone.

Quote:

Originally Posted by Actualidad TMA (Post 2522952)
Same for me.

Installing this doesn't change any styles. It is for use in your own custom coding.

oldfan 11-25-2014 07:50 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2523016)
Installing this doesn't change any styles. It is for use in your own custom coding.

Can it be used for changing styles?

tme_power 11-27-2014 08:49 PM

Very nice mod indeed! Thanks.

Morrus 12-07-2014 11:32 AM

One potential use I can see for this is controlling the number of columns shown on the CMS page when viewed on a mobile device as set in the Content Columns dropdown in the Section Information section of the (frontend) Section editor. Certainly for my site, it look much better as one column on a mobile device, but better as two columns on a desktop computer.

Is there an easy way to use this plugin to conditionify whatever bit of code sets the number of columns?

iyihost 12-16-2014 08:02 PM

vbulletin 3.8 ?

Mathsman 02-28-2015 10:26 PM

With this plugin can assign users how mobile themes?

Big-K 04-09-2015 10:52 AM

To earlier question, how do you use this to change styles?


All times are GMT. The time now is 08:16 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.01591 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
  • (5)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