- Posts: 24
- Thank you received: 0
Kunena 7.0.2 Released
The Kunena team has announce the arrival of Kunena 7.0.2 [K 7.0.2] in stable which is now available for download as a native Joomla extension for J! 5.3.x/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
Question Jawards
17 years 1 week ago #7951
by sanderson
Yes i know there is a post about this..
I have just upgraded my fireboard but i can not integrate the Jawards hack to display under the avatar, any help?
I need to display 6 random awards under the avatar, if someone can let me know how to auto assign medals depending on amount of posts etc that would be good!
Thank you!
P.S it doesn't have to be Jawards if you can point me to something better.
I have just upgraded my fireboard but i can not integrate the Jawards hack to display under the avatar, any help?
I need to display 6 random awards under the avatar, if someone can let me know how to auto assign medals depending on amount of posts etc that would be good!
Thank you!
P.S it doesn't have to be Jawards if you can point me to something better.
Please Log in or Create an account to join the conversation.
17 years 1 week ago #7974
by sanderson
Replied by sanderson on topic Re:Jawards
No body?
Please Log in or Create an account to join the conversation.
17 years 1 week ago #7978
by squale
Replied by squale on topic Re:Jawards
here is the code i've inserted in message.php, working fine in my kunena forum 
Code:
<?php
// Hack for jAwards integration, displays some medals of the user
$number_medals = 3; // 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=". $fmessage->userid
. "\n ORDER BY RAND() LIMIT ".$number_medals;
$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=sefRelToAbs('index.php?option=com_comprofiler&task=userProfile&user='.$fmessage->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 $medal){
$msg_jawards.= "<a href=\"$awards_url\" title=\"$medal->name (Click to see more)\">"
. "<img style='border:0px;padding:0px;' src=\"".KUNENA_JLIVEURL."/images/medals/".$medal->image ."\" alt=\"".$medal->name."\" />"
. "</a>";
}
$msg_jawards.="</nobr></div>";
unset($medals);
echo $msg_jawards;
?>
Please Log in or Create an account to join the conversation.
17 years 1 week ago #7979
by sanderson
Replied by sanderson on topic Re:Jawards
FANTASTIC! that one works.. :lol: thank you for your help!
Does anyone know how to display the badges in the Kunena profile rather than the community builder? or how to intergrate with something like jomsocial??
Thank you so much!
Does anyone know how to display the badges in the Kunena profile rather than the community builder? or how to intergrate with something like jomsocial??
Thank you so much!
Please Log in or Create an account to join the conversation.
16 years 11 months ago #9512
by cgicon
Replied by cgicon on topic Re:Jawards
THANK YOU!!!!!!!!!!
Please Log in or Create an account to join the conversation.
16 years 11 months ago #10250
by sanderson
Replied by sanderson on topic Re:Jawards
Why won't this work in the userinfos.php?
Please Log in or Create an account to join the conversation.
Time to create page: 0.263 seconds