![]() |
Grr...
Ok Ive spent the past hr updating my site and there are two things I cannot get done:
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: Code:
{* $Id: contactus.tpl,v 1.15 2002/09/12 10:25:45 verbic Exp $ *} 2) when placing an order, the email comes back as: Quote:
all in one big paragraph - how do I organize it? Thanks so much - Im almost done! yah! |
oh yes
Regarding the question about the email,
I am using Sendmail on linux if that is important at all =) |
Hi,
Quote:
When you tested your "Contact Us" form, did you enter an email address? If not you will get the "Email Address Invalid" error message; this is one of the mandatory fields. Your Question No 2; Not sure will check. Regards, |
hmm...if HTML mail is selected in general settings, won't the cart send emails without line-breaks? (if that's the correct terminology)
|
hi!
Hi,
For the contact Us, I did enter a valid email address, but that screen saying I didnt keeps poping up. Thanks! |
Quote:
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:
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:
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, |
hi!
Ok, I changed the help.php as you send...but it still says that the email address I entered - which was jenwyndham@yahoo.com is still invaild. If I restore the contactus.tpl, that email address works fine. But if I modify the contactus.tpl file such that the "Title, First Name, Last Name, Email Adress, Subject, and Message" fields are the only ones there, I get a pop up screen saying "email address is unvalid". Here is the modified contactus.tpl I used
Code:
{* $Id: contactus.tpl,v 1.15 2002/09/12 10:25:45 verbic Exp $ *} i made sure I only deleted the revelavnt stuff, and none of the email codes..perhaps I did something wrong? Thanks |
Hi Japanchick,
Found your problem in the javascript error checking code, I cut-n-pasted your code into my contactus.tpl, and the invalid email error message came up, I then copied the javascript code from my working "contactus.tpl" over your javascript code, and it worked ok. cut-n-paste the following code into contactus.tpl, to overwrite the existing javascript error checking code. Quote:
Regards, |
Hi Syddos,
Thank you for your help...but I still cant get it to work :( I checked the new javascript you posted but it seems the same as my old one? In any case, I did what you said and I am still getting that anooying pop-up box saying email is invalid. Here is the code Im using: Quote:
Thanks |
Quote:
I have just pasted your code into my "contactus.tpl" and I'm getting the error message. I then restored the original help/contactus.tpl file, and deleted the items one by one to match your code. Each time I deleted an entry, I sent the email, without any error messages. If you are using an edititor other than Admin/Edit templates, your editor may be adding non print characters to the template. Here is the code I used to match your template. Quote:
This is the /help/help.php Code: Quote:
Quote:
I then copied your code back into "contactus.tpl" and the error message was back. I suggest you restore the original file and delete un-wanted items using Admin/template editor (if you are not already doing so), and double check the "/help/help.php" file. Regards, |
Thanks!
Hi Syddos,
I copied the code and re-entered it using the admin/templete and it still didnt work...SO, I downloaded the original contactus.tpl from the skin1original folder, opened it up in Notepad, delete the stuff i didnt want, and then saved the file and uploaded to my skin1 directory and now it works! Perhaps there is something wrong with my browser or something in that it adds in extra characters or something? Kinda funny.... One more thing, although i entered the code, as long as I put an email address, I am able to send a message - even though the First Name, Last Name, Subject, and Message fields are empty...is this what is supposed to happen? I would have thought that an error sign would pop up saying "sorry, the please enter your first name" or something like that.. Thanks, japanchick |
Re: Thanks!
Quote:
Actually, I've had similiar problems, but only once in a while. Using the built-in editor somehow corrupted the template and gave me smarty errors. I edited the original the same way using editpad lite, re-uploaded it and it was fine. Does anyone know if it's browser settings? Not meaning to post off-topic here, but while where on the subject... 8) when I cut and paste from a website to an html editor (ie FrontPage), I get alot of garbage characters, but if I paste into a text editor it works fine. Any ideas? |
seaCOAST....
It's a Frontpage thang. You'd have to go into the frontpage html and strip/change all the garbage after you make your wsiwyg changes and not go back to page view after that. Or copy your FP html to a texteditor and do the character fixing there. I hear Dreamweaver does a clean job of pasting |
Quote:
Thanks Jeannie. I figured as much. That's exactly what I do...I paste to a text editor than cut from there and paste it into FP. |
remove fields from Contact Us form
Thank you syddos for answering this question and to japanchick for asking the question. I was able to remove the unwanted fields in the Contact Us form very easily and quickly withour error after reading your posts.
how I love a forum! rpmoore :D |
All times are GMT -8. The time now is 09:14 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.