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

This category contains miscellaneous, uncategorised third-party extensions (e.g. JomSocial, Community Builder, etc.) relating to older versions of Kunena that are no longer supported.

This category may also contain a few topics relating to K 1.6 that may have been moved here possibly by mistake.

The topics in this category are for historical interest only. Owing to the structural differences between K 1.6 and K 1.7, the ideas in these topics may not work with later versions and, for that reason, the topics are locked.

Important JomSocial activity link alway to first page

More
15 years 8 months ago #59683 by pawa
my solution is a small change in administrator/components/com_kunena/libraries/integration/jomsocial/activity.php
Code:
Index: trunk/administrator/components/com_kunena/libraries/integration/jomsocial/activity.php =================================================================== --- trunk/administrator/components/com_kunena/libraries/integration/jomsocial/activity.php (revision 266) +++ trunk/administrator/components/com_kunena/libraries/integration/jomsocial/activity.php (revision 267) @@ -68,11 +68,17 @@ // Check for permisions of the current category - activity only if public or registered if (! empty ( $message->parent ) && ($message->parent->pub_access == 0 || $message->parent->pub_access == - 1)) { //activity stream - reply post require_once KPATH_SITE.'/lib/kunena.link.class.php'; require_once KPATH_SITE.'/lib/kunena.smile.class.php'; - $JSPostLink = CKunenaLink::GetThreadPageURL ( 'view', $message->get ( 'catid' ), $message->get ( 'thread' ), 1 ); + $access = KunenaFactory::getAccessControl(); + $hold = $access->getAllowedHold($this->myprofile, $this->catid); + $query = sprintf('SELECT COUNT(DISTINCT id) FROM #__kunena_messages WHERE hold IN (%s) AND thread=%u', + $hold, $message->get('thread')); + $message->_db->setQuery ( $query ); + $count = $message->_db->loadResult(); + $JSPostLink = CKunenaLink::GetThreadPageURL ( 'view', $message->get('catid'), $message->get('thread'), ceil($count / $this->_config->messages_per_page), $this->_config->messages_per_page); $kunena_emoticons = smile::getEmoticons ( 1 ); $content = $message->get ( 'message' ); $content = smile::smileReplace ( $content, 0, $this->_config->disemoticons, $kunena_emoticons ); $content = nl2br ( $content );

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

More
15 years 8 months ago #59685 by pawa
why double br's in code block?:)

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

More
15 years 8 months ago #59691 by WinuxFF
As im guessing this modification wont go into the core for who know what reason, im bookmarking this thread.

Thank you @pawa

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

More
15 years 8 months ago #59702 by Cerberus

WinuxFF wrote: As im guessing this modification wont go into the core for who know what reason, im bookmarking this thread.

Thank you @pawa


would help if the poster explained exactly what it did and what changes he actualy made...

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

More
15 years 8 months ago #59716 by WinuxFF
Yes it is a little confusing and messy :)

But its quite simple really
Comment out the brown colored code
After that, add green colored code :)

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

More
15 years 8 months ago - 15 years 8 months ago #59719 by Cerberus

WinuxFF wrote: Yes it is a little confusing and messy :)

But its quite simple really
Comment out the brown colored code
After that, add green colored code :)


rofl ok so i tried not to be blunt with my last post guess that failed then


let me try again " what the hell is that code supposed to DO? and how does the new code change what it does ? "

im guessing when you click on ;ink in the activity stream it takes you to start of that stream and not the exact post ??? and the new code fixes that ??????
Last edit: 15 years 8 months ago by Cerberus.

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

Time to create page: 0.246 seconds