Member
Member
peh   2006-09-10, 17:59
#1

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.

Member
Member
Mammlouk2   2006-09-11, 08:09
#2

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)) {
return false;
}

should be changed to

if (empty($name) || empty($comment)) {
return false;
}

Member
Member
peh   2006-09-12, 21:23
#3

Thanks a lot, that solved it right away.

Member
Member
Mammlouk2   2006-09-13, 03:23
#4

No Problem. Glad it worked out for you!

Member
Member
basti007   2007-12-19, 21:46
#5

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

Member
Member
sbillard   2007-12-19, 23:43
#6

It seems like a good enhancement to zenphoto would be some options as to which comment fields are required.

Member
Member
sbillard   2007-12-20, 03:26
#7

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.

Member
Member
basti007   2007-12-20, 21:52
#8

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!

Member
Member
sbillard   2007-12-20, 22:31
#9

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.)

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.