how to upload images ?

You can now upload images in html5-chat

upload

New features now allows you to UPLOAD your own images.

Max size of image is set to 50 Kbytes to avoid abuses.

upload

As usual, fo to your panel admin and choose the config tab.

 

Check the Allow users to upload images into the chat checkbox.

Enter your chat: you will now be able to upload your OWN images into the chat !

 

 

 

new Feature: GIF search emoticons

Gif animated searchable emoticons for your  chat

gif search
gif search

New exciting feature: search and add GIFs from GIFY services: Millions of ready to go animated gifs are waiting for you: so make your chat even funnier than before.
Just type in the keyword and you will get millions of ready to use GIFs.
You will be able to add as many emoticons you want into your chat.

 

How to auto login with an avatar ?

How to autologin into HTML5-chat with an user avatar ?

ex: we want to login as John, whose sex is male an whose avatar is external url: https://html5-chat.com/img/malecostume.svg

(let assume our script id is 1544 and token is 5a0440c6c992c)

<script src=’https://html5-chat.com/script/1544/5a0440c6c992c/John/couple/aHR0cHM6Ly9odG1sNS1jaGF0LmNvbS9pbWcvbWFsZWNvc3R1bWUuc3Zn‘></script>
This aHR0cHM6Ly9odG1sNS1jaGF0LmNvbS9pbWcvbWFsZWNvc3R1bWUuc3Zn represents the base64 url to our avatar:
in php we can use: base64_encode
<php $avatar = base64_encode(‘https://html5-chat.com/img/malecostume.svg’); ?>

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