Quote:
Originally Posted by Japanchick
1) I want to eliminate the some contact fields in the contact list. I went to the contactus.tpl and delete some stuff....I tested it out and is says "email address is not vaild" but I swear, I never touched the email code in the contactus.tpl! Here is the code for it:
|
Hi Japanchick,
I had to remove some the fields also, and ran into problems, I always use
around any code I'm planning to delete, untill I know it's working.
I found the answer by tracing the php files, from the "Contact Us" link.
In the file
/include/help.php, you will see the following text:-
Quote:
$fillerror = (empty($contact["firstname"]) || empty($contact["lastname"]) || empty($contact["b_address"]) || empty($contact["b_city"]) || empty($contact["b_country"]) || empty($contact["b_zipcode"]) || empty($contact["phone"]) || empty($contact["email"]) || empty($contact["subject"]) || empty($contact["body"]));
|
I copied the original text into notepad (just to be safe), and changed the original text, to error check only the items I required in the contact list as below:-
Quote:
$filerror = (empty($contact["firstname"]) || empty($contact["lastname"]) || empty($contact["email"]) || empty($contact["subject"]) || empty($contact["body"]));
|
Now everything works OK, no errors being reported.
I left the original entry in this file, incase I changed my mind about all the items I deleted. The code is one continous line, so it only required one
# to dissable it.
Regards,