First of all - those codes were made by EasyBB a long time ago. Since I can't find the topic anymore, I thought why not make a tutorial about it.
This way is manual - it means you have to add people names + avatars to script, or else they won't have avatars in chatbox.
Add that code to AvacWeb Chatbox Javascript (main script you added to your forum, to get that awesome chat):
- Code:
avacweb_chat_config.message_hook.push(function(row, username, user_id, user) {
if(username === 'NICK')user.innerHTML='<img height="16px" width="16px" style="padding-right:4px;" src="AVATAR URL">' + user.innerHTML;
if(username === 'NICK')user.innerHTML='<img height="16px" width="16px" style="padding-right:4px;" src="AVATAR URL">' + user.innerHTML;
if(username === 'NICK') user.innerHTML = '<img height="16px" width="16px" style="padding-right:4px;" src="AVATAR URL">' + user.innerHTML;
});
[ic]if(username === 'NICK') user.innerHTML = '<img height="16px" width="16px" style="padding-right:4px;" src="AVATAR URL">' + user.innerHTML;[/ic]
before });