Announcement

#1 2024-01-02 10:29:42

Dal
Member
2023-10-14
19

When enabling comments, is it possible to remove the email field?

Hi there
I have enable comments on my Piwigo site, but when I do that 2 fields shows up; the email field and the commentary field

Is it possible to remove the email field and just have the commentary field and the submit button?

Thanks

Offline

 

#2 2024-01-02 15:21:29

hannah
Piwigo Team
2019-04-24
58

Re: When enabling comments, is it possible to remove the email field?

Hi Dal,

You can disable the mandatory email for comments in Configuration>Options>Comments
In this tab you have the option to deselct "Email address is mandatory"

Hope this helps

Offline

 

#3 2024-01-02 17:14:20

Dal
Member
2023-10-14
19

Re: When enabling comments, is it possible to remove the email field?

Hi, thanks for answering.
Yes, I know you can make the email not mandatory, but I was looking for a way to remove the email field entirely from view.

Surely there must be a way?

Thanks again.

Offline

 

#4 2024-01-03 10:27:07

hannah
Piwigo Team
2019-04-24
58

Re: When enabling comments, is it possible to remove the email field?

What theme are you using ? It could possibly be linked

In modus (I also tested Bootstrap darkroom) if I remove the mandatory email adress then it no longer shows up in the gallery. By unticking everything in the comments settings (appart from activate comments) There is just the box for the comment left over, as you can see here:

https://hannah1.piwigo.com/picture?/66/ … y/7-album2

Another option would be to hide it using CSS, but the comments settings should get you what you need

Offline

 

#5 2024-01-03 11:27:48

Dal
Member
2023-10-14
19

Re: When enabling comments, is it possible to remove the email field?

Thanks, but it didn't help
I have tried both modus and Bootstrap darkroom.

What is the way to do it in PHP then?

Thanks again

Offline

 

#6 2024-01-03 11:57:04

Dal
Member
2023-10-14
19

Re: When enabling comments, is it possible to remove the email field?

A small update.
This seems to work for my webmaster user, but not for "users"

Offline

 

#7 2024-01-03 14:18:39

hannah
Piwigo Team
2019-04-24
58

Re: When enabling comments, is it possible to remove the email field?

With CSS in the LocalFilesEditor you can use this:

#addComment label[for=email],
#addComment #email{
  display:none;
}

The field still technically exists but is hidden, and the form should submit as long as the email address is not mandatory

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact