Can we bind a quiz to users (quiz creator)?
-
Can we bind a quiz to the users who created that quiz?
Any person who can create a quiz should be able to edit only his own quiz, not other peoples’ quiz. This is because I want to allow more than a few people (teachers) to create quizes.
I think quiz created in wp-pro-quiz are custom post types. If so, a quiz can be bound to the logged in user while it is being created. If this feature is not worthy to be added to the plugin, let me know where to edit, and I will make relevant changes by tinkering with the code files, and post them here, if successful ??
I think there will be two changes (minimum).
1. Add userID to the custom post meta (if there is any) or in a new table where quizID and userID would be entered as key_value pair (if this is the case, join query will kill all the fun).
2. Check logged in user and show only his quizes while rendering the quizes in backend.Also, a similar solution is needed for who can take the quiz. For example, only CPM user group 2013 (students) can take Chemistry_quiz_2013. For this to work, the quiz should have some sort of taxonomy support. Like, a quiz can be given a single or multiple category(ies) (there is category support for questions in wp-pro-quiz, but not for the quiz itself). This category can be bound to user groups. This has a workaround however, as the short code can be put in a post of certain category, which can be bound to some user group.
This is it, for now ??
Thank you.
- The topic ‘Can we bind a quiz to users (quiz creator)?’ is closed to new replies.