Kunena 6.3.1 released

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

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.

Question enable jomsocial user points, disable activity stream

More
13 years 7 months ago #1 by badabing
I want to disable the forum activity in the jomsocial activity stream but still have the user points enabled.

Tried to find the file that is posting the forum activity to the activity stream with no luck, wondering if anybody can point me in the right direction.

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

More
13 years 7 months ago #2 by badabing
Fixed.

administrator\components\com_kunena\libraries\integration\jomsocial edit activity.php so it looks like this.
Code:
<?php /** * @version $Id: activity.php 3365 2010-08-31 10:20:27Z mahagr $ * Kunena Component * @package Kunena * * @Copyright (C) 2008 - 2010 Kunena Team All rights reserved * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL * @link http://www.kunena.com * **/ // // Dont allow direct linking defined ( '_JEXEC' ) or die ( '' ); class KunenaActivityJomSocial extends KunenaActivity { protected $integration = null; public function __construct() { $this->integration = KunenaIntegration::getInstance ( 'jomsocial' ); if (! $this->integration || ! $this->integration->isLoaded ()) return; $this->priority = 40; $this->_config = KunenaFactory::getConfig (); } public function onAfterPost($message) { CFactory::load ( 'libraries', 'userpoints' ); CUserPoints::assignPoint ( 'com_kunena.thread.new' ); // Check for permisions of the current category - activity only if public or registered } public function onAfterReply($message) { CFactory::load ( 'libraries', 'userpoints' ); CUserPoints::assignPoint ( 'com_kunena.thread.reply' ); // Check for permisions of the current category - activity only if public or registered } }

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

More
13 years 1 week ago #3 by perryworld
Thanks Badabing,

I'll give it a try and let you know if it works for me.

Cheers
Richard

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

More
13 years 1 week ago #4 by perryworld
Hi Badabing,

I replaced the code with your code but the points were not added in the JomSocial profile.

Any ideas why it didn't work.

Cheers
Richard

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

Time to create page: 0.484 seconds