Support Forum

Every time that you post a problem, PLEASE add the Joomla and the extension's versions and revisions (for example: Joomla 3.3.6, Contact Enhanced 3.3.5), PHP version and Server's Operating System. If you only manage only one site it is easier if you edit your profile and just add that information to your signature. Don't forget to add a detailed description of the problem. If possible, write down all steps to simulate the problem.

Before submitting a new post, PLEASE make sure you are running the latest version, test in different browsers (IE, FF, Chrome,..) and clear Joomla and browser's cache after every change you make.

Also, most questions are already answered in our FAQ and in iFAQ and Contact Enhanced documentation pages.

× Contact Enhanced is a contact component manager created to replace Joomla! core contacts component and add lots of advantages and new features (see Features ) and it offers many plugins and modules for several different purposes,
Product page | Documentation Page

Component enhanced questions

14 years 10 months ago - 14 years 10 months ago #283 by jasgrif11
Hi,

I wish to create 2 seperate contact forms on my site. One will be the standard contact us with all the default fields. I then want a seperate "Call Me" contact form with different fields. I presume I can eliminate the default fields from the default_form.php and then add them as custom fields for both of my categories.

Do I just remove the following code?
<label for="contact_name">
				<?php echo JText::_( 'Enter your name' );?> *:
			</label>
			<br />
			<input type="text" name="name" id="contact_name" size="30" class="inputbox required" value="<?php echo (isset($ce_cookie['name']) ? $ce_cookie['name'] : $this->user->get('name') ); ?>" />
			<br />
			<label id="contact_emailmsg" for="contact_email">
				<?php echo JText::_( 'Email address' );?> *:
			</label>
			<br />
			<input type="text" id="contact_email" name="email" size="30" value="<?php echo (isset($ce_cookie['email']) ? $ce_cookie['email'] : $this->user->get('email') ); ?>" class="inputbox required validate-email" maxlength="100" />
			<br />
			<label for="contact_subject">
				<?php echo JText::_( 'Message subject' );?> *:
			</label>
			<br />
			<input type="text" name="subject" id="contact_subject" size="30" class="inputbox required" value="<?php echo (isset($ce_cookie['subject']) ? $ce_cookie['subject'] : '' ); ?>" />
			<br />
 
 
<br />
			<label id="contact_textmsg" for="contact_text">
				<?php echo JText::_( 'Enter your message' );?> *:
			</label>
			<br />
			<textarea cols="50" rows="10" name="text" id="contact_text" class="inputbox required"><?php echo (isset($ce_cookie['text']) ? $ce_cookie['text'] : '' ); ?></textarea>

This works in that it displays how I want but I'm unable to send or receive an e-mail?. I then restored the original code and my default "Contact Us" works but my "Call Me" wont send an e-mail (no error)

I dont want the contacts to be setup as a Contact Enhanced » Category I'd prefer to have them as 2 seperate Contacts is this possible?

Many Thanks
Jason

Please Log in or Create an account to join the conversation.

14 years 10 months ago #284 by douglas
Dear Jason,

Right now you cannot remove the default fields, however I'm for the next version planing to add all fields as Custom Fields.

If you don't want a default field in all of your forms, you can remove it's label, set its type to hidden and remove the class attribute. For the subject, for example, you can add a value ( value="Your Subject") as the default subject to all forms.

Have you changed only the default_form.php? I suggest you to unpack the original files and upload to your server, overwriting all files.

You can have as two different contacts, however if you need different fields you will have to create them in two different categories.

I don't promise to implement this feature for the next version, however I'm going to think about it.

Regards,

Please Log in or Create an account to join the conversation.

14 years 10 months ago - 14 years 10 months ago #285 by jasgrif11
Douglas,

Thanks for your lightning fast response. Its now working again and I await the next release to change the default fields.

Just two things.

1. Is it possible to add one of my contacts to a button. If a user presses a "Call Me" button it will open a contact form. I know this is possible I just need to add a link to the button however I dont want this Contact form published anywhere else. At the moment I can only achieve it by first publishing the contact form and then adding the link to the button.

2. Finally how do I pop up a message stating that your request has been submitted. I'm aware that you have this open on another thread already but just wondering if its working?


Again thanks for the quick response.

J

Please Log in or Create an account to join the conversation.

14 years 10 months ago #286 by douglas
Dear Jason,

1. The link should be something like this:
index.php?option=com_contact_enhanced&view=contact&id=6&Itemid=4
Just change the id to your contact id and I would add a Itemid, so I can control which modules I want to show in the contact page.

2. It should be working! At least it is working on my testing server. I just sent an email to you with frontend files, with my latest changes.

Regards,

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum

Copyright © 2018 IdealExtensions.com. All Rights Reserved.

This site is not affiliated with or endorsed by the Joomla!™ Project. It is not supported or warranted by the Joomla!™ Project or Open Source Matters™. The Joomla!™ logo is used under a limited license granted by Open Source Matters™, the trademark holder in the United States and other countries.
We may collect your IP address and your browser's User Agent string while using our site for security reasons and deriving aggregate information (analytics). This information is retained for a minimum of 1 and a maximum of 24 months.
Feedback