Kunena 6.3.0 released

The Kunena team has announce the arrival of Kunena 6.3.0 [K 6.3.0] in stable which is now available for download as a native Joomla extension for J! 4.4.x/5.0.x/5.1.x. This version addresses most of the issues that were discovered in K 6.2 and issues discovered during the last development stages of K 6.3

Solved Get Avatar Link API

  • Trony
  • Trony's Avatar Topic Author
  • Offline
  • Junior Member
  • Music and Electronic Devices Designer.
More
8 years 2 weeks 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:
Code:
<?php echo $this->profile->getAvatarURL ?> <?php echo $this->getAvatarImage; ?> <?php echo $this->profile->getAvatarImage; ?>

But don't work.

If I use
Code:
<?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
8 years 2 weeks 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) :
Code:
<?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
8 years 2 weeks 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
8 years 2 weeks ago - 8 years 2 weeks 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:
Code:
http://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: 8 years 2 weeks ago by Trony.

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

Time to create page: 0.478 seconds