View Full Version : How to modify the contact form?
Vinicio
September 22, 2013, 11:42 AM
Hello there,
I would like to know how to add the telephone field in the general website Contact Us form. Thank you
Mohammed Elbadawi
February 24, 2017, 09:11 PM
3 years wihe no replay !!!!!!!!!!!!!!!!!!!!!!!!
Viktor
February 25, 2017, 08:25 AM
Hello Mohammed,
I think we lost this post. I am sorry.
If you want to add new field you should add it in 4 places:
1. ftp://templates>>your_template>>tpl>>controllers>>contact_us.tpl
2. ftp://includes>>controllers>>contact_us.inc.php
3. In Database add a new field to table: contacts
4. Add variable into Email template: Admin Panel >> Email Tempalates and find email template with key: contact_us
Stephane Boultgen
December 25, 2022, 11:37 AM
Hello Mohammed,
I think we lost this post. I am sorry.
If you want to add new field you should add it in 4 places:
1. ftp://templates>>your_template>>tpl>>controllers>>contact_us.tpl
2. ftp://includes>>controllers>>contact_us.inc.php
3. In Database add a new field to table: contacts
4. Add variable into Email template: Admin Panel >> Email Tempalates and find email template with key: contact_us
Hi.
I try to ad some fields in the contact_us form.
Ist always the same place to do the changes?
because I can find in the Database were I need to ad that fiels?
Thanks
Stephane Boultgen
December 25, 2022, 05:22 PM
After I ad the files in the contact.inc.php and the contact_us.tpl
I do send and it come MYSQL ERROR
Rudi
December 26, 2022, 10:48 AM
Hello,
You need to add the same fields into MySQL table contacts
I think you'd better request a customization because there is no one-step solution
Stephane Boultgen
December 26, 2022, 10:55 AM
Hi. yess I done that, but did not work
Now I fond I work in the wrong Database :-))))))
Works fine
Sorry
Stephane Boultgen
December 26, 2022, 02:50 PM
Hi.
One more question:
In the admin panel the fields I created is not displayed. Can I ad it also?
4781
Rudi
December 27, 2022, 02:55 AM
You need to modify admin/controllers/messages.inc.php and admin/tpl/messages.tpl
Stephane Boultgen
December 27, 2022, 10:19 AM
Hi
Thanks
I try it, but it changes nothing ( admin/controllers/messages.inc.php and admin/tpl/controllers/messages.tpl)
I add also do "ad a phrase" in the admin language panel
Any Idea?
Stephane Boultgen
December 28, 2022, 06:55 AM
Hy Guys
I found the error.
Must do the changes in the contact.tpl
Works now
Stephane Boultgen
December 28, 2022, 12:43 PM
one more question :-)
Works fine now. Just the mail sending to the admin, there is not sending a subject.
Where is the code for the subcject? In the contact.inc?
just that one?
$mail_tpl['subject'] = str_replace('{name}', $your_name, '{firstname}', $your_firstname, '{phone}', $your_phone, '{age}', $your_age, $mail_tpl['subject']);
Roman K.
August 27, 2023, 05:32 PM
Hello. Can you please tell me how to integrate a contact form with a drop-down list of topics?
Thanks in advance.
Powered by vBulletin® Version 4.1.9 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.