Hi Anand,
Please try to put this fixes:
1. edit components/com_community/views/inbox/view.html.php
2 put this code at line 330:
$originalBodyContent = $row->body;if ($row->body == '{}') {
//backward compatibility, save the old data into content parameter if needed
$newParam = new CParameter();
$newParam->set('content', $originalBodyContent);
$table = JTable::getInstance('Message','CTable');
$table->load($row->id);
$table->body = $newParam->toString();
$table->store();
$row->body = new CParameter($table->body);
}
Hi Albertus,
we have added the code but still we have problem & we have updated the login details please check.
thanks
anand
Albertus wrote: Hi Anand,
Please try to put this fixes:
1. edit components/com_community/views/inbox/view.html.php
2 put this code at line 330:3. and put this code at line 334:$originalBodyContent = $row->body;if ($row->body == '{}') { //backward compatibility, save the old data into content parameter if needed $newParam = new CParameter(); $newParam->set('content', $originalBodyContent); $table = JTable::getInstance('Message','CTable'); $table->load($row->id); $table->body = $newParam->toString(); $table->store(); $row->body = new CParameter($table->body); }
Let me know the result. If not works, please provide me Administrator & FTP access detail. By editing your first post at this topic, and put it at Site Info Form
Regards,
Albert
Hi Anand,
your override for inbox.message.com not uptodate. please detele it from /public_html/templates/jf_social/html/com_community
or replace it with new one from /public_html/components/com_community/templates/jf_social_js_32
or you can edit it:
replace
<?php echo $msg->body; ?>
with
<?php echo filter_var(htmlspecialchars_decode($content), FILTER_UNSAFE_RAW); ?>
Hi Albertus,
We have renamed inbox.message.php file and copied the inbox.message.php file from /public_html/components/com_community/templates/jf_social_js_32/. Still it's not working properly.
After click on Add Reply button it's showing message body with special characters.
If we reload the page, message body displaying properly.
Check the screenshots.
thanks,
Anand
Hi Anand,
after I check again, the correct override location must /public_html/templates/rt_ximenia/html/com_community/ because that location as default template. I already put the override file at there. please check it again about your issue.
Regards,
Albert
Hi Anand,
the problem with the JF Social template it self. they template not uptodate. please contact the template provider for official fix.
here I provide temporary fix for you.
/components/com_community/templates/jf_social_js_32/inbox.message.php line 34
From
<?php echo CStringHelper::autoLink(filter_var(htmlspecialchars_decode($msg->body), FILTER_UNSAFE_RAW)); ?><?php echo filter_var(htmlspecialchars_decode($content), FILTER_UNSAFE_RAW); ?>