XF 1.2 I want to hide a certain part of the forum; how do I do that?

JABRONI

Well-known member
I want to add the option to turn on/off Taigachat with a Yes/No option in Preferences. I've tried this code,

Code:
<xen:if is="{$user.customFields.testfield.no}">
#taigachat_full {
display: none !important;
}
</xen:if>

but that didn't work. Any help?
 
actually I got it to work now. I forgot i had taigachat on in my xenporta.

Don't forget to delete your taigachat widget in Widget Framework and Xenporta.

So yeah this is the code you'll use in forum_list

<xen:hook name="forum_list_nodes">
<xen:if is="{$visitor.customFields.taigachat} == 'off'"> <xen:else /><xen:include template="dark_taigachat_full" /></xen:if>
<xen:if is="{$renderedNodes}"><xen:include template="node_list" /></xen:if>
</xen:hook>

Alright, so it doesn't show when it's off now, but it says this & doesn't show it when I click "No Selection"

TaigaChat is currently disabled.
 
hmm

actually I can't even turn it back on wtf. This used to work for me. I don't know whats going on.

That Taigachat is currently disabled phrase is located at the bottom of dark_taigachat_popup template
 
I got it to work by re-adding it back as a Xenporta block

and editing the xenporta block directly.

Template: EWRblock_TaigaChatAlt

Code:
<xen:if is="{$visitor.customFields.taigachat} == 'off'"> <xen:else /><xen:include template="dark_taigachat">
<xen:set var="$taigachat_alt">1</xen:set>
</xen:include>
</xen:if>
 
I got it to work by re-adding it back as a Xenporta block

and editing the xenporta block directly.

Template: EWRblock_TaigaChatAlt

Code:
<xen:if is="{$visitor.customFields.taigachat} == 'off'"> <xen:else /><xen:include template="dark_taigachat">
<xen:set var="$taigachat_alt">1</xen:set>
</xen:include>
</xen:if>

any clue where to put that for Widget Framework?
 
Top Bottom