Hi
This is a 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:
defined ( '_JEXEC' ) or die (); ?>
Right after the line insert this 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:
<?php echo $this->userrankimage ?>
Delete it (or comment it) and insert this code instead:
<?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 fresh border) find this line:
<?php echo $this->escape($this->userranktitle) ?>
and change it to:
<?php echo $userrankinfo->rank; ?>
That's all
Hope that someday Kunena team make this feature native...