TRACKMIXERS
Member
I am using this code in my header template to block access to threads in certain forums.
<xen:if is="in_array({$forum.node_id}, array(2,3)) AND {$controllerName} == 'XenForo_ControllerPublic_Thread' AND {xen:helper ismemberof, $visitor, 3}">MY SCRIPT HERE</xen:if>
My question is, how can I get this to load before the thread page does? With my current setup the thread page will load about a second before the script so there is time to view it before the script loads.
<xen:if is="in_array({$forum.node_id}, array(2,3)) AND {$controllerName} == 'XenForo_ControllerPublic_Thread' AND {xen:helper ismemberof, $visitor, 3}">MY SCRIPT HERE</xen:if>
My question is, how can I get this to load before the thread page does? With my current setup the thread page will load about a second before the script so there is time to view it before the script loads.