- Compatible Versions:
- 2.2, 2.3
- Additional Requirements:
- php 7.2+
- 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.
Usage (in php)
XF2.1 Page caching
The integration mobile detection with XF2.1+ full-page caching, add to the config.php this;
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.
HTML:
You must log in to view
(5 lines)
HTML:
You must log in to view
(5 lines)
HTML:
You must log in to view
(5 lines)
Usage (in php)
PHP:
You must log in to view
(2 lines)
XF2.1 Page caching
The integration mobile detection with XF2.1+ full-page caching, add to the config.php this;
PHP:
You must log in to view
(5 lines)