Support

  1. witchypaws
  2. Support
  3. Friday, June 28 2019, 05:29 AM
HI guys

I need to know how to get an easy profile avatar inserted into an article. Some reading says that you need the easy profile content plugin and I have that installed and enabled on my site. However, when I am in an article there doesn't seem to be any button to insert a user field or custom field

Can you please tell me the steps for putting the avatar in the article

Also, I would like to insert the author's image in some other articles, not the logged in user's image, is that possilble as well

Thanks

Jacqui.
admin Accepted Answer
Admin
Hi,
you can write a code like this in your articles: {user avatar}, it will be replaced with the avatar of the user.

Example about our content plugin at http://docs.easy-profile.com/index.php/article/content-plugin
  1. more than a month ago
  2. Support
  3. # 1
witchypaws Accepted Answer
I want to return the avatar of the author not the logged in user, is that possible
  1. more than a month ago
  2. Support
  3. # 2
admin Accepted Answer
Admin
Hi,
there is not a shortcode that do this, anyway we provide a plugin called "Easy Profile - Author plugin", it will show the avatar near Joomla author name in Joomla articles. You can enable to show avatar from plugin options:
- Go to Extensions->Plugins
- Search for "Easy Profile - Author plugin"
- Go into plugin and enable "Show Avatar" option
  1. more than a month ago
  2. Support
  3. # 3
witchypaws Accepted Answer
thanks guys will look into that and see if it will do what i need as I need the avatar to be in a certain place but I'm sure a little styling and templating will make it work
  1. more than a month ago
  2. Support
  3. # 4
admin Accepted Answer
Admin
Hi,
I need the avatar to be in a certain place
In alternative you can use Joomla template override feature to put avatar wherever you prefer with PHP.

To show avatar you can use a code like this:
require_once(JPATH_SITE.'/components/com_jsn/helpers/helper.php');
$user=JsnHelper::getUser($author_id); // Replace $author_id variable with the variable that contain author ID, for example for Joomla articles should be $this->item->created_by
echo $user->getValue('avatar');


Docs about this at http://docs.easy-profile.com/index.php/article/jsnuser-object
  1. more than a month ago
  2. Support
  3. # 5
chap Accepted Answer
Hi,
I want to publice an avatar of the author in some article in a categorie. Not the regulier avatar near the author name ( author plugin) The avatar in normal format not the mini version. I dont understand how to do this. Were do i have to put the code? There is not a code like {author avatar} i.s.o {user avatar}?

Please some help or instructions
  1. more than a month ago
  2. Support
  3. # 6
admin Accepted Answer
Admin
Hi,
Were do i have to put the code?
You can put the code in template override files, for example:
- Copy file from /components/com_content/views/article/tmpl/default.php in /templates/your-theme-folder/html/com_content/article/default.php
- In the default.php (for example at the of the file) file you can use the PHP code like:
<?php 
require_once(JPATH_SITE.'/components/com_jsn/helpers/helper.php');
$user=JsnHelper::getUser($this->item->created_by);
echo $user->getField('avatar');
?>


There is not a code like {author avatar} i.s.o {user avatar}?
No sorry.
  1. more than a month ago
  2. Support
  3. # 7
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Request Support

Support is currently Online

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.