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
Question AUP Rank Image in Post
16 years 5 months ago - 16 years 5 months ago #32448
by Mortti
Currently (Kunena 1.5.7 RC3) AUP rank image option is not integrated in upcoming Kunena.
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 5 months ago by Mortti.
Please Log in or Create an account to join the conversation.
15 years 6 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
Thanks in advance
Please Log in or Create an account to join the conversation.
15 years 6 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.
15 years 3 months ago - 15 years 3 months ago #82063
by samanoqo
Replied by samanoqo on topic Solution: How to show AlphaUserPoints rank image in kunena posts
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:
Right after the line insert this code
This will call Alphauserpoints ranking functions.
Now find this line:
Delete it (or comment it) and insert this code instead:
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:
and change it to:
That's all
Hope that someday the great Kunena team make this feature native...
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: 15 years 3 months ago by samanoqo. Reason: fixing a bug ;-)
Please Log in or Create an account to join the conversation.
15 years 2 months ago #83312
by PAUSIMS
Replied by PAUSIMS on topic Re: Solution: How to show AlphaUserPoints rank image in kunena posts
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?
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.280 seconds