You can use this code, and wrap it with whatever CSS you need:how can I add a start threads widget please like that?
<xf:if is="$xf.visitor.canCreateThread() OR $xf.visitor.canCreateThreadPreReg()">
<xf:button href="{{ link('forums/create-thread') }}" class="button--cta" icon="write" overlay="true" style="margin: 0 5px 8px 0">
New Thread
</xf:button>
</xf:if>
$xf.visitor.isMemberOf(2)}}
You can use this code, and wrap it with whatever CSS you need:how can I add a start threads widget please like that?
<xf:if is="$xf.visitor.canCreateThread() OR $xf.visitor.canCreateThreadPreReg()">
<xf:button href="{{ link('forums/create-thread') }}" class="button--cta" icon="write" overlay="true" style="margin: 0 5px 8px 0">
New Thread
</xf:button>
</xf:if>
$xf.visitor.isMemberOf(2)}}
Thank youYou can use this code, and wrap it with whatever CSS you need:
I also added this in the Display condition for my widget so that it displays only to the Registered Members usergroup:Rich (BB code):<xf:if is="$xf.visitor.canCreateThread() OR $xf.visitor.canCreateThreadPreReg()"> <xf:button href="{{ link('forums/create-thread') }}" class="button--cta" icon="write" overlay="true" style="margin: 0 5px 8px 0"> New Thread </xf:button> </xf:if>
Code:$xf.visitor.isMemberOf(2)}}
..............................................................................................
Or use plugins