Browser Detection (Mobile/MSIE)

Browser Detection (Mobile/MSIE) 1.3.3

No permission to download
I really have no idea how to do this nor any where to begin. It seems to be developer-friendly only.
 
I really have no idea how to do this nor any where to begin. It seems to be developer-friendly only.
You have nothing to setup. You just need to know the XenForo template syntax. This addon gives new variables in the visitor object that you can use with conditionals.
Code:
<xen:if is="{$visitor.getBrowser.isMobile}">
  <xen:require css="mobile_template.css" />
<xen:else />
  <xen:require css="normal_template.css" />
</xen:if>
 
Anyone know if this is still needed for XF 1.5.11 ? Or does the latest XF build already have all this functionality built in?

Thanks!
 
Anyone know if this is still needed for XF 1.5.11 ? Or does the latest XF build already have all this functionality built in?

Thanks!
Xenforo's mobile detection is not as accurate as PHP Mobile Detect library.

You can check on
Code:
/library/Xenforo/Visitor.php

And search for this line
PHP:
public static function isBrowsingWith($browser)
 
What if I need to detect a specific not listed browser instead?
I need to detect the PS4 web browser and show to the users some different content.
 
Top Bottom