WordPress.org

Ready to get started?Download WordPress

Forums

Wp-Pro-Quiz
do_action ? - where's the hook? (8 posts)

  1. doclalor
    Member
    Posted 1 year ago #

    I'm looking for a hook in the plugin so that I can report the quiz’s final point value to the Achievements plugin.

    Achievements can handle this; but where in the plugin is the relevant code?

    For reference: http://achievementsapp.com/developer/add-support-for-a-plugin-non-custom-post-type/

    http://wordpress.org/extend/plugins/wp-pro-quiz/

  2. xeno010
    Member
    Plugin Author

    Posted 1 year ago #

    Hello doclalor,

    currently there are no hooks in my plugin.

  3. doclalor
    Member
    Posted 1 year ago #

    Thanks much for the response!

    I'm thinking about the best plan for storing quiz scores. Might you weigh in on which seems to you to be my best plan?

    1. Do you offer the storage feature? Or...
    2. Might you point me to where in your code I might insert a PHP database query to write the QUIZ SCORE (as a percentage) to a new record in the relevant Achievements plugin database table? Or ....
    3. Would it be simplest to create what I'd like fresh, e.g., using DB-Toolkit? Or...
    4. Something else?

    I appreciate any advice you can offer. Thanks!

  4. xeno010
    Member
    Plugin Author

    Posted 1 year ago #

    Hello doclalor

    Added support for "BuddyPress achievements V2" in the version 0.15

  5. doclalor
    Member
    Posted 1 year ago #

    Whoa! I can't wait to try it out. Heads-up: Achievements 3 is coming out soon, in which this will be easier to implement. Thanks, thanks. This is a super enhancement.

  6. xeno010
    Member
    Plugin Author

    Posted 1 year ago #

    I hope the selection suffices?

    When version 3 is final, I'll support this.

  7. doclalor
    Member
    Posted 1 year ago #

    This is fantastic. I believe there will be others in higher ed who will find this plugin compelling given your path of development.

  8. doclalor
    Member
    Posted 1 year ago #

    I am using the plugin with students, and I really like it.

    My experience has me wondering how hard it would be to award Achievements on a more discriminating basis. As opposed to

    • "Hey you did 'Some quiz or other', so here's an Achievement point,"

    is it possible to award Achievments more specifically? Like,

    • "Hey, you completed 'The-Quiz-on-Plato', so here's an Achievement point"

    and separately

    • "Hey, you completed 'The-Quiz-on-Aristotle', so here's an Achievement point."

    As it is now, these are not discriminated. Or will this perhaps be possible with Achievements 3 (the simpler code model for friendly plugins is found in the achievements/includes/extensions/ folder of the plugin)?

    Thanks,
    ~Brendan

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic