Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Global $USER;
$userID = $USER->GetID(); //Looking for the current id. user.
$photoID = CUser::GetByID($userID)->Fetch()['PERSONAL_PHOTO']; //Get the Photo ID from the user ID.
$photoPath = CFile::GetPath($photoID); //Get the path to the file.
I searched myself, I found it myself, I decided to help.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question