Viewing 5 replies - 1 through 5 (of 5 total)
  • Michael Beckwith

    (@tw2113)

    The BenchPresser

    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.

    Thread Starter Martin

    (@rastarr)

    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.

    Michael Beckwith

    (@tw2113)

    The BenchPresser

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

    Thread Starter Martin

    (@rastarr)

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

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Number of days?’ is closed to new replies.