Hi when you delete a member but this member has posted some messages in the forum this becomes a anonymous user but the avatar that is showing is from the member that is reading the forum... gives a strange effect, Moc has seen it also... Its only showing when you are logged-in.. https://e107.nl/forum/vertaling_forum/2/instellingen-scherm-probleem/
Confirmed.
Don't know how to best fix this to be honest.
Steps to reproduce:
Reason: user_image is empty andtoAvatar() method then checks if user is logged in. If yes, it displays the avatar for this user. In fact, it should recognize that it is a deleted user and thus display the anonymous avatar.
@Moc What about something like this:
if (!isset($this->postInfo['user_image'])) {$this->postInfo['user_image']=e107::getParser()->thumbUrl(e_IMAGE."generic/blank_avatar.jpg","w=".$width."&h=".$height,true);}
I think this is better approach:
$this->postInfo['user_image']=(!isset($this->postInfo['user_image'])?"":$this->postInfo['user_image']);
before this line?
I believe no fixes has been committed for this in repository so far.
I too can confirm this issue in at-least 4 local test installations and 1 production server test installation. I tested out with a 12 year old e107 site database and static contents which was upgraded to e107 v2.1.3
Going to test out @rica-carv's solution.
Yes, the bug has been confirmed and is on the list to be fixed before the next release.
Should be working now. Good to see you @arunshekher ! 馃憤