Pages (4):    1 2 3 4   
Member
Member
Mazurki   27-02-2024, 17:25
#21

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

Administrator
Administrator
acrylian   27-02-2024, 17:40
#22

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.

Administrator
Administrator
acrylian   27-02-2024, 17:50
#23

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.

Member
Member
Mazurki   27-02-2024, 23:28
#24

Thank you acrylian for the answer,

I did a test with a private window plus cleaning cookies and closing the tab then reopening and still the same behavior.

Thanks again for the support

Sincerely
Mazurki

Administrator
Administrator
acrylian   28-02-2024, 10:11
#25

Then you perhaps have your browser setup to remember and fill in form data automatically?

Member
Member
Mazurki   29-02-2024, 16:51
#26

Good morning,

Can I expect a fix eventually?

Thanks
mazurki

Administrator
Administrator
acrylian   29-02-2024, 16:52
#27

We did investigate and we don't see anything from our side that "remembers" except when you are logged in.

Check your browser setting regarding autocomplate perhaps.

Member
Member
Mazurki   29-02-2024, 17:54
#28

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

Administrator
Administrator
acrylian   29-02-2024, 18:18
#29

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…

Administrator
Administrator
acrylian   29-02-2024, 18:22
#30

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.

Pages (4):    1 2 3 4   
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.