Kunena 6.3.0 released

The Kunena team has announce the arrival of Kunena 6.3.0 [K 6.3.0] 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 and issues discovered during the last development stages of K 6.3

This category contains miscellaneous, uncategorised user contributions, (templates, modules, plugins and hacks) relating to older versions of Kunena that are no longer supported.

The topics in this category are for historical interest only. Owing to the structural changes that occurred in K 2.0, many of the ideas in these topics will not work with later versions and, for that reason, the topics are locked.

Question jAwards Plugin

More
11 years 2 months ago #1 by NicholasJohn16
I'd like to turn the old jAwards Hack into a full plugin that displays the users awards beneath their Avatar or beneath their signature, but I'm a bit of a noob at writing plugins. What events could I use to trigger these plugins? Thanks.

I'll be using Kunena 2.0.4, but I'm still on Joomla 1.5.

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

More
11 years 2 months ago #2 by sozzled
Replied by sozzled on topic jAwards Plugin
I don't know but this information may help: Kunena 2.0 plugins events . This is all I can find for you about Kunena "events". I hope the information is useful to you.
The following user(s) said Thank You: b00ker

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

More
11 years 2 months ago #3 by NicholasJohn16
Replied by NicholasJohn16 on topic jAwards Plugin
Thanks Sozzled. I know about those though, but none of them seem to be what I'm trying to do. The only one that may fit is onKunenaGetProfile, but I think that's more for the actual profile page then the profile in a post.

Are they any devs that could help me out?

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

More
11 years 2 months ago #4 by sozzled
Replied by sozzled on topic jAwards Plugin
As much as the team would love to drop everything and help you with this, the team is currently fully occupied with the building of K 3.0.0. It might be easier to engage a skilled PHP/Joomla specialist if this is urgent.

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

More
11 years 1 month ago #5 by sunny33days
Replied by sunny33days on topic jAwards Plugin
Hi Nicolas, did you ever figure this out? I was able to get this to work in Joomla 1.5, 1.7, and 2.5, and all in versions prior to Kunena 2.0, by adding the hack in components/com_kunena/template/default/view/profile.vertical.php

Put it in /components/com_kunena/template/default/view/profile.vertical.php on line 81 after:
<?php echo $this->profile->profileIcon('email'); ?>
</li>

And install this:

<?php

// 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;

?>



However something has changed in Kunena 2.0, which doesn't allow it to work for some reason. Any ideas what has changed?

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

More
11 years 1 month ago #6 by Smirnov
Replied by Smirnov on topic jAwards Plugin

NicholasJohn16 wrote: I'll be using Kunena 2.0.4, but I'm still on Joomla 1.5.


Solution for you

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

Time to create page: 0.511 seconds