By Tima on Sunday, 26 February 2017
Posted in General Issues
Likes 0
Views 238
Votes 0
Hello!
I want show user mini-header in other component.
Tell me please, with the help of which code, can I do it?

i try something like this,but I understand that it is not correct -


require_once(JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/easysocial.php');
$esuser = ES::user();

<?php echo $this->html('html.miniheader', $esuser); ?>


Thank you very much in advance!
Hi there,

You can show them, by implement codes below

require_once(JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/easysocial.php');
$esuser = ES::user();
?>
<div id="es" class="es">
<?php echo ES::template()->html('html.miniheader', $esuser); ?>
</div>


Please give it a try and see how it goes.
·
Monday, 27 February 2017 18:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Many thanks! It worked!
·
Tuesday, 28 February 2017 07:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome. Glad to hear that your issue has been resolved now.

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.
·
Tuesday, 28 February 2017 10:09
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post