Kunena 6.4.8 Released

The Kunena team has announce the arrival of Kunena 6.4.8 [K 6.4.8] in stable which is now available for download as a native Joomla extension for J! 5.0.x/5.1.x/5.2.x/5.3.x/5.4.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 6.4
Important note: Go to the Kunena Dashboard after an upgrade so that the Kunena database tables are also updated. This is particularly necessary for major version jumps so that the table changes are adapted.

Question Kunena Integration with AUP + Jomsocial at the same time

More
15 years 5 days ago #81363 by grandslamjmh
well i guess ill remove the acl i have installed and try out the artof users one.

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

More
14 years 11 months ago - 14 years 4 months ago #83910 by clairestrife
This is a litte hack which made by me, only showing AUP on kunena user profile with jomsocial integration on.

Log on to your back-end -> Go to kunena configuration -> Integration -> set Activity Notifications to Jomsocial

open profile.vertical.php on your website root -> components -> com_kunena -> template -> default -> view.

find code
Code:
<?php defined ( '_JEXEC' ) or die (); if (!isset($this->showUnusedSocial)) $this->showUnusedSocial = false; ?>

bellow this code insert this code
Code:
<?php $userid = intval($this->profile->userid); $query = "SELECT points FROM #__alpha_userpoints WHERE userid = " . $userid ; $db =& JFactory::getDBO(); $db->setQuery( $query ); $myPoints = $db->loadObject(); ?>

so it will become like this
Code:
<?php defined ( '_JEXEC' ) or die (); if (!isset($this->showUnusedSocial)) $this->showUnusedSocial = false; ?> <?php $userid = intval($this->profile->userid); $query = "SELECT points FROM jos_alpha_userpoints WHERE userid = " . $userid ; $db =& JFactory::getDBO(); $db->setQuery( $query ); $myPoints = $db->loadObject(); ?>

then find this code
Code:
<?php if ($this->userpoints) : ?> <span class="kpost-userposts"><?php echo JText::_('COM_KUNENA_AUP_POINTS') . intval($this->userpoints); ?></span> <?php endif ?>

and replace it with this
Code:
<li class="kpost-userposts"> <?php echo JText::_('COM_KUNENA_AUP_POINTS') ?> <?php echo $myPoints->points; ?></li>

This method will show activity stream and AUP on kunena profile.;)
Last edit: 14 years 4 months ago by clairestrife.
The following user(s) said Thank You: AbleGamers

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

More
14 years 11 months ago #85793 by AbleGamers
If I read the "hack" correctly you will show the AUP points in the forum, and that is cool, but will it award the points in AUP for creating and reply'ing to a post?

I do not see where it would do that.

I want to use JomSocial Activity stream because it is nicer, but I want the points in AUP for forum use.

Thanks!

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

More
14 years 11 months ago - 14 years 11 months ago #86203 by clairestrife
Ups, my bad. Sorry. I still can't find that method. I will try to find the method or please wait until someone hack it completely .... :)
Last edit: 14 years 11 months ago by clairestrife.
The following user(s) said Thank You: AbleGamers

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

More
14 years 11 months ago #86224 by AbleGamers
I think I found the method, it is in administrator/components/com_kunena/libraries/integration/

but from there I am lost. I suspect you would need to add the AUP call to the JomSocial call as well.

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

More
14 years 11 months ago #86228 by clairestrife
yes, i think it's possible to merged both activity.php between Jomsocial and AUP.
I will do some more experiment. :)

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

Time to create page: 0.340 seconds