Kunena 7.0.4 Released
The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 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
Important Referrals?
Also, do you know the code to enable points being shown in the posts? (Kunena has a setting to enable it in the profile, but not the posts themselves...)
Any help would be truly appreciated!!!
If you don't see the points in post view then the reason is: you use some old Kunena Team template, your own custom template or some another author template.
Since Kunena 1.5.7 the new AlphaUserPoints integration code is included in Kunena default_ex template and it's work very fine. It's show points in post view and profile... and also AUP API code is there so you can use AUP pre installed rules for Kunena (give points when user start topic and user answer to topic).
So I'm pretty sure that you don't use default_ex template (recommended) and template (your own custom or some another author) what you use is not up to date!
Mortti
btw... there is little FAQ what I wrote one day about basic integration when use only AUP profile... How do I make a basic AlphaUserPoints and Kunena integration?
Please Log in or Create an account to join the conversation.
- joomlamanisdaman
-
Topic Author
- Offline
- New Member
-
- Posts: 12
- Thank you received: 0
I was able to find the necessary code after examining several different documents. For those of you looking to add it in your own template, do the following:
In the message.php file, find this code:
Or something similar to that. Then, add this part immediately after it:
After that, in the view.php file, add:
Before something like this:
Please Log in or Create an account to join the conversation.
joomlamanisdaman wrote: Thanks Mortti!
I was able to find the necessary code after examining several different documents. For those of you looking to add it in your own template, do the following:
In the message.php file, find this code:Code:<?php if (isset($myGraph)) { $myGraph->BarGraphHoriz(); } ?>
Or something similar to that. Then, add this part immediately after it:
Code:<?php // Start Integration UserPoints // **************************** $myGraph2->BarGraphHoriz(); // End Integration UserPoints // **************************** ?>
After that, in the view.php file, add:
Code:// Start Integration UserPoints // **************************** //Get the max# of points for any one user $kunena_db->setQuery("SELECT max(points) from #__alpha_userpoints"); $maxPoints = $kunena_db->loadResult(); $kunena_db->setQuery("SELECT points from #__alpha_userpoints WHERE `userid`='".$fmessage->userid."'"); $numPoints = $kunena_db->loadResult(); $myGraph2 = new phpGraph; $myGraph2->AddValue("Points:", $numPoints); $myGraph2->SetRowSortMode(0); $myGraph2->SetBarImg(KUNENA_URLGRAPHPATH . "col" . $fbConfig->statscolor . "m.png"); $myGraph2->SetBarImg2(KUNENA_URLEMOTIONSPATH . "graph.gif"); $myGraph2->SetMaxVal($maxPoints); $myGraph2->SetShowCountsMode(2); $myGraph2->SetBarWidth(4); //height of the bar $myGraph2->SetBorderColor("#333333"); $myGraph2->SetBarBorderWidth(0); $myGraph2->SetGraphWidth(64); //should match column width in the <TD> above -5 pixels $useGraph = 1; // End Integration UserPoints // ****************************
Before something like this:
Code://karma points and buttons if ($fbConfig->showkarma && $userinfo->userid != '0') { $karmaPoints = $userinfo->karma; $karmaPoints = (int)$karmaPoints; $msg_karma = "<strong>" . _KARMA . ":</strong> $karmaPoints"; if ($kunena_my->id != '0' && $kunena_my->id != $userinfo->userid) { $msg_karmaminus = CKunenaLink::GetKarmaLink('decrease', $catid, $fmessage->id, $userinfo->userid, '<img src="'.(isset($fbIcons['karmaminus'])?(KUNENA_URLICONSPATH . $fbIcons['karmaminus']):(KUNENA_URLEMOTIONSPATH . "karmaminus.gif")).'" alt="Karma-" border="0" title="' . _KARMA_SMITE . '" align="middle" />' ); $msg_karmaplus = CKunenaLink::GetKarmaLink('increase', $catid, $fmessage->id, $userinfo->userid, '<img src="'.(isset($fbIcons['karmaplus'])?(KUNENA_URLICONSPATH . $fbIcons['karmaplus']):(KUNENA_URLEMOTIONSPATH . "karmaplus.gif")).'" alt="Karma+" border="0" title="' . _KARMA_APPLAUD . '" align="middle" />' ); } }
i changed fils but dont show points under avatar
uffff sory its work in profile
Please Log in or Create an account to join the conversation.