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.

No more wraps after 15 lines in contact-email

10 years 9 months ago - 10 years 9 months ago #14622 by reneweik
Hi there,

i've changed ajax.php into



static function getCustomFieldLabel($fieldID,$params) {

$data = ajaxContact::getCustomField($fieldID,$params);

if($data){

if($params->get('cf'.$fieldID) == 'multitext'){


return "\n".JText::_($params->get('cf'.$fieldID.'-label')).": ".(str_replace("%20",' ',$data));
// return "\n".JText::_($params->get('cf'.$fieldID.'-label')).":\n ".(str_replace("%20",' ',$data)); ORIGINAL
}else{


return "\n".JText::_($params->get('cf'.$fieldID.'-label')).": ".(str_replace("%20",' ',$data));
// return "\n".JText::_($params->get('cf'.$fieldID.'-label')).":\t ".(str_replace("%20",' ',$data)); ORIGINAL
}

}

}


But no, there are no more wraps after 15 lines in the contact-email. Is there a limitation of lines? How can i fix that?

THANK YOU VERY MUCH!

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

10 years 9 months ago #14624 by reneweik
Now i changed into


return JText::_($params->get('cf'.$fieldID.'-label')).": ".(str_replace("%20",' ',$data))."\n";


and

return JText::_($params->get('cf'.$fieldID.'-label')).": ".(str_replace("%20",' ',$data))."\n";


and it works!

Do you see any problems with that?

THANX

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

10 years 9 months ago #14627 by douglas
Dear reneweik,

Nope, I do not see any problem with the extra line break in your first post, however the lines in your second post look the same to me.

Best regards,

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

10 years 9 months ago - 10 years 9 months ago #14637 by reneweik
Thanks Douglas!

I put the "\n" at the end of the line...

bw

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