I am running a Crowdfunding component from ITPrism.
Is there a way to pull the Username and Avatar and show it in the crowdfunding template? The Content plugin is not working for this.
require_once(JPATH_SITE.'/components/com_jsn/helpers/helper.php');
$user=JsnHelper::getUser();
// show avatar
echo $user->getField('avatar');
// show entire name
echo $user->getField('name');
// show firstname
echo $user->getField('firstname');
// show lastname
echo $user->getField('lastname');
<div>
<?php
require_once(JPATH_SITE.'/components/com_jsn/helpers/helper.php');
$user=JsnHelper::getUser();
// show avatar
echo $user->getField('avatar');
// show entire name
echo $user->getField('name');
// show firstname
echo $user->getField('firstname');
// show lastname
echo $user->getField('lastname');
?>
</div>
require_once(JPATH_SITE.'/components/com_jsn/helpers/helper.php');
$user=JsnHelper::getUser( $article->user_id );
$html.= '<div class="pull-right">';
$html.= '<a href="'.$user->getLink().'">';
$html.= $user->getField('avatar');
$html.= '</a>';
$html.= '</div>';
.cf-details-block img.avatar{width:80px;height:80px;border-radius:1000;}