- Posts: 17
- Thank you received: 1
Kunena 6.3.7 Released
The Kunena team has announce the arrival of Kunena 6.3.7 [K 6.3.7] in stable which is now available for download as a native Joomla extension for J! 4.4.x/5.0.x/5.1.x/5.2.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
Note: Please go to the Kunena Dashboard after an upgrade so that the Kunena database tables are also updated.
Question Kunena and jAwards Integration
My environment is Joomla 1.5.23, Kunena 1.6.4 and jAwards 1.1. I would appreciate an answer to he question: has anyone successfully integrated jAwards 1.1 into Kunena 1.6.4? If so, I would appreciate a reply with how, or a link to where this is detailed. Thanks in advance!
Please Log in or Create an account to join the conversation.
I never heard something about jawards integration into Kunena, but the jawards components hasn't been updated since a bit more than an year, so...
I don't provide support by PM, because this can be useful for someone else.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Put it in /components/com_kunena/template/default/view/profile.vertical.php on line 81 after:
<?php echo $this->profile->profileIcon('email'); ?>
</li>
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I don't provide support by PM, because this can be useful for someone else.
Please Log in or Create an account to join the conversation.
- sunny33days
- Offline
- Senior Member
- Posts: 98
- Thank you received: 0
,
Please Log in or Create an account to join the conversation.
- sunny33days
- Offline
- Senior Member
- Posts: 98
- Thank you received: 0
Perhaps a non-space break or something? Any idea on how or where to place a non space break in this code (or any way to place them on a new line, instead of side-by side). Basically I just need to display multiple awards vertically instead of horizontally under their avatars.. Anyone know how to do this in the code:
// Hack for jAwards integration, displays some medals of the user for Kunena 1.6
$number_medals = 10; // number of medals to show
$query = "SELECT b.image, b.name"
. "\n FROM #__jawards_awards AS a"
. "\n LEFT JOIN #__jawards_medals AS b ON b.id = a.award"
. "\n WHERE a.userid=". $this->profile->userid
. "\n ORDER BY RAND() LIMIT ".$number_medals;
$database = &JFactory::getDbo();
$database->setQuery( $query );
$medals = $database->loadObjectList();
// URL links to the jAwards-Tab for Community Builder which displays all
// medals of the user - change to another URL of needed
$awards_url=JRoute::_('index.php?option=com_comprofiler&task=userProfile&user='.$this->profile->userid."&tab=getawardstab");
// CSS-class "ja_medals" allows individual styling of medal images and
// container. "nobr" keeps the medals from breaking apart, display them
// in one row.
$msg_jawards = "<div class=\"ja_medals\"><nobr>";
foreach ($medals as $med){
$msg_jawards.= "<a href=\"$awards_url\" title=\"$med->name\">"
. "<img style='border:0px;padding:0px;' src=\"".KUNENA_JLIVEURL."/images/medals/".$med->image ."\" alt=\"".$med->name."\" />"
. "</a>";
}
$msg_jawards.="</nobr></div>";
unset($medals);
echo $msg_jawards;
?>
<?php endif ?>
Please Log in or Create an account to join the conversation.