Kunena 7.0.6 & Kunena 6.4.12 – Security Updates Released

The Kunena team has announce the arrival of Kunena 7.0.6 [K 7.0.6] 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.

The Kunena team is also pleased to announce the twelfth version of Kunena 6.4, a native Joomla extension for Joomla! 5.0, 5.1, 5.2, 5.3, 5.4 and 6.0.

Question Fatal error: Call to a member function BarGraphHoriz() on a non-object

More
17 years 6 days ago - 17 years 6 days ago #19055 by isal
can anyone help me ?

i try to add total earned points(AUP Component) under user info.
Code:
http://www.alphaplug.com/index.php/forum.html?func=view&catid=20&id=1259

i add code to /com_kunena/templates/default_ex/message.php line 219
Code:
<?php // Start Integration UserPoints // **************************** echo $myGraph2->BarGraphHoriz(); // End Integration UserPoints // **************************** ?>

and in /com_kunena/templates/default_ex/view.php line 657
Code:
// Start Integration UserPoints // **************************** //Get the max# of points for any one user $database->setQuery("SELECT max(points) from #__alpha_userpoints"); $maxPoints = $database->loadResult(); $database->setQuery("SELECT points from #__alpha_userpoints WHERE `userid`='".$fmessage->userid."'"); $numPoints = $database->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 // ****************************

that code work fine :

but, i get this error :
Code:
Fatal error: Call to a member function BarGraphHoriz() on a non-object in /home/isalkrenz/idbleach.com/components/com_kunena/template/default_ex/message.php on line 215

how to solved that error ?



you can see in here :
www.idbleach.com/forum.html?func=view&catid=17&id=3#4



hope you can help me :)
Last edit: 17 years 6 days ago by isal. Reason: picture upload

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

More
17 years 6 days ago - 17 years 6 days ago #19083 by xillibit
Try this :
isal wrote:


i add code to /com_kunena/templates/default_ex/message.php line 219

Code:
<?php // Start Integration UserPoints // **************************** $myGraph2 = new phpGraph; echo $myGraph2->BarGraphHoriz(); // End Integration UserPoints // **************************** ?>


I don't provide support by PM, because this can be useful for someone else.
Last edit: 17 years 6 days ago by xillibit.

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

More
17 years 6 days ago #19140 by isal
xillibit wrote:

Try this :
isal wrote:


i add code to /com_kunena/templates/default_ex/message.php line 219

Code:
<?php // Start Integration UserPoints // **************************** $myGraph2 = new phpGraph; echo $myGraph2->BarGraphHoriz(); // End Integration UserPoints // **************************** ?>


Not work.. :(
error in line 215. :silly:

what should I do ?

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

More
17 years 5 days ago #19181 by isal

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

More
17 years 5 days ago #19212 by Matias
People need to sleep and do to work, so please, do not expect to get answer in 6 hours.

Could you provide contents of your new line 215 (maybe 214-215) and error message as it would make solving your problem easier.

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

More
17 years 5 days ago #19235 by isal
Matias wrote:

People need to sleep and do to work, so please, do not expect to get answer in 6 hours.

Could you provide contents of your new line 215 (maybe 214-215) and error message as it would make solving your problem easier.

i was fix that. :)

thanks for you response

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

Time to create page: 0.272 seconds