Kunena 7.0.4 Released

The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0

Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.

Question Length of posts

More
16 years 3 months ago #38267 by christianchat
We have just installed Kunena. Having a few problems with over-excited users posting messages into the forum that are REALLY long... how do we limit the length of a forum message please? I am concerned this will also slow our forum down if we let them post singles messages that are pages and pages long.

Thanks

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

More
16 years 3 months ago #38284 by xillibit
Replied by xillibit on topic Re:Length of posts
Hello,

It's possible with a bit of hacking, so open the file components\com_kunena\template\default\post.php and at line 67 add this part of code, this works when you edit/post a new thread, reply to a topic :
Code:
$nbrWordMax = '200'; //Define the maximum words allowed in the post $NewString = ''; $t_newString = explode(" ",$message); foreach ($t_newString as $key => $word) { if ($key < $nbrWordMax) { $Newmessage .= $word.' '; } } $message = $Newmessage;

I don't provide support by PM, because this can be useful for someone else.

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

Time to create page: 0.223 seconds