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.I really have no idea how to do this nor any where to begin. It seems to be developer-friendly only.
<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!
Xenforo's mobile detection is not as accurate as PHP Mobile Detect library.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!
/library/Xenforo/Visitor.php
public static function isBrowsingWith($browser)
@cclaerhout same question here.Is there a XF2 version of this? or plans for one?
Thanks
-david
Maybe this one by @Xon :@cclaerhout same question here.
We use essential cookies to make this site work, and optional cookies to enhance your experience.