1. pixcils
  2. Support
  3. Wednesday, December 03 2014, 02:45 AM
Hi i making a log in popup model and i need to be able to have the users avatar to be displayed. the way its ment to work is if the user has never signed in before then it will display a standard pic but if the user is remembered then there avatar will be displayed.

How can i get the users avatar to display. i have attached 2 pics

1 isthe psd of what im doing
2 is trhe code here is a image of what i am doing




<div class="sb-login-pic"> <a><?php echo $loginpic ?></a></div>


Attachments (2)
admin Accepted Answer
Admin
Hi,
you can find our api at this page: https://www.easy-profile.com/docs/38-jsnuser-object.html

Example
<?php
require_once(JPATH_SITE.'/components/com_jsn/helpers/helper.php');
$user=new JsnUser();
?>
<div class="sb-login-pic"> <a><?php echo $user->getField('avatar'); ?></a></div>
  1. more than a month ago
  2. Support
  3. # 1
pixcils Accepted Answer
Thanks for your reply that is not working the a element is empty.
  1. more than a month ago
  2. Support
  3. # 2
pixcils Accepted Answer
Content Protected
  1. more than a month ago
  2. Support
  3. # 3
admin Accepted Answer
Admin
Hi,
sorry but if user is not logged in you can't load the avatar.
  1. more than a month ago
  2. Support
  3. # 4
  • 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.