• Resolved gerardphilippe

    (@gerardphilippe)


    I use your plugin but I have a problem with ID, the IDs are not correct I have IDs that go up to 20 while I have 17 questions which causes a problem when I arrive at the 17 th question because it creates 3 empty questions before giving me the result. My question is how to change the order of IDs?

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

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

    (@prasunsen)

    I don’t understand what you say at all. IDs of what? And why would IDs matter for you at all? The plugin goes not create any empty questions.

    @prasunsen, I think I know. I struggled with this in the beginning.

    When you create questions, they are “ID-numbered” (each question has a unique ID-number).
    When you create a quizz, every question in it is order-numbered (you can reorganize the order and the order-number changes).

    When you erase/delete a question, it’s ID-number disappears and is not recycled.

    However, the way it is implemented, when you are CREATING quizzes, the ID-numbers look like order-numbers, and when you delete a question, so you end up with ID-numbers that do not exist anymore and if you still confuse ID-numbers with order-numbers, you’re in for a lot of fun.

    So @gerardphilippe: that is your answer.
    Each question has a UNIQUE ID-number that cannot be recycled because it is used by the software to identify it uniquely.
    Each question in a quizz has an order-number that reflects its position in the quizz. When yo reorder questions in a quizz, each question’s order number might change, but it’s ID-number will never change.
    When you delete a question, it’s ID-number disappears altogether. It will NOT be recycled.
    If you don’t like it, then instead of deleting questions, modify them. ??

    Look at the top of your questions list in the quizz (questions management, not the actual front-end quizz) and you will see:
    A check box “title”/ a “#” title / an “ID” title
    the # title column is for the question order number within any given quizz (changeable)
    the ID column gives you the unique ID-number of each question.

    NB: if you Duplicate a question, the duplicate is given a different ID-number.

    Hope this helps.

    Marie

    • This reply was modified 6 years, 2 months ago by MarieDi.
    • This reply was modified 6 years, 2 months ago by MarieDi. Reason: typos
    Plugin Author Bob

    (@prasunsen)

    Thanks a lot for your input @mariedi, all you said is right.

    My pleasure!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘probeme with ID’ is closed to new replies.