Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • yakabout Friend
    #181225

    I have JA Comments running on The Wall templete, here: modernkayakfishing.com

    Here’s my problem. A user posts an embeded image, which I’m happy to display on the actual article where the comments are displayed below. However, the image also shows up in the latest comment module, which is but-ugly, and somewhat jarring to the eye. How to I fix this without removing the ability to add images altogether?

    Stork11 Friend
    #469348

    <em>@yakabout 341258 wrote:</em><blockquote>I have JA Comments running on The Wall templete, here: modernkayakfishing.com

    Here’s my problem. A user posts an embeded image, which I’m happy to display on the actual article where the comments are displayed below. However, the image also shows up in the latest comment module, which is but-ugly, and somewhat jarring to the eye. How to I fix this without removing the ability to add images altogether?</blockquote>
    Hello yakabout,

    Please copy “modulesmod_jaclatest_commentstmpldefault.php” file to “templates<your-template-name>htmlmod_jaclatest_commentsdefault.php” file, then replace “<?php echo $item->comment;?>” by below PHP code to remove all img tags in your comment:
    [PHP]echo preg_replace(“/<img[^>]+>/i”, “”, $item->comment);[/PHP]

    Hope this help.

    Regards.

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  Stork11 12 years, 1 month ago.

We moved to new unified forum. Please post all new support queries in our New Forum