XF 1.1 How can I implement xf conditions on page nodes?

<div style="text-align: center;">

<xen:if is="!{xen:helper ismemberof, $visitor, 1}">
<script id="sid0010000024216830747">(function() {function async_load(){s.id="cid0010000024216830747";s.src='http://st.chatango.com/js/gz/emb.js';s.style.cssText="width:800px;height:620px;";s.async=true;s.text='{"handle":"phcornerdotnet","styles":{"a":"2A2A2A","b":100,"c":"FFFFFF","d":"666666","e":"2A2A2A","g":"FFFFFF","h":"24282E","i":29,"j":"CCCCCC","k":"999999","l":"333333","m":"2A2A2A","n":"CCCCCC","p":"12","q":"333333","r":100,"v":0,"w":0}}';var ss = document.getElementsByTagName('script');for (var i=0, l=ss.length; i < l; i++){if (ss.id=='sid0010000024216830747'){ss.id +='_';ss.parentNode.insertBefore(s, ss);break;}}}var s=document.createElement('script');if (s.async==undefined){if (window.addEventListener) {addEventListener('load',async_load,false);}else if (window.attachEvent) {attachEvent('onload',async_load);}}else {async_load();}})();</script>
</xen:if>

</div>


I want to hide this on guest and also un-activated account.
 
Try this:

Code:
<xen:if is="{$visitor.user_id}">

That will be true for all users who are logged in.

You can specify only valid logged in users like this:

Code:
<xen:if is="{$visitor.user_id} AND {$visitor.user_state} == 'valid'">
 
  • Like
Reactions: rdn
Back
Top Bottom