Site icon HTML5chat, free html5 video chat

Display info about user in the chat: how to do that ?

We recently added new feature: display info about user inside the chat.

Go to your admin panel and choose chat config->users management.

Then enter the script you want to be executed when right click on user inside the text input “Add context menu ‘userInfo'”

ex: enter there

bootbox.alert(‘Custom javascript about <b>{username}</b><br>You can redirect to your own script or url with parameter: username’);

when user right click on an user, it will show the context menu “user Info”. If user clicks on that item, the javascript bootbox.alert(..) will be executed.

 

Notice that you have a dynamic field called {username} where you get the username. This is useful to make an ajax call and retrieve data about the user or open an url such as userInfo.php?username=username

Exit mobile version