• Hello,
    I want to authorize the user(author) to create quizzes.
    But I don’t want the user to change other quizzes.
    can only make changes on the quizzes created by himself/herself.
    how can I do that?

    Best wishes

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Harmonic Design

    (@harmonic_design)

    This IS possible, but will require you to edit some of the code of HD Quiz. How comfortable would you be with this?

    HD Quiz uses custom taxonomies (categories) for quizzes and a custom post type for questions. It works similar to a blog, where you can add posts to categories.

    Unfortunately, WordPress does not store who the “author” of taxonomies is, only posts. This means that HD Quiz knows who created a question, but not who created the quiz – or at least this is how it would have worked if I did not anticipate this and save the author ID as custom quiz meta ??

    What this means is that in order to achieve what you are looking for, we need to modify the function that displays the list of quizzes. We change it to the following logic.

    IF: current user is an Admin, show all quizzes
    ELSE: Only show quizzes with the same author ID as the currently logged in user.

    Thread Starter MAHMUT TANRIKOLU

    (@lolonolo)

    Thanks for the information.

    Plugin Author Harmonic Design

    (@harmonic_design)

    How comfortable would you be with editing code? If I told you the file and code to edit?

    Thread Starter MAHMUT TANRIKOLU

    (@lolonolo)

    I’m not sure, I don’t want to take the risk.
    I got many HD quizzes, I don’t want to spoil anything.

    But if you write the code maybe I can decide what to do next.

    Thanks for your support.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘User create quizzes’ is closed to new replies.