Browser Detection

xF2 Add-on Browser Detection 2.3.1

Compatible XF Versions
2.2 , 2.3
Visible Branding
No
A light-weight shim around Mobile_detect for XenForo 2

Usage (in templates)
The add-on injects the global variable $xf.mobileDetect, check that the variable is set before calling any methods to prevent errors during upgrades or if the add-on is disabled.

CSS:
You don't have permission to view the code content. Log in or register now.

HTML:
You don't have permission to view the code content. Log in or register now.

PHP:
You don't have permission to view the code content. Log in or register now.

Usage (in php)
PHP:
You don't have permission to view the code content. Log in or register now.

XF2.1 Page caching
The integration mobile detection with XF2.1+ full-page caching, add to the config.php this;
PHP:
You don't have permission to view the code content. Log in or register now.

Contributing features or bug fixes
Please create a Github Pull request via the "More information." link.

Contributions
If you appreciate this add-on, please consider a contribution via PayPal. Details will be provide via private conversation.
Please contact me if you wish for different licencing arrangements.

Licence
See MobileDetectLicense.md for Mobile-Detect's licence (MIT licensed)
Back
Top