Nitro

[Xon] Browser Detection 2.4.0 2026-03-05

No permission to download

NitroNitro is verified member.

Support Staff
Staff member
Support
Points 43
Solutions 0
Nitro submitted a new resource:

[Xon] Browser Detection 2.4.0 - A light-weight shim around Mobile_detect for XenForo 2

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:
<xf:if is="$xf.mobileDetect && $xf.mobileDetect.isMobile()">
    Is Mobile
<xf:else />
    Not Mobile
</xf:if>

HTML:
<xf:if is="$xf.mobileDetect &&...

Read more about this resource...
 
Back
Top Bottom