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

How will the condition

Discussion in 'XenForo Questions and Support' started by Murzik, Apr 17, 2014.

  1. Murzik

    Murzik Member

    How will the condition (the code) "if the user has registered at least 30 days"?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    I'm not sure what you're asking but it would require comparing the current time with xf_user.register_date to determine if a user has been registered for at least 30 days.

    What are you trying to do?
     
  3. Murzik

    Murzik Member

    I need to display text to the user if it is registered at least 30 days. How to do this using code
    <xen:if is="{$user. Register}">
    text
    <xen:else />
    Text
    </xen:if>
     
  4. Murzik

    Murzik Member

    This is an example
     
  5. Brogan

    Brogan XenForo Moderator Staff Member

    Use a Notice:
    upload_2014-4-17_17-11-35.png
     
    Murzik likes this.
  6. Murzik

    Murzik Member

    How can I use this template? I do so in Template show one text to the user if registered less than 30 days, and other text if the user is registered for more than 30 days? I am sorry for my bad english
     
  7. Brogan

    Brogan XenForo Moderator Staff Member

  8. Murzik

    Murzik Member

    Thank you! But how can place your ad in the right place in my template? For example in the sidebar
     
  9. Murzik

    Murzik Member

    And what is the code for this condition? Where to look?
     

Share This Page