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

XF 1.1 User criteria: registered LESS than x days?

Discussion in 'XenForo Questions and Support' started by RobParker, Aug 15, 2013.

  1. RobParker

    RobParker Well-Known Member

    I'd like to give a notification (using Chris's addon) to all of our new users (i.e. people who joined in the last few months).

    From what I can see there's a criteria for users registered for at least X days but not the inverse?

    Any ideas?
     
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    Use a user group promotion and promote them to a secondary usergroup. I believe you can exclude secondary user groups.
     
  3. RobParker

    RobParker Well-Known Member

    Not sure I folllow, aren't the usergroup promotion criteria just the same user criteria?

    I still only see "User has been registered for at least X days:" which is the opposite to what I want.
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    There is no less than criteria.
    It has been suggested though I believe.
     
  5. RobParker

    RobParker Well-Known Member

    There's no clever way of doing it I take it? :-(

    In general, having some NOT logic in the criteria would be great. Show it NOT on this template, NOT on this criteria, etc.
     
  6. Jeremy

    Jeremy XenForo Moderator Staff Member

    Create a new User Group and assign it no additional permissions. Create a new user group promotion for:
    User is has been registered for X days.

    They will be promoted to the new group.

    You can now use criteria to display to members who are NOT in that user group.
     
  7. Brogan

    Brogan XenForo Moderator Staff Member

  8. RobParker

    RobParker Well-Known Member

    You're suggesting that I promote virtually every member on my site to a secondary usergroup? Is that likely to have any performance issues with 20,000+ members?
     
  9. Jeremy

    Jeremy XenForo Moderator Staff Member

    The system shouldn't notice any performance issues. Note that users won't be immediately promoted to the new group, they will be promoted within an hour of them logging into your system.
     
  10. RobParker

    RobParker Well-Known Member

    Yeah, I just wondered if that cron happened all at once and might be an issue or if it does it in stages?

    Think I might leave this until some extra criteria are added as it's not a very nice solution anyway especially if we need to do it again in the future for different time criteria.

    Thanks anyway guys :)
     
  11. Jeremy

    Jeremy XenForo Moderator Staff Member

    It only functions on users who's last activity is within the last 24 hours I believe.
     
  12. Jon W

    Jon W Well-Known Member

    RobParker likes this.

Share This Page