[resolved] Number of days? (6 posts)

  1. Martin
    Posted 3 years ago #

    This would probably be used by many if it was an available option.
    I'd like to award members on anniversary dates from when they joined I.e. such as 1 year since joined. A bit like a birthday award.

    Is there any way to do this with BadgeOS?
    Any help would be great


  2. Michael Beckwith
    Posted 3 years ago #

    Good day Martin.

    As you've noticed, it's either not obvious or immediately able to do a time-based badge. However I suspect it'd be possible to roll a custom solution via something like cron jobs, the only real issue would be determining how to trigger the awarding at that moment. I'd have to check through the source code right now to see if I could find the appropriate ones.

  3. Martin
    Posted 3 years ago #

    From what I see, WordPress keeps the registration date and time somewhere in it's magical database of tricks so that's where I would have thought the calcualtions to be based on and awarded by the trigger calculation.

    I ain't no coder but that would sound like the easiest way, once the calculation stuff was figured out.

  4. Michael Beckwith
    Posted 3 years ago #

    Yeah, the wp_users table will have the registration date for them.

  5. Martin
    Posted 3 years ago #

    So would this be some kind of added functions.php thing to get it to work, Michael?

  6. Michael Beckwith
    Posted 3 years ago #

    Yeah, that'd be a place to put it, otherwise a basic plugin would be just fine as well, though I suspect you won't be changing themes anytime soon.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • BadgeOS
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.