• Resolved papamak

    (@papamak)


    hi, i’m using this plugin to create a true-false game.
    On every post there are 2 buttons, one for the correct selection and one for the wrong selection. When a user select the correct button receive one point etc.
    The problem is this: the user today select the correct button on a question and receive +1 point. Tomorrow the user select the same (correct) button on the same question and receive another one point and the same scenario repeats every day. I can’t set to receive +1 point only once cause there are the 2 buttons on every post.
    Do you have any answer? Is it possible to allow the user to select one of two buttons only once per post?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @papamak

    Humm, you can actually do a button for each by using classes. However you will need to create one award for button…

    Another way to do that, is creating a form or using an LMS with quizzes plugin and make them only be done once by the user…

    Check our LMS integration add-ons we have, and see which of those have quizzes:

    https://gamipress.com/add-ons/#integrations

    Have a great day!

    Thread Starter papamak

    (@papamak)

    thanks about the answer.

    Are there any detailed instructions forms?

    I saw on FAQ the following text

    "[gamipress_button] shortcode supports:
    
    label: The button label text.
    type: The button type. Accepts ‘submit’, ‘button’ or ‘reset’
    id: The button identifier.
    class: The button CSS classes.
    form: The button form attribute. If you don’t know exactly what is the purpose of this attribute leave it blank.
    name: The button name attribute. If you don’t know exactly what is the purpose of this attribute leave it blank.
    value: The button value attribute. If you don’t know exactly what is the purpose of this attribute leave it blank.
    onclick: The button onclick attribute. If you don’t know exactly what is the purpose of this attribute leave it blank."

    but u cannot understand the way that i use form or value.

    thanks for the support

    If you do not know what that means, you do not have to fill it. They are two attributes completely optional.

    To create different buttons with different point awards and different requirements, please use the class attribute and give it different values.

    Hope it helps!

    Thread Starter papamak

    (@papamak)

    this is what i want to know.
    The way that works “form” or “value” into the shortcode.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Button trigger only once on every post’ is closed to new replies.