It would be very helpful, if it could be possible, that the "reset" button is pressed automatically, when a user leaves a paged with a closed question. Or that the answers from he are not stored at all. So, when he comes back to this page for the next time he can start new. I tried to clear all caches, but this does not work. Any help is greatly appreciated.

CommentFileSizeAuthor
#3 closedquestion_disable_loading.zip39.79 KBjvdkolk

Comments

jvdkolk’s picture

I think a better solution would be to have a 'do not store answer' option in the Closed Question's settings/permissions.

I would put this in a separate module, though.

lenni’s picture

Yes, this would be great to have this feature in a separate module.

jvdkolk’s picture

StatusFileSize
new39.79 KB

Dear lenni,
Could you please install the latest 7.x-dev version + attached module I wrote?
Hope this helps!

lenni’s picture

I have tried it and it is working for me! Great!
The only problem is, that when updating already existing closed questions (the once that I have written based on the 7x-2.3 and not on the latest dev version) I am getting a white screen after saving. But this seems to be a minor problem as I can write the questions new ...

lenni’s picture

Sorry, I was too quick.
The problem with the white screen is remaining at some - also newly created - closed questions )(e.g. multiple answer). The first time, when trying to save the node, the system is unchecking the before checked option. When trying once again, the white screen happens. I can only repair this bug by using the back browser and unchecking again ...
Another problem is, that if the option remains checked, than the showing of the hints is no more working. Instead of showing one hint after another, the first and the second hint are shown at the second try (and not only the second one) and all three hints are shown at the third time.

jvdkolk’s picture

Did you clear all caches?

lenni’s picture

Yes, I did clear all caches.
I have tried it once more ad it is every time the same: As soon as I am changing anything in the question node and do not leave the given examples untouched, the problem occurs. So it is not possible at all to use the module.
When checking the option, the first time while saving the system is unchecking it by itself. When checking it once again and trying to save it, I get the white screen.

jvdkolk’s picture

Ok. Could you give me the PHP error messages from webserver log? (e.g. Apache's error.log).

Without them I cannot help you, as I cannot reproduce the problem myself.

jvdkolk’s picture

Component: Code » Miscellaneous
jvdkolk’s picture

Status: Active » Closed (cannot reproduce)