Installing Minichat on your website


Artur Hefczyc TigaseTeam
Added almost 5 years ago

We have made Minichat available just to demonstrate new stuff we are working on, to do some tests and collect your opinions. The feedback we have got exceeded our expectations. The most common question was: Can I/how can I install it on my website?

Installing the Minichat on your website is very simple so I am putting here instructions for all of you who want to include the Minichat client on your website and allow visitors to chat with you.

Just to remind you - this code is still under development and will be updated and changed very often. It may even stop working temporarily or permanently. We can even intentionally block certain users or IP addresses if we discover any abuse. If you are ready for this and still want to have it continue reading...
First thing to know: Minichat will work with Jabber/XMPP server only right now.
This is not because some limitations in the code or special non-standard implementation. This is to simplify deployment of the service. If you wanted Minichat to connect to a different domain/Jabber server the installation would be much harder, involving Apache proxy_mod installation, configuration and maybe Bosh component/server deployment.

Second thing to know: Minichat connects to the server as anonymous user. To avoid sending spam the anonymous user can only send messages to users within the single Jabber/XMPP server. It means you can configure Minichat to send messages to but Tigase server won't deliver those messages.


Register an account on the website. For purpose of this guide let's say the account name is: your-account. The the Jabber ID will be: Note! There seems to be confusion about this so let me highlight this. You create an account on the website but your Jabber account is in domain:
Setup Jabber/XMPP client of your choice to connect to the Tigase server in domain: Note you must allow plain text login. TLS is supported so the connection is secure and your password is still save.
There are a few ways for adding the client to the website but you always put startup parameters as URL query to the client link. Following parameters are possible: tells the client who you want website visitors talk to. Normally you put there your own account.
name=YourName screen name (displayed name) of your account. domain name you want the Minichat to connect to. At the moment only is allowed.
autologin=true determines whether the Minichat client automatically connects to the server when the page is loaded or waits for the visitor to click on the title bar.

The first way described is to put the client in exactly the same way as it is on the website. The chat window is always visible but the client is not connected to the server until someone clicks on the Minichat title bar. Include in your page following code:

width="220px" height="250px" frameborder="0"></iframe>

Very similar to the first option. The only difference is that the client automatically connects to the server and is ready for chatting without need to click on the title bar. Include following code:

width="220px" height="250px" frameborder="0"></iframe>

The third option is the least intrusive but the most complex to install. It puts a small, clickable image with text on your page: Click to chat with.... When the website visitor clicks the new window pops up with the Minichat which automatically connects to the server. You need to put some code in the web page header:

<link rel="stylesheet" type="text/css"
<link rel="stylesheet" type="text/css"
href="" />

And similar to other configurations code in the web page body:

width="220px" height="250px" frameborder="0"></iframe>

Enjoy and send us your comments...