I have a plugin that puts an image besides the users message to indicate his position on the forum. It doesn't work anymore. Any help is greatly appreciated.
- Code:
avacweb_chat_config.message_hook.push(function(row, username, user_id, user) {
var avs = {
'Puppycheese123' : 'http://s16.postimage.org/y6am0lx8h/Admin.png',
'Mattyice92' : 'http://s22.postimage.org/ntxrqsmxp/V_I_P.png',
'SKatyana' : 'http://s16.postimage.org/y6am0lx8h/Admin.png',
'CI Mod' : 'http://s16.postimage.org/y6am0lx8h/Admin.png',
'DeCaro' : 'http://s2.postimage.org/em5627vlx/MOD.png',
'godofBASS3732' : 'http://s22.postimage.org/ntxrqsmxp/V_I_P.png',
'surighost' : 'http://s22.postimage.org/ntxrqsmxp/V_I_P.png',
'Duke Nukem' : 'http://s22.postimage.org/ntxrqsmxp/V_I_P.png',
'Stromski' : 'http://s2.postimage.org/em5627vlx/MOD.png',
'AllyCat' : 'http://s2.postimage.org/em5627vlx/MOD.png',
'vjdistefano' : 'http://s22.postimage.org/ntxrqsmxp/V_I_P.png',
'Tranklin007' : 'http://s22.postimage.org/ntxrqsmxp/V_I_P.png',
'Ivan' : 'http://s2.postimage.org/em5627vlx/MOD.png',
'Aaron Taylor' : 'http://s22.postimage.org/ntxrqsmxp/V_I_P.png',
'55hotrod' : 'http://s22.postimage.org/ntxrqsmxp/V_I_P.png',
'BinaryAssassin' : 'http://s2.postimage.org/em5627vlx/MOD.png',
'OopsMisfire' : 'http://s22.postimage.org/ntxrqsmxp/V_I_P.png',
'CI_Test' : 'http://s16.postimage.org/y6am0lx8h/Admin.png',
'joe52199' : 'http://s22.postimage.org/ntxrqsmxp/V_I_P.png',
'TimsArmy' : 'http://s22.postimage.org/ntxrqsmxp/V_I_P.png'
},
defaultAv = 'http://s10.postimage.org/54y4v15tx/Member.png';
user.innerHTML = '<img class="chatavatar" src="' + (avs[username] || defaultAv) + '">' + user.innerHTML;
});