WordPress.org

Ready to get started?Download WordPress

Forums

BadgeOS
[resolved] Number of days? (6 posts)

  1. Martin
    Member
    Posted 11 months 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
    Martin

    http://wordpress.org/extend/plugins/badgeos/

  2. Michael Beckwith
    Member
    Plugin Author

    Posted 11 months 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
    Member
    Posted 11 months 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
    Member
    Plugin Author

    Posted 11 months ago #

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

  5. Martin
    Member
    Posted 11 months ago #

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

  6. Michael Beckwith
    Member
    Plugin Author

    Posted 11 months 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.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.