• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.3 Is there a way to do this?

#1
This is related to a plugin, but not directly.
I was just wondering if there is a hook or something similar which I can use say on the Taiga Chatbox.
I want to display it to users who have say more than 10 posts, is this possible with a line of code?

thanks
 
#3
<xen:if is="{$visitor.message_count} > 10">
Thanks for the quick reply. Is there also a way to adapt this per usergroup? On vBulletin we had it so REGISTERED users under 10 posts couldn't see the chatbox, however if they upgraded their account and bought a subscription they then could.
Basically is there a way I can set it with the code you wrote above, and for the default Registered Users group?

thanks
 
#5
See the link in my signature for conditional statements.
Would it be reffering to this?
How can I hide content from a specific user group?
<xen:if is="!{xen:helper ismemberof, $visitor, x}">
This content will be hidden from members of user group x
</xen:if>


Sorry I have no idea with this kinda stuff..
This is probably wrong

<xen:if is="!{xen:helper ismemberof, $Registered, x}">
<xen:if is="{$visitor.message_count} > 10">


This content will be hidden from members of user group x

</xen:if>