@Vlad7
I am not aware this would be removed, probably just moved to model or functions.
Profile picture from this plugin should still be considered.
I see that this code has been moved to the functions.php file, I understand that this is done to improve compatibility with other plugins like Avatar. also changed $ u_id to $ user_id but for some reason I don't understand it doesn't work, I had to return the code to messages.php and threads.php files
if(function_exists('profile_picture_show')) {
$picture = ModelIM::newInstance()->getPictureByUserId($u_id);
if(file_exists(osc_base_path() . 'oc-content/plugins/profile_picture/images/profile' . $u_id . @$picture['pic_ext'])) {
$img = osc_base_url() . 'oc-content/plugins/profile_picture/images/profile' . $u_id . @$picture['pic_ext'];
}
}