Kunena 7.0.6 & Kunena 6.4.12 – Security Updates Released

The Kunena team has announce the arrival of Kunena 7.0.6 [K 7.0.6] 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.

The Kunena team is also pleased to announce the twelfth version of Kunena 6.4, a native Joomla extension for Joomla! 5.0, 5.1, 5.2, 5.3, 5.4 and 6.0.

Question I've made some changes to the activity stream

More
15 years 1 month ago - 15 years 1 month ago #94043 by leletto
Hi,

I've modified the way kunena adds messages to stream by changing some line of code on the file:

/administrator/components/com_kunena/libraries/integration/jomsocial/activity.php

Changed this part of the code:


Code:
// limit activity stream output if limit is set. -1 = no text added if ($this->_config->activity_limit > 0){ $content = JString::substr($content, 0, $this->_config->activity_limit); } $content = smile::smileReplace ( $content, 0, $this->_config->disemoticons, $kunena_emoticons ); $content = nl2br ( $content ); // Add readmore link $content .= '<br /><a href="'. CKunenaLink::GetMessageURL($message->get ( 'id' )). '" class="small profile-newsfeed-item-action">'.JText::sprintf('Read more...').'</a>';

to this one:
Code:
// limit activity stream output if limit is set. -1 = no text added if ($this->_config->activity_limit > 0){ $content = JString::substr($content, 0, $this->_config->activity_limit); } if ($this->_config->activity_limit =-1){ $content = ''; } $content = smile::smileReplace ( $content, 0, $this->_config->disemoticons, $kunena_emoticons ); $content = nl2br ( $content ); // Add readmore link if ($this->_config->activity_limit >-1){ $content .= '<br /><a href="'. CKunenaLink::GetMessageURL($message->get ( 'id' )). '" class="small profile-newsfeed-item-action">'.JText::sprintf('Read more...').'</a>'; }

You have to change this code in both OnAfterPost and OnAfterReply functions.


Now if I set "limit activity streams" to -1 in the integration settings in kunena, the activity stream post only the TITLE of the activity. That's beacuse I want to keep the forum posts separated from the activity streams.

P.S.: oooh...i'm sorry for my really poor english :dry:
Last edit: 15 years 1 month ago by leletto.
The following user(s) said Thank You: mole999

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

More
15 years 1 month ago #94047 by greg2

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

More
15 years 1 month ago - 15 years 1 month ago #94141 by leletto
I've added another little mod inside the OnAfterReply function, so when you click the link of a reply it will take you to the actual messages and not to the top of the topic:

Change this line of code inside OnAfterReply function:
Code:
if ($this->_config->activity_limit =-1){ $content = ''; }
Code:
if ($this->_config->activity_limit =-1){ $content = ''; $JSPostLink = CKunenaLink::GetMessageURL($message->get ( 'id' )); }
Last edit: 15 years 1 month ago by leletto.

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

Time to create page: 0.231 seconds