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: