Hi,
when adding a site a category. The fields Contact Name and Email are required fields. I would like to make these fields optional. Any idea how?
Hi,
when adding a site a category. The fields Contact Name and Email are required fields. I would like to make these fields optional. Any idea how?
Last edited by vakil; 10-02-2002 at 07:33 AM.
Close line 95-96 in add.php like this :
SofiahPHP Code://elseif(empty($contact_name)) $error_msg = $msg["10104"];
//elseif(empty($email)) $error_msg = $msg["10105"];
Hi,
thank you its working
I think line 97 should also be commented.
I'm having a problem now,
the link gets added to the category without approval of admin or editor.
i've commented line 97 because it validates the email field when there is no email
I don't know what's happening,
even when I remove the comments the link gets added with out approval of admin or editor.
oh shoot!
my mistake. For that category I had chosen the pref. to add links with editor approval.
sorry!
I see the codes but what next, what do I do or edit it to make the contact name and email address optional when posting a listing??
it's an old thread. However in 5.4.0, it's line 224-227, put the red codes below
Code:/*elseif (empty($contact_name)) $error_msg = $msg["10104"]; elseif (empty($email)) $error_msg = $msg["10105"];*/
Dody, I changed it, but now when submitting the list I get a red warning on top: Invalid email address pattern