1. 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?

Discussion in 'XenForo Questions and Support' started by HobbsVT, Jul 12, 2014.

  1. HobbsVT

    HobbsVT Member

    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
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    <xen:if is="{$visitor.message_count} > 10">
     
  3. HobbsVT

    HobbsVT Member

    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
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    See the link in my signature for conditional statements.
     
  5. HobbsVT

    HobbsVT Member

    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>
     
  6. HobbsVT

    HobbsVT Member

    Any help@Brogan?
     

Share This Page