I need to recover the nick of the visitor to display it somewhere in index.html.tmpl, is it possible ?
I'm very novice so if someone could to help me :)
thank you
Last thing about the plugin in plugins examples
When clicking on a nickname in a message, insert the nickname into the control box (message input box)
var events = kiwi.components.Events();
var control = kiwi.components.ControlInput();
events.on('nick:select', function(event, data) {
event.preventDefault();
if (data.source !== 'message') {
return;
}
control.input.val(function(idx, val){
return val + data.member.get('nick') + ': ';
});
});
Do you know why it doesn't work ? I tried some things but... :(