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.
PHP
XF2.1 Page caching
The integration mobile detection with XF2.1+ full-page caching, add to the config.php this;
Code:
You must log in to view
(5 lines)
Code:
You must log in to view
(6 lines)
Code:
You must log in to view
(5 lines)
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)
Attachments
Last edited by a moderator: