Kunena 6.4.8 Released

The Kunena team has announce the arrival of Kunena 6.4.8 [K 6.4.8] in stable which is now available for download as a native Joomla extension for J! 5.0.x/5.1.x/5.2.x/5.3.x/5.4.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 6.4
Important note: Go to the Kunena Dashboard after an upgrade so that the Kunena database tables are also updated. This is particularly necessary for major version jumps so that the table changes are adapted.

Question AUP Rank Image in Post

More
16 years 2 months ago - 16 years 2 months ago #32448 by Mortti
Replied by Mortti on topic Re:AUP Rank Image in Post

willing to wait if Kunena gets AUP rank image in post. thats makes the forum more desirable to users and more appalling.


Currently (Kunena 1.5.7 RC3) AUP rank image option is not integrated in upcoming Kunena.
Last edit: 16 years 2 months ago by Mortti.

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

More
15 years 2 months ago #67184 by PAUSIMS
Replied by PAUSIMS on topic Re: AUP Rank Image in Post
I use Kunena 1.6 and I've been searching for about half an hour now and I can't figure out how to show the AlphaUserPoints rank image under the avatar in each post. As I see, there's an option in the backend called "Habilitar Puntos en el Perfil" (Allow points in profile) but it doesn't show anything.

Thanks in advance :)

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

More
15 years 2 months ago #67509 by PAUSIMS
Replied by PAUSIMS on topic Re: AUP Rank Image in Post
Anyone? :( isn't it compatible the rank image with K1.6?

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

More
14 years 11 months ago - 14 years 11 months ago #82063 by samanoqo
Hi

This is a simple hack made by me! I hope you like it!
using Kunena 1.6.2 and AlphaUserPoints 1.5.13

WARNING: BACKUP FIRST AND USE IT AT YOUR OWN RISK!!!

find and open this file:

http:// www.yoursite.com /com_kunena/template/yourtemplate/view/profile.vertical.php

Find the line:
Code:
defined ( '_JEXEC' ) or die (); ?>

Right after the line insert this code
Code:
<?php // Call AUP Functions BEGIN ?> <?php $livesite = JURI::base(); $api_AUP = JPATH_SITE.DS.'components'.DS.'com_alphauserpoints'.DS.'helper.php'; if ( file_exists($api_AUP)) { require_once ($api_AUP); $userrankinfo = AlphaUserPointsHelper::getUserRank('', $this->profile->userid); } $rank = $userrankinfo->rank; ?> <?php // Call AUP Functions END ?>

This will call Alphauserpoints ranking functions.

Now find this line:
Code:
<?php echo $this->userrankimage ?>

Delete it (or comment it) and insert this code instead:
Code:
<?php if($rank !=NULL && $userrankinfo->image !=NULL) echo '<img src="'.$livesite.'components/com_alphauserpoints/assets/images/awards/large/'.$userrankinfo->image.'" alt="'.JText::_($userrankinfo->rank).'" />'; ?>

This will insert the image

Finally edit the style and the size of the image via your Kunena template css.


If you want to show the name of AlphUserPoints ranks instead of Kunena ranks (for example: silver member instead of Junior border) find this line:
Code:
<?php echo $this->escape($this->userranktitle) ?>

and change it to:
Code:
<?php echo $userrankinfo->rank; ?>

That's all ;)


Hope that someday the great Kunena team make this feature native... :)
Last edit: 14 years 11 months ago by samanoqo. Reason: fixing a bug ;-)

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

More
14 years 11 months ago #83312 by PAUSIMS
Thanks Samanoqo. There wasn't any file inside my template called this way so I figured out it was in the "default" template (my template only contains CSS and images).

I edited the profile.vertical.php (latest version of Kunena as of today, also latest version of AUP as of today) and my page looks broken (no css at all, no accents, etc.)

Can someone else please test the code or give us an alternative solution? Why this option was removed from previous Kunena releases? Any official way to do it?

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

Time to create page: 0.298 seconds