- Posts: 23
- Thank you received: 1
Kunena 6.0.9.1 Released
The Kunena team has announce the arrival of Kunena 6.0.9.1 [K 6.0.9.1] which is now available for download as a native Joomla extension for J! 4.2.x. This version addresses most of the issues that were discovered in K 6.0 and issues discovered during the development stages of K 6.0.
Please note: The Kunena project team takes NO responsibility for maintaining nor supporting anything in this category.
Solved How to display avatar in full.php
6 years 4 months ago #1
by polki
How to display avatar in full.php was created by polki
Hey guys !
I'd like to know how to call user avatar + name + rank in the page
com_kunena/template/crypsis/layouts/message/edit/full.php
I know where to add it, and how to style it to fit where I want, but I do absolutely not know how to call it.
I tried to search for "Kunena call avatar" on Google, found this " forum.joomla.org/viewtopic.php?t=728350 " but it doesn't seem to work since I think, it's an old post and Kunena as been updated.
What I'm trying to do is to display user avatar + name + actual rank next to the "Quick reply" at the bottom of a topic page ( I have the quick reply set to "Always visible" )
Thanks in advance for your help : )
I'd like to know how to call user avatar + name + rank in the page
com_kunena/template/crypsis/layouts/message/edit/full.php
I know where to add it, and how to style it to fit where I want, but I do absolutely not know how to call it.
I tried to search for "Kunena call avatar" on Google, found this " forum.joomla.org/viewtopic.php?t=728350 " but it doesn't seem to work since I think, it's an old post and Kunena as been updated.
What I'm trying to do is to display user avatar + name + actual rank next to the "Quick reply" at the bottom of a topic page ( I have the quick reply set to "Always visible" )
Thanks in advance for your help : )
Please Log in or Create an account to join the conversation.
6 years 4 months ago - 6 years 4 months ago #2
by 810
Replied by 810 on topic How to display avatar in full.php
Code:
<?php
$template = KunenaFactory::getTemplate();
$author2 = $message->getTopic()->getFirstPostAuthor();
$avatar = $author2->getAvatarImage($template->params->get('avatarType'), 'list');?>
<?php echo $author2->name . '<br /> ' . $author2->getLink($avatar) . '<br /> ' . $author2->getRank(0, 'image'); ?>
Last edit: 6 years 4 months ago by 810.
Please Log in or Create an account to join the conversation.
6 years 4 months ago #3
by polki
Replied by polki on topic How to display avatar in full.php
Hey 810.
Thanks for your answer
This is what I went for, after editing your code ( and it works great ) :
Just one thing : I can't manage to make the avatar the size I want ( or a preset avatar size in template parameters ).
It's very small.
How can I change avatar's size ? ( or display at the profilebox size )
Thanks in advance !
Thanks for your answer

This is what I went for, after editing your code ( and it works great ) :
Code:
<span class="userquickreply">
<li><?php echo $me->getLink($avatar, 'quickreplyavatar');?></li>
<li><strong><?php echo $me->getLink(null, null, 'canonical', '', null, $this->category_id); ?></strong></li>
<li><?php echo $me->getRank(0, 'title');?></li>
</span>
Just one thing : I can't manage to make the avatar the size I want ( or a preset avatar size in template parameters ).
It's very small.
How can I change avatar's size ? ( or display at the profilebox size )
Thanks in advance !
Please Log in or Create an account to join the conversation.
6 years 4 months ago #4
by 810
Replied by 810 on topic How to display avatar in full.php
if you look on the crypsis settings, then go to avatars, there you will see the sizes.
We take now list, so if you want to have bigger, then change the code to welcome or a other big size name.
We take now list, so if you want to have bigger, then change the code to welcome or a other big size name.
Please Log in or Create an account to join the conversation.
6 years 4 months ago #5
by polki
Replied by polki on topic How to display avatar in full.php
Worked ! thanks a lot 
Solved !

Solved !

Please Log in or Create an account to join the conversation.
Time to create page: 0.278 seconds