Need a username visible in each entry.

Hi,

Actually i need a respective user name along with each entry how to do.I change below coding.but it showing undefined along with each entry i need username to be visible how to do.Can any one help me.

function template(start,end,ev){
return getRoom(ev.room_id) + " : " + ev.text +"," +ev.UserName ;

            }

Thanks,
Shantha.

Hello,

Where do you need, what template are you trying to change (where this template function is used)?

Kind regards,
Ilya