Quiz plugins & Achievements
-
I’d like to set up a quiz plugin (probably WP-Pro-Quiz v0.4, or maybe SS Quiz) to report the quiz’s final point value to Achievements. I’m looking at http://achievementsapp.com/developer/add-support-for-a-plugin-non-custom-post-type/.
1. Suppose I add a new record to my achievements_actions database as follows: category = “WPquiz”; is_group_action = “0″; name = “took_quiz”.
2. Would I insert the do_action call, `do_action( ‘took_quiz’, $to_user_id, $from_user_id );`, into wp-content/plugins/wp-pro-quiz/lib/view/WpProQuiz_View_FrontQuiz.php around line 58?
3. And then in the theme’s functions.php?:
`function dpa_handle_action_took_quiz() {
$func_get_args = func_get_args();
dpa_handle_action( ‘took_quiz’, $func_get_args );
}function myplugin_set_action_category_name( $category_name, $category ) {
if ( __( ‘Other’, ‘dpa’ ) == $category_name && ‘WPquiz’ == $category )
return __( “?????????”, ‘WPquiz’ );
else
return $category_name;
}
add_filter( ‘dpa_get_addedit_action_descriptions_category_name’, ‘myplugin_set_action_category_name’, 10, 2 );`Thanks for advice you can offer to start me off!
~BrendanP.S.: I need to set this up so that a given quiz is only counted ONCE (although I’d like the quiz to be repeatable indefinitely).
The forum ‘Achievements’ is closed to new topics and replies.