Guest viewing is limited
    • You MUST read  Myiptvforum Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.
    • The ONLY language allowed in this forum is ENGLISH and it should be used in ALL POSTS.

    • If you use a proxy server or a VPN for registration or login, your account could be directly banned. The reason is that you may register or login via an IP address that was used by a Members which was banned in the past. The same applies if different users use one device (PC, laptop, smartphone), this will also leads to a ban!
    • If you are banned for using a VPN Contact us by open ticket
Resource icon

xF2 Add-on in Credit Browser Detection 2.2.0 2.2.0

xF2 Add-on
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.

HTML:
Please, Log in or Register to view codes content!

HTML:
Please, Log in or Register to view codes content!


HTML:
Please, Log in or Register to view codes content!

PHP:
Please, Log in or Register to view codes content!


XF2.1 Page caching

The integration mobile detection with XF2.1+ full-page caching, add to the config.php this;

PHP:
Please, Log in or Register to view codes content!

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)
Author
Xenforo
Price
5 Credits
Downloads
0
Views
561
First release
Last update
Rating
0.00 star(s) 0 ratings

Share this resource

Latest updates

  1. 2.2.0 - Feature/Maintenance update

    Implement caching wrapper around Mobile_detect::match calls. Forward unknown function calls to...
  2. 2.1.3 - Compatibility update

    3rd party add-on compatibility fix, rework how html element css injection works
  3. Browser Detection 2.1.1

    Update MobileDetect library to v2.8.37

Similar resources

0.00 star(s) 0 ratings
Downloads
0
Updated
0.00 star(s) 0 ratings
Downloads
3
Updated
Top