Browser Detection

Browser Detection 2.3.1

No permission to download
XF Compatibility
  1. 2.1.x
  2. 2.2.x
A light-weight shim around Mobile_detect for XenForo 2
Short Description
Download and Discuss Premium, BusinessBrowser Detection 2.3.1 version on NullPro Community. It is zip Extention type and 41.6 KB File size. From Browser Detection have 6 discussion, 6 Updates, 458 Views.
A light-weight shim around Mobile_detect for XenForo 2 Usage (in templates) The add-on injects the global variable $mobileDetect, check that the variable is set before calling any methods to prevent errors during upgrades or if the add-on is disabled.
            <xf:if is="$mobileDetect && $mobileDetect.isMobile()"> Is Mobile <xf:else /> Not Mobile </xf:if>
           <xf:if is="$mobileDetect && $'Firefox')">
Is Firefox
<xf:else />
Not Firefox
            <xf:if is="$mobileDetect && $'Chrome')">
Is Chrome
<xf:else />
Not Chrome
Usage (in php)
            $mobileDetect = \SV\BrowserDetection\Listener::getMobileDetection();
$isMobile = $mobileDetect && $mobileDetect->isMobile() ? "_m1" : "_m0";
XF2.1 Page caching The integration mobile detection with XF2.1+ full-page caching, add to the config.php this;
            $config['pageCache']['onSetup'] = function (\XF\PageCache $pageCache) {
$pageCache->setCacheIdGenerator(function(\XF\Http\Request $request) {
return \SV\BrowserDetection\CacheHelper::getPageCacheId($request);
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 for Mobile-Detect's licence (MIT licensed)
  • Like
Reactions: ADYADY
Extention type
File size
41.6 KB
First release
Last update
Ratings 0.00 star(s) 0 ratings
Link was Broken? Please  Send Message to NP Team with Ticket, You will get it very quickly!
Support Developer If you are satisfied with your test or project have earn money successfully, Maybe you can click more information button to support with buying.
More resources from newimage
Geoblock Registration
Geoblock Registration
addon provides Geoblocking capabilities for user registration.
Redis Cache By Xon
Redis Cache By Xon
This add-on uses Credis with a custom cache provider for Redis.
Warning Improvements by Xon
Warning Improvements by Xon
A Collection of improvements to XF's warning system
Archive Site
Archive Site
For a site that is no longer accepting new content, you might want to put it into "read only" mode
[DBTech] DragonByte Payment UI
[DBTech] DragonByte Payment UI
Payment UI improves on the user experience for users wanting to make payments on your forum.

Latest updates

  1. 2.3.1 - changelog
    XF2.3 support php 8.4 compatibility Update MobileDetect library to 3.74.3
  2. 2.3.0 - changelog
    This add-on is now available on Require XenForo 2.2+ Require php 7.2+...
  3. 2.2.0 - 2.2.0 - Feature/Maintenance update
    Implement caching wrapper around Mobile_detect::match calls. Forward unknown function calls to...
  4. 2.1.3 - Compatibility update - 2.1.3 - Compatibility update
    3rd party add-on compatibility fix, rework how html element css injection works
  5. 2.1.1 - 2.1.1 - Maintenance update
    Update MobileDetect library to v2.8.37

Similar resources

[FF] Page Criteria for Xon Browser Detection J
dd a new set of criterion to the Page criteria
[AndyB] Attachment browser J
Allows viewing members attachments.
[OzzModz] OS/Browser Display for XenForo A
S/Browser Display shows which OS and Browser your members are using.