Hi,
sorry for late reply, it was night for us.
how can I remove the entries where no information was presented?
You can set to hide empty fields on profile from Easy Profile configuration (Components->Easy Profile->Option button->Hide Empty Fields on Profie parameter)
Right now I have an avatar linked to the stories but what I'm looking for is to have my user profile at the bottom of each content item.
As replied
here, Easy Profile don't do this. You need to write a plugin or override Article Layout.
Plugin
You can write Content plugin that render your fields from our API, Joomla have a built in event for this called "onContentAfterDisplay" (see reference link to more info). Instead write a entire plugin you can add your code in pre-existing plugin (
i.e. our Author Plugin), with this way you can simply add your function to show these fields in file /plugins/content/jsn_author/jsn_author.php like this:
public function onContentAfterDisplay( $context, &$article ) {
$doc = JFactory::getDocument();
$doc->addStylesheet(JURI::root().'components/com_jsn/assets/css/style.css');
if(isset($article->created_by) && isset($article->author) && $article->created_by && !is_object($article->author)){
require_once(JPATH_SITE.'/components/com_jsn/helpers/helper.php');
$user=JsnHelper::getUser($article->created_by);
$article->text.='
<div class="author_info">
<div class="field_about">About: '.$user->getField('about').'</div>
<div class="field_anotherfield">Another Field: '.$user->getField('anotherfield').'</div>
</div>
';
}
}
Article Override View
You can override Article layout, so copy file /components/com_content/views/article/tmpl/default.php into /templates/your-template-folder/html/com_content/article/default.php and add something like this at the end of file:
<?php
$doc = JFactory::getDocument();
$doc->addStylesheet(JURI::root().'components/com_jsn/assets/css/style.css');
if(isset($this->item->created_by) && $this->item->created_by){
require_once(JPATH_SITE.'/components/com_jsn/helpers/helper.php');
$user=JsnHelper::getUser($this->item->created_by);
echo '
<div class="author_info">
<div class="field_about">About: '.$user->getField('about').'</div>
<div class="field_anotherfield">Another Field: '.$user->getField('anotherfield').'</div>
</div>
';
}
?>
NOTE: this code is not tested and not supported, this is only for example purpose