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?

More
16 years 3 weeks ago - 16 years 3 weeks ago #44789 by Mortti
Replied by Mortti on topic Re:Referrals?
joomlamanisdaman wrote:

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?
Last edit: 16 years 3 weeks ago by Mortti.

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

More
16 years 3 weeks ago - 16 years 3 weeks ago #44826 by joomlamanisdaman
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" />' ); } }
Last edit: 16 years 3 weeks ago by sozzled. Reason: Changed subject to improve search relevance

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

More
15 years 9 months ago - 15 years 9 months ago #53822 by ballack
Moderator's edit: long quoted passage hidden to improve readability.
Warning: Spoiler!

i changed fils but dont show points under avatar :((( why?


uffff sory its work in profile
Last edit: 15 years 9 months ago by sozzled.

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

Time to create page: 0.252 seconds