Solved How to extend the length of "last post" on Kunena index pages

  • sozzled
  • sozzled's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
More
5 years 6 months ago - 5 years 6 months ago #13 by sozzled
The original question was posted at the Kunena forum website: www.kunena.org/forum/custom-work-offerin...in-kunena-front-page .

The question relates to the number of characters displayed on the category index page. Here is a screenshot to illustrate the problem:



The last post subject is truncated to the first 20 characters. This value is hard-coded in Kunena but you can change the source by editing the file ../components/com_kunena/views/category/view.html.php at line 147:
if (!$content) $content = KunenaHtmlParser::parseText($category->getLastTopic()->subject, 20);

Change the "20" you see in this line to some other value. Remember, too, that you will need to make this change whenever you update Kunena in future.
Attachments:
Last edit: 5 years 6 months ago by sozzled.

Please Log in or Create an account to join the conversation.

  • sozzled
  • sozzled's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
More
4 years 11 months ago - 4 years 11 months ago #39 by sozzled
Please login to view the answers
Last edit: 4 years 11 months ago by sozzled.

Please Log in or Create an account to join the conversation.

Time to create page: 0.292 seconds