Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Changing Text on Joomla Contact form

Posted on 2009-12-27
7
Medium Priority
?
2,018 Views
Last Modified: 2012-05-08
How do I change the text,

"Please include your phone number"

on my default Joomla contact form:

http://worldhealthcoach.com/contact-bob.html
0
Comment
Question by:weikelbob
7 Comments
 
LVL 83

Expert Comment

by:leakim971
ID: 26129463
Hello weikelbob,

Just save the following to a new file : contact-bob.html and replace the one you have on your site.

(search and replace "Please Include Your Phone Number" with the new text you want to put)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang="en-gb" > 
<head> 
  <base href="http://worldhealthcoach.com/contact-bob.html" /> 
  <meta http-equiv="content-type" content="text/html; charset=utf-8" /> 
  <meta name="robots" content="index, follow" /> 
  <meta name="keywords" content="joomla, Joomla" /> 
  <meta name="description" content="Joomla! - the dynamic portal engine and content management system" /> 
  <meta name="generator" content="Joomla! 1.5 - Open Source Content Management" /> 
  <title>Please Include Your Phone Number</title> 
  <link href="/templates/rhuk_milkyway/favicon.ico" rel="shortcut icon" type="image/x-icon" /> 
  <link rel="stylesheet" href="http://worldhealthcoach.com/modules/mod_superfishmenu/tmpl/css/superfish.css" type="text/css" /> 
  <script type="text/javascript" src="/media/system/js/mootools.js"></script> 
  <script type="text/javascript" src="/media/system/js/validate.js"></script> 
  <script type="text/javascript" src="http://worldhealthcoach.com/modules/mod_superfishmenu/tmpl/js/jquery.js"></script> 
  <script type="text/javascript" src="http://worldhealthcoach.com/modules/mod_superfishmenu/tmpl/js/superfish.js"></script> 
  <script type="text/javascript"> 
<!--
		function validateForm( frm ) {
			var valid = document.formvalidator.isValid(frm);
			if (valid == false) {
				// do field validation
				if (frm.email.invalid) {
					alert( "Please enter a valid e-mail address:" );
				} else if (frm.text.invalid) {
					alert( "Please make sure the form is complete and valid." );
				}
				return false;
			} else {
				frm.submit();
			}
		}
		// -->
jQuery.noConflict();
jQuery(function($){ $("ul.sf-menu").superfish({hoverClass:'sfHover', pathClass:'active', pathLevels:0, delay:200, animation:{opacity:'show', height:'show', width:'show'}, speed:100, autoArrows:0, dropShadows:0}) });
 
  </script> 
 
 
<link rel="stylesheet" href="/templates/system/css/system.css" type="text/css" /> 
<link rel="stylesheet" href="/templates/system/css/general.css" type="text/css" /> 
<link rel="stylesheet" href="/templates/rhuk_milkyway/css/template.css" type="text/css" /> 
<link rel="stylesheet" href="/templates/rhuk_milkyway/css/black.css" type="text/css" /> 
<link rel="stylesheet" href="/templates/rhuk_milkyway/css/black_bg.css" type="text/css" /> 
<!--[if lte IE 6]>
<link href="/templates/rhuk_milkyway/css/ieonly.css" rel="stylesheet" type="text/css" />
<![endif]--> 
<!--[if IE 7]>
<link href="/templates/rhuk_milkyway/css/ie7only.css" rel="stylesheet" type="text/css" />
<![endif]--> 
 
</head> 
<body id="page_bg" class="color_black bg_black width_fmax"> 
<a name="up" id="up"></a> 
<div class="center" align="center"> 
	<div id="wrapper"> 
		<div style="margin-top:-10px;" id="wrapper_r"> 
			<div id="header"> 
<a href="http://www.worldhealthcoach.com"><img style="border"0px" src="/images/stories/nlp-coach.jpg" alt="nlp weight loss"></a> 
 
			</div> 
				     <div id="withmenu"> 
						
						<ul class="menu sf-menu sf-horizontal"><li class="first-child item1"><a href="http://worldhealthcoach.com/"><span>Home</span></a></li><li class="item34"><a href="/bio.html"><span>Bio</span></a></li><li class="item2"><a href="/services.html"><span>Services</span></a></li><li class="parent item37"><span class="separator"><span>Resources</span></span><ul><li class="first-child item54"><a href="/resources/about-nlp.html"><span>About NLP</span></a></li><li class="item53"><a href="/resources/weight-loss-article.html"><span>Weight Loss Article</span></a></li><li class="item90"><a href="/resources/six-nutritional-tips.html"><span>6 Key Nutritional Tips</span></a></li><li class="last-child item91"><a href="/resources/exercise-weight-loss-tips.html"><span>5 Key Exercise Tips</span></a></li></ul></li><li class="item60"><a href="/faq.html"><span>FAQ</span></a></li><li class="item41"><a href="http://shop.nlpco.com/?Click=6052"><span>Store</span></a></li><li id="current" class="last-child active item88"><a href="/contact-bob.html"><span>Contact Bob</span></a></li></ul> 
 
				     </div> 
				
 
 
			<div id="search"> 
				
			</div> 
 
			<div id="pathway"> 
				
			</div> 
 
			<div class="clr"></div> 
 
					<div id="area"> 
									
 
						<div style="margin-left:-4px" id="leftcolumn"> 
												</div> 
 
												<div id="maincolumn_full" style="text-align:left;"> 
													
							<table class="nopad"> 
								<tr valign="top"> 
									<td> 
											<div class="componentheading"> 
		Please Include Your Phone Number	</div> 
<div id="component-contact"> 
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="contentpaneopen"> 
<tr> 
	<td> 
		<table border="0" width="100%"> 
		<tr> 
			<td></td> 
			<td rowspan="2" align="right" valign="top"> 
						</td> 
		</tr> 
		<tr> 
			<td> 
				<br /> 
			</td> 
		</tr> 
		</table> 
	</td> 
	<td>&nbsp;</td> 
</tr> 
<tr> 
	<td width="750px"></td> 
</tr> 
<tr> 
	<td colspan="2"> 
	<br /><br /> 
	<form style="margin-top:-55px" action="/contact-bob.html" method="post" name="emailForm" id="emailForm" class="form-validate"> 
		<div class="contact_email"> 
			<label for="contact_name"> 
				&nbsp;Enter your Name:
			</label> 
			<br /> 
			<input type="text" name="name" id="contact_name" size="30" class="inputbox" value="" /> 
			<br /> 
			<label id="contact_emailmsg" for="contact_email"> 
				&nbsp;E-mail address:
			</label> 
			<br /> 
			<input type="text" id="contact_email" name="email" size="30" value="" class="inputbox required validate-email" maxlength="100" /> 
			<br /> 
			<label for="contact_subject"> 
				&nbsp;Phone Number:
			</label> 
			<br /> 
			<input type="text" name="subject" id="contact_subject" size="30" class="inputbox" value="" /> 
			<br /><br /> 
			<label id="contact_textmsg" for="contact_text"> 
				&nbsp;Enter your Message:
			</label> 
			<br /> 
			<textarea cols="50" rows="10" name="text" id="contact_text" class="inputbox required"></textarea> 
						<br /> 
				<input type="checkbox" name="email_copy" id="contact_email_copy" value="1"  /> 
				<label for="contact_email_copy"> 
					E-mail a copy of this message to your own address.				</label> 
						<br /> 
			<br /> 
			<button class="button validate" type="submit">Send</button> 
		</div> 
 
	<input type="hidden" name="option" value="com_contact" /> 
	<input type="hidden" name="view" value="contact" /> 
	<input type="hidden" name="id" value="1" /> 
	<input type="hidden" name="task" value="submit" /> 
	<input type="hidden" name="cb3c4d0cb7426c0555311f3a6d3ba95c" value="1" />	</form> 
	<br /> 
	</td> 
</tr> 
</table> 
</div> 
 
										
									</td> 
																			<td>&nbsp;</td> 
										<td style="padding-left:25px;width="170"> 
													<div class="moduletable"> 
					<p><a href="/contact-bob.html" target="_self"><img src="/images/stories/telephone-coaching-2.gif" border="0" /></a></p>		</div> 
			<div class="moduletable"> 
					<p><a href="/contact-bob.html" target="_self"><img src="/images/stories/food/benefits.gif" border="0" /></a></p>		</div> 
	
										</td> 
																	</tr> 
							</table> 
 
 
					<div class="clr"></div> 
				</div> 
 
				<div id="whitebox_b"> 
					<div id="whitebox_bl"> 
						
					</div> 
				</div> 
			</div> 
 
			<div id="footerspacer"></div> 
		</div> 
 
		<div id="footer"> 
			<div id="footer_l"> 
				<div id="footer_r"> 
					<img src="/images/stories/nlp-practitioner.jpg"> 
				</div> 
			</div> 
		</div> 
	</div> 
</div> 
 
<script type="text/javascript"> 
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script> 
<script type="text/javascript"> 
try {
var pageTracker = _gat._getTracker("UA-11147830-1");
pageTracker._trackPageview();
} catch(err) {}</script> 
</body> 
</html>

Open in new window

0
 
LVL 7

Author Comment

by:weikelbob
ID: 26129494
Are you sure it's that easy? I can't find contact-bob.html anywhere. It's a joomla component contact page.


0
 
LVL 8

Expert Comment

by:Jesse Matlock
ID: 26130198
If you are using the Contact Component you will need to go to:
components/com_contact/views/contact/view.html.php and search/replace the text you wish to change.. this is ONLY if its for a single contact.. if its for a Contact Category.. then instead of the /contact/ directory, go to the /category/ directory.. :)

That should get you all set.. let me know it is works out :)
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 11

Expert Comment

by:enriquecadalso
ID: 26130950
You can do it with no hacking involved. Use Communiti Builder (http://www.joomlapolis.com/) to make a custom field (http://www.joomlado.com/support/19-set-up-joomla-1.x/33).
0
 
LVL 8

Expert Comment

by:Jesse Matlock
ID: 26131106
Wow.. CB is a pretty large and heavy component to learn/use just to modify a contact form to suit this sites needs.. IMHO

You would be better served to either:
1) Use a standard form extension for Joomla like ChronoForms - it's free and VERY reliable.

or

2) Code your own and insert into an article and pass all the data to a 'std' sendmail.php file on your server (I can even provide you with a working example!)

or

3) Code the form yourself and include it into an article..

I've included the link for ChronoForms here:
http://chronoengine.com/component/content/article/1-latest/26-what-is-chronoforms.html

And some HTML form examples here:
http://css-tricks.com/nice-and-simple-contact-form/
http://www.tutorialguide.net/php_contact_form_tutorial.html

If you need any assistance using one of these solutions,.. just let me know.. we use all of these, each when they're called for, on the sites we develop. ;)
0
 
LVL 7

Author Comment

by:weikelbob
ID: 26132098
cloud9manager,

I went to the 2 view.html.php files that you suggested and my text is not in either one.

What information do you need to help me find it?
0
 
LVL 8

Accepted Solution

by:
Jesse Matlock earned 2000 total points
ID: 26133053
Ah, my apologies... I thought you want to change more than the text.. the text looks like it might be within your menu item, under the 'Page Title' field within the 'Parameters System' section - right side of the menu items page. This is based on the fact that it's wrapped within a <div class="componentheading"> tag.. which is typically reserved for headings from within Joomlas menu items, module titles, etc.

Let me know if that resolves it for you.. :)
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
CTAs encourage people to do something specific to show interest in your company, product or service. Keep reading to learn why CTAs should always be thought of as extremely important, albeit small, sections of websites.
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses
Course of the Month11 days, 2 hours left to enroll

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question