Good morning,
Unfortunately, I am not logged in as an admin and I connect to https://photosmichel.com in 3 different browsers and when I enter a comment on an image and I click add, the comment is saved and the Name and Email informations are not erased and not only they are not erased but they are duplicated in all the comment forms in the Gallery.
You can see for yourself.
Thank you for your support.
mazurki
I admit I basically never use this plugin myself. So I indeed had to look that up. That is actually stored in cookie as a "known user" once you commented previously. You can try that by clearing cookies and/or using a private tab/window in your browser.
Actually I think the plugin should not do that at all. Actually in the code there is a check for $_POST['remember'] that is apparently set via an invisible field.
A reason for this seems to be that the form keeps data in case an error on posting occurs. I will see to turn that into a checkbox so a comment has a choice. Perhaps even make it an option for that checkbox to appear at all. More GDPR/privacy friendly anyway.
Hi,
For your information my three Browsers are not set to autocomplete.
But it’s OK now I have changed the ‘remember’ command of line 545 and 557 of the function.php file
In public_html/zp-core/zp-extensions/comment_form and all is working as expected now, comment saved and field erased and non duplicated in the other comments forms.
I gave you the link to my Gallery, you could have gone and checked for yourself, I asked three people outside to check the behavior and the result was the same, they rechecked after my change and everything works fine.
Mazurki
Okay, good, better to have that off to avoid the browser adding that to forms you don't want to.
Weird, I looked at it and it looks like it os for admins only. And using a private tab to comment on a local test site nothing was remembered… It only worked when I was loggedin. We'll try that again tommorrow…
Btw, for now you don't have to modify the plugin itself. You can have a custom form within /plugins/comment_form/comment_form.php folder, too. Just take the one from /zp-core/zp-extensions/comment_form//comment_form.php and modify it. There is a hidden input field named "remember" right at the beginning. Removing it should help actually.