XF 1.4 Allow members to view unresponsive site on mobile

Jake Bunce

XenForo moderator
Staff member
#3
Admin CP -> Appearance -> Templates -> PAGE_CONTAINER

At the top you will see this line:

Code:
<xen:set var="$isResponsive" value="{xen:if '@enableResponsive AND !{$noResponsive}', 1, 0}" />
You can replace it with code like this to check a custom user field:

Rich (BB code):
<xen:if is="{$visitor.customFields.field_id} == 'yes'">
	<xen:set var="$isResponsive" value="{xen:if '@enableResponsive AND !{$noResponsive}', 1, 0}" />
<xen:else />
	<xen:set var="$isResponsive" value="0" />
</xen:if>
You need to create a custom user field for this though:

Admin CP -> Users -> Custom User Fields
 
Top