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

Template conditional relating to time

Discussion in 'XenForo Questions and Support' started by AndyB, Mar 28, 2013.

  1. AndyB

    AndyB Well-Known Member

    Is it possible to show a link based on time in a template? For example:

    Code:
    <xen:if is="{$post.isFirst} AND $post.post_date < (time() - 3600)">
     
    </xen:if>
    
    Or will I need to write an addon for this?
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

Share This Page