Created
April 17, 2016 02:51
-
-
Save janstieler/9927e4b54c538c762fd6358925036d7e to your computer and use it in GitHub Desktop.
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
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
Hi,
Can you try this please ::
1-
REPLACE :
$profilepicture = new ProfilePicture($user->get('id'));
WITH:
$profilepicture = new ProfilePicture($this->escape($item->created_by));
IF NOT WORK , CHECK WITH THIS :
$profilepicture = new ProfilePicture($item->created_by);
IF NOT WORK BOTH PLEASE PROVIDE ME THE WHOLE PHP CODE OF FILE OR WHICH IS LOCATE EXACTLY FOLDER IN JOOMLA
Best Regards,
Mierza