change contact us form

For Joomla! 1.5 Coding related discussions, please use: http://groups.google.com/group/joomla-dev-general
Locked
Ajinkya
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Tue Sep 30, 2008 11:24 am

change contact us form

Post by Ajinkya » Wed Oct 01, 2008 12:00 pm

hello Sir,

I am very new to joomla, I added the contact us form to my website, can you please tell me how to add the one more field in it like phone number.
Also how to change message comes aftre the form is posted.
Please help me
Thank you.

User avatar
strumjan
Joomla! Explorer
Joomla! Explorer
Posts: 451
Joined: Sat Oct 20, 2007 11:21 am
Location: Skopje, Macedonia
Contact:

Re: change contact us form

Post by strumjan » Wed Oct 01, 2008 12:50 pm

Go to menu Component and then Contact. There You can edit all parameters.
Joomla.mk
Macedonian translation team

wcleland
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Tue Jan 12, 2010 5:52 pm
Location: Kingston, Ontario, Canada
Contact:

Re: change contact us form

Post by wcleland » Tue Jan 12, 2010 6:35 pm

strumjan: That is SO not true. Kindly check your answers. (Bet you heard that in school alot, eh? ;) )

In fact after scouring the CSS files in Components, Templates, and Admin I can't find the option to change this myself either.

I have also seen this particular problem posted in numerous locations on this site without a proper answer anywhere.

Is there ANYONE who can help please? And if you can confirm your answer before speaking out loud such as strumjan did, it would be greatly appreciated! Thank You.

User avatar
strumjan
Joomla! Explorer
Joomla! Explorer
Posts: 451
Joined: Sat Oct 20, 2007 11:21 am
Location: Skopje, Macedonia
Contact:

Re: change contact us form

Post by strumjan » Tue Jan 12, 2010 7:43 pm

Sorry, maybe I misunderstand question, my fault. To change look of contact form go to Your Joomla\components\com_contact\views\contact\tmpl folder and change the default_form php code directly to Your needs.
You can also make override to template and put this new code to Your template folder, in this case You don't make any change to Joomla core :)
Joomla.mk
Macedonian translation team

wcleland
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Tue Jan 12, 2010 5:52 pm
Location: Kingston, Ontario, Canada
Contact:

Re: change contact us form

Post by wcleland » Tue Jan 12, 2010 7:58 pm

Thank you for updating your answer, and I apologize for my harshness in my previous search for answers.

Unfortunately this method only controls the bottom half; The Form section. Thank you very much for clarifying and I too believed that this was where the size could be altered. Perhaps a better coder than myself would know exactly what to type for CSS to add that functionality but I would imagine that if it is hard coded as it is, that it will not be so easy.

My Solution: Downloaded and Installed the aiContactSafe Extension. FAR more options and usable features. Including Captcha, Attachments, and more...

tasimba
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Thu Nov 19, 2009 12:12 pm

Re: change contact us form

Post by tasimba » Tue Jan 19, 2010 8:06 am

In case you are struggling with installing CAPTCHA capability for your default Joomla! email contact form. Follow this link to your solution http://www.tasimbatech.co.za/joomla-15x-articles.html

I have istalled it and this plugin works without the need for any hacks to the Joomla! files. Simply install and activate plugin and then test out your contact form on your live site.

wcleland
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Tue Jan 12, 2010 5:52 pm
Location: Kingston, Ontario, Canada
Contact:

Re: change contact us form

Post by wcleland » Wed Jan 20, 2010 6:22 pm

tasimba wrote:In case you are struggling with installing CAPTCHA capability for your default Joomla! email contact form. Follow this link to your solution http://www.tasimbatech.co.za/joomla-15x-articles.html

I have istalled it and this plugin works without the need for any hacks to the Joomla! files. Simply install and activate plugin and then test out your contact form on your live site.
That has absolutely Nothing to do with this topic. Thanks for the heads up though.

FranzM
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Sun Jan 24, 2010 11:59 am

Re: change contact us form

Post by FranzM » Sun Mar 21, 2010 12:43 pm

Hi,
strumjan wrote:To change look of contact form go to Your Joomla\components\com_contact\views\contact\tmpl folder and change the default_form php code directly to Your needs.
I have a related question about this php script: I see a width of only 30 character positons for Name, email address etc. I would like to extend that to 60 or more.
I change the respective lines in default_form.php:
<input type="text" name="name" id="contact_name" size="30" class="inputbox" value="" />
to
size="60"

But nothing happens to the width of my inputboxes.

Could anybody help me out?

Thanks.

User avatar
strumjan
Joomla! Explorer
Joomla! Explorer
Posts: 451
Joined: Sat Oct 20, 2007 11:21 am
Location: Skopje, Macedonia
Contact:

Re: change contact us form

Post by strumjan » Sun Mar 21, 2010 1:45 pm

In Your default template folder find subfolder HTML and there subfolder CONTACT. Probably there is override for contact php.
Joomla.mk
Macedonian translation team

FranzM
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Sun Jan 24, 2010 11:59 am

Re: change contact us form

Post by FranzM » Sun Mar 21, 2010 3:44 pm

Check!
The default template used was b59-tpl19. By selecting in the Template Manager "Edit CSS" I arrived at the /css/template.css file which has an entry:

.inputbox {
width:120px;
}

I changed that to:

width:240px;

and I got what I wanted to get!

Thanks for the help in looking in the right direction.

Franz

itoptionz
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Wed Jun 30, 2010 4:16 am

Re: change contact us form

Post by itoptionz » Wed Jun 30, 2010 4:39 am

Hi,

Greetings to everyone!! :)

I am a very new member of The Joomla community.

I want to create a "Contact Us" form for my website with additional information fields like telephone No etc.

Also, I need that once the visitor completes the Contact Us form and clicks the submit button

the form should come to me as an PDF or Excel file as a attachment.

Please help I need to get this done asap.

Thanks in advance for your help.

Regards,
Rahul

natecovington
Joomla! Explorer
Joomla! Explorer
Posts: 436
Joined: Tue Jul 29, 2008 11:54 pm
Location: NE PA
Contact:

Re: change contact us form

Post by natecovington » Mon Aug 02, 2010 9:11 pm

Hi,

If you need to add a "Phone" field, or any other custom field to the contact form, the easiest thing to do is to ABANDON the stock Joomla Contact component. Use something like RSForm, Fabrik, Chronoform, etc... these are all form building tools and you can build a custom contact form without writing any code.
I am available for professional Joomla support, consulting, and custom work:
www.covingtoncreations.com

OFA
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Fri Sep 03, 2010 4:05 pm

Re: change contact us form

Post by OFA » Tue Oct 19, 2010 3:30 pm

I chose to hide most of the Parameters, but I still get the following words on my page (without the field):

Street
Suburb
State
Zip Code
Country
Telephone
Fax
Information: Miscellanous info

How can I really hide them?

Thanks,

natecovington
Joomla! Explorer
Joomla! Explorer
Posts: 436
Joined: Tue Jul 29, 2008 11:54 pm
Location: NE PA
Contact:

Re: change contact us form

Post by natecovington » Tue Oct 19, 2010 3:34 pm

Which parameters are you referring to?

Components -> Contacts -> Your "Contact" item
Menu -> MainMenu -> Your "Contact" link
I am available for professional Joomla support, consulting, and custom work:
www.covingtoncreations.com

OFA
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Fri Sep 03, 2010 4:05 pm

Re: change contact us form

Post by OFA » Tue Oct 19, 2010 3:48 pm

I meant in Components -> Contacts -> Your "Contact" item

onlysalam
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Sat Nov 27, 2010 3:03 am

Re: change contact us form

Post by onlysalam » Sat Nov 27, 2010 11:12 pm

OFA wrote:I chose to hide most of the Parameters, but I still get the following words on my page (without the field):

Street
Suburb
State
Zip Code
Country
Telephone
Fax
Information: Miscellanous info

How can I really hide them?

Thanks,

I am having the same problem, I don't know how to hide them, I don't want those, any idea on how to remove those text/icon from the contact page? please advice,

Thanks

onlysalam
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Sat Nov 27, 2010 3:03 am

Re: change contact us form

Post by onlysalam » Sat Nov 27, 2010 11:16 pm

oh never mind, natecovington already gave the answer,

Thanks alot, that's saved me alot.

pm4dev
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Thu Nov 18, 2010 6:13 pm

Re: change contact us form

Post by pm4dev » Thu Jan 06, 2011 1:10 pm

Check this link for a solution on how to change the message after the contact us form is sent

http://www.hotjoomlatemplates.com/blog/ ... k-you-page

pm4dev
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Thu Nov 18, 2010 6:13 pm

Re: change contact us form

Post by pm4dev » Thu Jan 06, 2011 1:12 pm

Check this link for a solution on how to change the message after the contact us form is sent

http://www.hotjoomlatemplates.com/blog/ ... k-you-page

It worked for me, you can even add a link to an article is you need more information after the for is submitted

Sethrmidus
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Fri May 20, 2011 4:24 pm

Re: change contact us form

Post by Sethrmidus » Fri May 20, 2011 5:04 pm

Hi, I have pretty much figured everything out on my own to create my page but I cannon for the life of me figure out how to change the font/color in my contact us form. Evey where I search, I only find answers that either don't make sense, or none at all. PLEASE help me! Thanks!! :'(

Sethrmidus
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Fri May 20, 2011 4:24 pm

Re: change contact us form

Post by Sethrmidus » Fri May 20, 2011 6:42 pm

I was also thinking, If i could just change the background to "white" from "transparent" even. That would fix it. Also, I am using Joomla 1.6, am I in the right room??

inmater
Joomla! Apprentice
Joomla! Apprentice
Posts: 22
Joined: Sun Feb 20, 2011 8:14 pm
Contact:

Re: change contact us form

Post by inmater » Thu Nov 03, 2011 7:02 am

In Your default template folder find subfolder HTML and there subfolder CONTACT. Probably there is override for contact php.
strumjan..you were casting a spell:) thx alot!

mesh2006uk
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sun Nov 21, 2010 12:13 pm

Re: change contact us form

Post by mesh2006uk » Sat Jul 14, 2012 9:48 pm

Hi There,

Can someone help me to do what shows on the picture link--->

NOW:
http://imageshack.us/f/585/nowfe.jpg/

WHAT I NEED IS:

http://imageshack.us/f/254/needo.jpg/


Please Help me.

thanks

User avatar
strumjan
Joomla! Explorer
Joomla! Explorer
Posts: 451
Joined: Sat Oct 20, 2007 11:21 am
Location: Skopje, Macedonia
Contact:

Re: change contact us form

Post by strumjan » Sun Jul 15, 2012 7:55 am

In Your default template folder find subfolder HTML and there find or make subfolder COM_CONTACT. There you can make override for contact.php and default-form.php.
Joomla.mk
Macedonian translation team

sunshinehtg
Joomla! Intern
Joomla! Intern
Posts: 82
Joined: Thu Jan 19, 2012 8:24 pm
Contact:

Re: change contact us form

Post by sunshinehtg » Fri Oct 26, 2012 3:40 pm

thank you strumjan,
i was just at the contact us form and could not find it again. i am very greatful for this forum that i can search old notes and find where the heck i was. lol

sinip
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Dec 04, 2012 10:15 am

Re: change contact us form

Post by sinip » Tue Dec 04, 2012 10:25 am

Hello, I'd have to revive this thread a bit. :)
What I need is (I believe) small modification in Joomla 1.5 backend file(s) governing Contact Manager section. Namely, what I need is to be able to insert HTML code in the "Telephone" field of "/administrator/index.php?option=com_contact&task=edit&..." for the users listed there, instead of the phone number. The HTML code is simple Skype button found here: http://www.skype.com/intl/en-us/tell-a- ... pe-button/

I've tried to do something on my own, but sadly without any luck. I know that "hacking" of core files is not recommended and I know that it could probably be done with some third party contact form module/extension but since there's only one thing that I'd like to have changed, I'd prefer the approach of changing existing files rather than installing new extension because of only one button.

Thanks in advance for any help!

sinip
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Dec 04, 2012 10:15 am

Re: change contact us form

Post by sinip » Tue Dec 04, 2012 4:51 pm

Ok if I can amend myself, I've made some progress in this issue. If I insert Skype code under "Misc" section of the contact form, Skype button shows up normally. So I've made changes in the admin.contact.html.php so that the lines under "Telephone" are exactly the same as under "Misc" )line 420 copied to line 380 while replacing "misc" with "telephone". Then I've changed the "telephone" filed in the database so that it has the same properties as the "misc" field. However, the thing still doesn't work, and I know why as well. Line 181 goes like: JFilterOutput::objectHTMLSafe( $row, ENT_QUOTES, 'misc' ); effectively allowing HTML tags to be parsed and not stripped. The question is how do I add the same for "telephone" field?


Locked

Return to “Joomla! 1.5 Coding”