[Q: <if> conditional] checking if user is registered at least x days

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Marv
    Member
    • Jun 2002
    • 82

    [Q: <if> conditional] checking if user is registered at least x days

    Ony a short question:

    How can it be done that an if conditional checks wether a user is registered more than x days or not ?
    Last edited by Marv; Sun 2 Apr '06, 10:28pm.
    Regards,
    Marv


    'My world, the one that I live in, that surrounds me, is called insane by some. I can dig that - I feel the same about theirs.'
    (Henry Rollins)
  • Colin F
    Senior Member
    • May 2004
    • 17689

    #2
    I don't think that's easily possible.
    What you could do though, is add a usergroup promotion that promotes users to a new usergroup after being registered for X days.
    Then, you can check the usergroup, using
    <if condition="is_member_of($bbuserinfo, Y)">
    Best Regards
    Colin Frei

    Please don't contact me per PM.

    Comment

    • Lats
      Senior Member
      • Mar 2002
      • 3671

      #3
      Without code modification, the joindate is currently only available from the main index page, so if you want to do something there...
      Code:
      <if condition="TIMENOW - $bbuserinfo[joindate] < XXX">
      code to show stuff
      </if>
      XXX would be (days x 86400) ie 4 days = 345600
      Lats...

      Comment

      • Marv
        Member
        • Jun 2002
        • 82

        #4
        Thx, Lats - worked for me
        Regards,
        Marv


        'My world, the one that I live in, that surrounds me, is called insane by some. I can dig that - I feel the same about theirs.'
        (Henry Rollins)

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...