Thread: Grr...
View Single Post
  #6  
Old 10-28-2002, 06:40 AM
 
syddos syddos is offline
 

eXpert
  
Join Date: Sep 2002
Location: London, England, UK
Posts: 259
 

Default

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,
__________________
Syddos

Nothing is impossible, We just don't know how to do it ........Yet!

Xcart 4.1.X PRO (Testing Platform: winXP Pro)
Perl 5.8.7 (win32)
WINAMP 1.6.3 (win32 server package. Includes the following)
- phpMyAdmin v2.8.03
- MySql 5.0.21
- Apache 2.0.55 (win32)
- php 5.1.4
- SQLitemanager 1.2.0
Reply With Quote