You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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