Created
April 17, 2016 02:51
-
-
Save janstieler/9927e4b54c538c762fd6358925036d7e to your computer and use it in GitHub Desktop.
Author
Hi,
I used the following line of code and it works for me:
$profilepicture = new ProfilePicture($displayData['item']->created_by); //passes in the author ID
instead of:
$profilepicture = new ProfilePicture($user->get('id')); // this will pass in the currently logged in user ID
Note:
In the author.php file above the following two lines should be removed:
//Get the current user object
$user = JFactory::getUser();
Regards,
Darran
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Good evening,
thanks for your reply!
Sorry but nothing of this worked for me.
The original code is located in this folder: https://github.com/joomla/joomla-cms/blob/staging/layouts/joomla/content/info_block/author.php
Kind Regards,
Jan