View Full Version : Read Message Error
David Mundle
October 16, 2018, 11:49 AM
Hello Guys
In admin panel under read message why is it when you view the message to read it that it's showing in html format, how do you fix this or change it to read as normal text?
Thanks
David
Rudi
October 17, 2018, 03:13 AM
Hello,
Could you provide some screenshot of the problem ?
or create a ticket regrading this issue
David Mundle
October 17, 2018, 07:56 AM
Hi Rudi
Please see screenshot of the issue you can se that when you view messages it's in html format.2945
Thanks
David
Rudi
October 17, 2018, 09:48 AM
We've fixed it on your end and this fix will be applied in the next update
now you should send a new message and check
the fix is the following:
go to ftp > includes > controllers > contact_us.inc.php
after:
$rlHook -> load('contactsInsert');
insert:
$rlActions->rlAllowHTML = true;
then go to admin > controllers > tpl > contacts.tpl
find:
{$contact.Message|nl2br}
and replace it with:
{$contact.Message}
David Mundle
October 17, 2018, 10:01 AM
Hi Rudi
Great work yet again i sent another message as a test and it's working fine as it's now reading without html format...
Regards
David
Bahram Soltanirad
October 17, 2018, 12:04 PM
Rudi,
I think, we just need to change
{$contact.Message|nl2br} to
{$contact.Message|html_entity_decode}
No need to add
$rlActions->rlAllowHTML = true;
Rudi
October 17, 2018, 01:13 PM
Bahram,
of course you can use different quick solutions
but it's more important to determine the cause than the consequence and fix it
Powered by vBulletin® Version 4.1.9 Copyright © 2023 vBulletin Solutions, Inc. All rights reserved.