![]() |
|
Remove mandatory e-mail from comment form - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Remove mandatory e-mail from comment form (/thread-797.html) |
Remove mandatory e-mail from comment form - peh - 2006-09-10 Does anyone know where to change the comment form, so that either e-mail adress is not mandatory, or to remove the e-mail field completely... I just want a comment form having a "name" field, and then the comment itself. Paul. Remove mandatory e-mail from comment form - Mammlouk2 - 2006-09-11 To get rid of the field you have to take it out of the image.php in the theme. To keep zenphoto from complaining about the email you have to change the following code from the function addComment under the Image class in classes.php if (empty($email) || !is_valid_email_zp($email) || empty($name) || empty($comment)) { should be changed to if (empty($name) || empty($comment)) { Remove mandatory e-mail from comment form - peh - 2006-09-12 Thanks a lot, that solved it right away. Remove mandatory e-mail from comment form - Mammlouk2 - 2006-09-13 No Problem. Glad it worked out for you! Remove mandatory e-mail from comment form - basti007 - 2007-12-19 I have ver-1.0.8.2. I have commented the email and the site in the image.php under themes as well and This does not work to me... I just basically don't need the email and the site on my comment section, anyone has ever done this? any HELP will be appreciated. Thanks in advance! regards Remove mandatory e-mail from comment form - sbillard - 2007-12-19 It seems like a good enhancement to zenphoto would be some options as to which comment fields are required. Remove mandatory e-mail from comment form - sbillard - 2007-12-20 In tonight's nightly build will be a new set of options so that you can decide what comment posting fields are mandatory. You will still have to eliminate the HTML of any fields you don't want your theme to show. Remove mandatory e-mail from comment form - basti007 - 2007-12-20 Hi there, thanks for your reply, however im a bit still lost... is the new version in the download section has this option? thanks again! Remove mandatory e-mail from comment form - sbillard - 2007-12-20 You need to download the nightly build. Then go to the admin--options and comment configuration tabs. There you will see the options. Note that the nightly build may not be as stable as the released version. (However, so far we have had only one really bad nightly, so you are pretty safe. Most of us developers are running this build.) |