Kunena 6.3.8 Released
The Kunena team has announce the arrival of Kunena 6.3.8 [K 6.3.8] in stable which is now available for download as a native Joomla extension for J! 4.4.x/5.0.x/5.1.x/5.2.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 and issues discovered during the last development stages of K 6.3
Note: Please go to the Kunena Dashboard after an upgrade so that the Kunena database tables are also updated.
Solved Get Avatar Link API
8 years 9 months ago #1
by Trony
Music and Electronic Devices Designer. Drum and Bass Addict. Creative Mind as Lifestyle. Cat in past Life. Soccer, Ice Hockey and Snowboard Lover.
Get Avatar Link API was created by Trony
As title,
how get Avatar link in the default_profile_horizontal.php ?!?
I tried with:
But don't work.
If I use
it give ALL tags but i need only Avatar URL.
Thanks in advance for your Hints.
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 ); ?>
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.
8 years 9 months ago #2
by xillibit
I don't provide support by PM, because this can be useful for someone else.
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) :
You can here all methods available by defaut for avatar : github.com/Kunena/Kunena-Forum/blob/deve...tegration/avatar.php
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.
8 years 9 months ago #3
by Trony
Music and Electronic Devices Designer. Drum and Bass Addict. Creative Mind as Lifestyle. Cat in past Life. Soccer, Ice Hockey and Snowboard Lover.
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
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.
8 years 9 months ago - 8 years 9 months ago #4
by Trony
Music and Electronic Devices Designer. Drum and Bass Addict. Creative Mind as Lifestyle. Cat in past Life. Soccer, Ice Hockey and Snowboard Lover.
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:
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 9 months ago by Trony.
Please Log in or Create an account to join the conversation.
Time to create page: 0.342 seconds