1. teraviva
  2. General
  3. Sunday, January 26 2014, 05:32 PM
Hello,
I need to place an avatar from easy profile to the page from other component. How can i include it? I tried to write "echo /{/ user /avatar 661 /}/" (661 - user id, just for example) to the template (default.php), but it look like i`m doing a stupid thing. How to do it right? Thank you for any suggestions.
admin Accepted Answer
Admin
Hi,
You try to use a content plugin, but this plugin is avaible only for Basic or Pro member.
Try to use our api to retrieve a field see http://www.easy-profile.com/docs/38-jsnuser-object.html

what is the component?
  1. more than a month ago
  2. General
  3. # 1
teraviva Accepted Answer
A third time sticking to the docs was helpfull. I use the free "questions" (please delete this name if i should not write it) with their own profile page with number of created questions (based on standard profile), but there did not work avatars output from the profile, gravatars only.
As i use an easy profile and did not want to produce a lot of different avatars - i decided to fix output from the profile joomla.
solution that worked for me, as in docs:

$jsnuser=new JsnUser($reguser->id);
echo '<img src="'.$jsnuser->getValue(avatar).'">';
  1. more than a month ago
  2. General
  3. # 2
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.