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

Changing of the email output type style

13 years 1 week ago #6578 by gepard
Hi guys! Is there any chance to get plain text template changed. I don't need to see any other info but only user text in the message body (for easy reply purposes). But even if I making following changes in controller.php there are still couple of things apart of users message

Ваше имя: Dmitri
Ваш email адрес: 123@yahoo.com
Тема: Subjecttt
Сообщение: User message


Tried changes:
//$this->emailInfo->enquiry	= JText::sprintf('ENQUIRY_TEXT', JHTML::_('link', //$this->emailInfo->contact_url,$this->emailInfo->siteName) )
		//."\n<br />".$this->emailInfo->name. $surname .' < '.$this->emailInfo->email.' >';
		//$this->emailInfo->enquiry	=$this->emailInfo->name. $surname .' < '.$this->emailInfo->email.' >';
 
 
		$this->emailInfo->body 	= strip_tags($this->emailInfo->enquiry)."\n\n".$this->emailInfo->cfText."\r\n" ;


Please advise how to do that

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

13 years 1 week ago #6579 by douglas
Dear Gepard,

I've never had this request before. I usually just redirect users to the HTML template and do the changes there, but to change the plain text is a bit more complicated, because you have to add the custom field's name which might be different for each form.

This will only work if you have the same message custom field on all forms.
$this->emailInfo->body     =  JRequest::getVar('cf_ID') ;
Where ID is the Custom Field ID.

HTML Templates:
If it does not work like that, please use the HTML templates. You can have one template for each form if you wish and you can retrieve the information like this {post:cf_ID}, except the fields that are set to display only one per form. For those you might have to look at the source code for the Name attribute. In order to retrieve the email Custom Field for example you need to add {post:email} to the HTML Template.

All the best,

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