×
Kunena 5.2.4 and Blue eagle 1.6.4 released (04 Apr 2021)

The Kunena team has announce the arrival of Kunena 5.2.4 [K 5.2.4] which is now available for download as a native Joomla extension for J! 3.9.x. This version addresses most of the issues that were discovered in K 5.2 and issues discovered during the development stages of K 5.2.4

REQUIREMENTS
Blue Eagle 1.6.x requires Kunena 5.2.x to work with

Question Get Avatar Link API

  • Trony
  • Trony's Avatar Topic Author
  • Offline
  • Junior Member
  • Music and Electronic Devices Designer.
More
5 years 5 days ago #1 by Trony
Get Avatar Link API was created by Trony
As title,
how get Avatar link in the default_profile_horizontal.php ?!?

I tried with:
<?php echo $this->profile->getAvatarURL ?>
 
<?php echo $this->getAvatarImage; ?>
 
<?php echo $this->profile->getAvatarImage; ?>

But don't work.

If I use
<?php echo $this->profile->getLink( $avatar ); ?>
it give ALL tags but i need only Avatar URL.

Thanks in advance for your Hints.

Music and Electronic Devices Designer. Drum and Bass Addict. Creative Mind as Lifestyle. Cat in past Life. Soccer, Ice Hockey and Snowboard Lover.

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

More
5 years 4 days ago #2 by xillibit
Replied by xillibit on topic Get Avatar Link API
Hello,

You should call avatarIntegration method to get right class, the you can call getLink() or getURL() methods, so try (the KunenaFactory::getAvatarIntegration() should be called only if it's not called before) :
<?php $avatar = KunenaFactory::getAvatarIntegration();
echo $avatar->getURL(); ?>


You can here all methods available by defaut for avatar : github.com/Kunena/Kunena-Forum/blob/deve...tegration/avatar.php

I don't provide support by PM, because this can be useful for someone else.
The following user(s) said Thank You: Trony

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

  • Trony
  • Trony's Avatar Topic Author
  • Offline
  • Junior Member
  • Music and Electronic Devices Designer.
More
5 years 4 days ago #3 by Trony
Replied by Trony on topic Get Avatar Link API
Thanks so much.

I need it because I want integrate in Topics and Personal Profile this Microdata:

schema.org/Person

Now I try.

Thanks again Xillibit

Music and Electronic Devices Designer. Drum and Bass Addict. Creative Mind as Lifestyle. Cat in past Life. Soccer, Ice Hockey and Snowboard Lover.

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

  • Trony
  • Trony's Avatar Topic Author
  • Offline
  • Junior Member
  • Music and Electronic Devices Designer.
More
5 years 4 days ago - 5 years 4 days ago #4 by Trony
Replied by Trony on topic Get Avatar Link API
Unfortunately doesn't work. ( I'm working on default_profile_horizontal.php)

It gives and URL as:
https://www.MYWEBSITE.org/media/kunena/avatars/resized/size90/TEMPLATE_NAME/s_nophoto.jpg

Music and Electronic Devices Designer. Drum and Bass Addict. Creative Mind as Lifestyle. Cat in past Life. Soccer, Ice Hockey and Snowboard Lover.

Last edit: 5 years 4 days ago by Trony.

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

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Time to create page: 0.062 seconds