This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

Preview Comment
#1

Hello and thank you for the great component. I am using it to zen cart and everything works perfect.
The only problem is that i used to have a comment preview at Manage --> Comments page at column Comment.

Now my replies and customer comments has no preview. So i have to edit to see what the comment is about. I am sending a screenshot to understand my point

[Image: commentics.png]  

Thank you in advance for your time
Reply
#2

Hi,

In /upload/admin/includes/pages/manage_comments.php, can you replace the following ..

PHP Code:
<?php
$comment1
= $comment["comment"];
$comment1 = str_ireplace("<br />", " ", $comment1);
$comment1 = str_ireplace("<p></p>", " ", $comment1);
$comment1 = strip_tags($comment1);
$comment1 = cmtx_decode($comment1);
$comment1 = substr($comment1, 0, 75);
$comment1 = htmlspecialchars($comment1, ENT_NOQUOTES, 'UTF-8');
?>

.. with this ..

PHP Code:
<?php
echo '<pre>';
$comment1 = $comment["comment"];
var_dump($comment1);
$comment1 = str_ireplace("<br />", " ", $comment1);
var_dump($comment1);
$comment1 = str_ireplace("<p></p>", " ", $comment1);
var_dump($comment1);
$comment1 = strip_tags($comment1);
var_dump($comment1);
$comment1 = cmtx_decode($comment1);
var_dump($comment1);
$comment1 = substr($comment1, 0, 75);
var_dump($comment1);
$comment1 = htmlspecialchars($comment1, ENT_NOQUOTES, 'UTF-8');
var_dump($comment1);
echo
'</pre>';
?>

.. and post the output here.

Have you completed the interview?
Reply
#3

Thank you for the fast answer.

I just tested and i get a page with all the messages in full layout and in the bottom the table that i have already posted.
Reply
#4

Okay. Can you view the source of the page where the comment preview is meant to show and let me know what's there.

Have you completed the interview?
Reply
#5

I tried to find out what changed in the between to my zen cart code and i saw that i had snow script enabled. I disabled the snow effect module by erasing the snow script and tested. Everything worked normally.

Thank you once again for the fast support and the great component.
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by Steven
13-Aug-2020, 12:36 PM
Last Post by Steven
01-Jan-2016, 12:26 AM
Last Post by Tom C.
15-Apr-2013, 05:41 AM
Last Post by Steven
08-Feb-2013, 08:41 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)