×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: How to Truncate Comment Intro In JS Activity

How to Truncate Comment Intro In JS Activity 13 years 3 months ago #13735

  • Hasan Sever
  • Hasan Sever's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Good Morning Daniel,

I noticed a serious problem in JS Activity Stream; the entire comment is posted in JS Wall without any truncation..This is not good..In our site, we write a whole article-like comments, without any number of words limitation..So, these quite long comments are reflected in JS Wall in their entirety creating very ugly look...This was a general problem in early years of JS, Kunena, MyBlog etc were all posting the entire text..But in time, they all fixed issue..I guess CompoJoom should do the same..

Thanks

How to Truncate Comment Intro In JS Activity 13 years 3 months ago #13751

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Open plugins/compojoomcomment/jomsocial/jomSocial.php
on line 169 you have
$act->content = $content;
change it to
$act->content = mb_substr($content,0,120);

This should do the trick for the new comments.
Daniel
  • Page:
  • 1
Time to create page: 0.105 seconds