Hello,
To make this I edited file chat.js, and for function "getChatListMessageString" I added this code before sending massage.
var PathPic = 'http://phs-phsa.cba.pl/download/file.php?avatar=' + userID + '_#.jpg';
var img = new Image();
img.src = PathPic;
var AvatarPic = '';
if( img.height !== 0 ) {
AvatarPic = '<img class="avatar'
+ '" title="'
+ userName
+ '" alt="'
+ userName
+ '" src="'
+ PathPic
+ '"></img> ';
In place of "#" there is a number. I do not know how this number is generated, but in the database there is written this number.
My question is - how to send request to the DB form this function or maybe exist easier form of reading avatar from forum phpBB3 on the ajax chat?