Support

  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,
sorry but if user is not logged in you can't load the avatar.
  1. more than a month ago
  2. Support
  3. # 1
pixcils Accepted Answer
Content Protected
  1. more than a month ago
  2. Support
  3. # 2
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. # 3
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. # 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.

Request Support

Support is currently Offline

Support Availability

Working days: Monday to Friday. The support staff is not available on weekends; in the most of cases tickets will not be answered during that time.

Reply time: Depending on the complexity of your support issue it's usually between a few minutes and 24 hours for paid members and about one week for free members. When we expect longer delays we will notify you.

Guidelines

Before you post: read the documentation and search the forums for an answer to your question.

When you post: include Site Details if you request a support (you can use the form below the reply in Site Details tab).

Auto Solved Question: If after a week the author of the post does not reply to a request by moderator, the question will be marked as resolved.

Language: only English

Search Users

Easy Profile® is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla is Free Software released under the GNU/GPL License.