Add chat to your website
Put a link or a button on your site that opens your chat, already set up the way you want.
You can add chat to any website with a link or a button. You do not need a programmer or a web designer: make the link below, copy the line it gives you, and paste it into your page. When a visitor clicks it, your chat opens with the look, the nickname and the buttons you chose.
Make your link
Fill in the form. Everything is optional except the room name. The link is made as you go, and Try it opens it in a new tab so you can see what your visitors will see.
What you can set
- The room. The room name in the link is the room people join. A new name makes a new room.
- The nickname. The nickname you type is the one the chat tries to give the visitor. If somebody already has it, the chat adds a number. With no nickname, visitors get a Guest name.
- Ask the visitor. Like the old chat applets, the page can ask for a nickname, or for the room, before anyone connects. The box is filled in with what you set, and the visitor can change it. Ask for the room with an empty box and visitors type the room themselves.
- Look. The colour theme, accent colour, text size, spacing and clock, the same as in the visitor's own Settings. What your link sets is greyed out for that visit, so your look stays.
- Buttons and panels. Hide the ones you do not want, for a simpler chat. Hiding only takes the button off the page: emoji and colours still show in messages, and CR Scribe keeps its own record whatever you hide.
- Language. The language codes work in the CR Translation rooms (Enterprise).
Ready-made buttons
Under the form you will find fifteen ready-made buttons, each with a preview of how it looks and the HTML to copy. Each one is tied to a layout or a theme: Bubbles, Classic, Spotlight, Stage, Deck, Live Chat (a plain white support-style button), a retro webring badge in the black and gold BX theme, a calm conversation card in the Glacier theme, a warm fireside card in the Hearth theme, and one each for the Mossglade, Bookshelf, Neon Arcade, Textce and Bookshelf Night themes, plus a round floating bubble for Live Chat. The button opens your room in that layout or theme, with whatever else you chose in the form.
They are plain HTML with the styles written into them. There are no images, fonts or scripts to load, and nothing is requested from our servers until a visitor clicks, so you can paste them into any page, even into a site that blocks outside content. Change the words on the buttons with the box above the list.
Three ways to add it
- A link. The simplest: a line of text on your page that opens the chat in a new tab.
- A button. The same link, dressed as a button.
- A pop-up window. The chat opens in its own small window next to your page.
The form gives you the exact line for each of these three. Paste it into your page where you want it to show. If your website tool has a box for HTML or custom code, use that.
Good to know
- Visitors can open the link on a phone, a tablet or a computer. Nothing to install.
- A room with a password or by invitation still asks for it.
- Hiding the room list button also stops
/listin the page. Other chat commands keep working for visitors who type them. - Hiding the nickname button stops the visitor changing it from the page. Registered nicknames still sign in as usual.
- The order of the codes in the link does not matter, and an option you leave alone is simply not in the link.
- Operators: the full list of codes, with demo links for CR Translation, is in Advanced Sharing Links.
Every option
Each option is one short code in the link, between slashes. The form writes them for you, but you can also type them yourself.
Layout
How the chat page is laid out. Bubbles is the default, including in CR Translation rooms; the visitor can still switch in Settings (their own choice then wins in that tab).
| Code | Meaning |
|---|---|
bb | Bubbles (the default: chat bubbles, a chat list, room info; light or dark) |
cl | Classic (three panes: rooms, chat, people) |
sp | Spotlight (messages grouped by person, search in the room) |
sg | Stage (phone first, quick reactions) |
dc | Deck (keyboard first: tabs, command palette, split view) |
lc | Live Chat (one plain white window, nothing else) |
Lock the look
Visitors cannot change how the chat looks: the layout of the link (or Bubbles), its colour theme, light or dark, accent, text size and spacing stay as the link says. Settings shows them greyed out. Use it for a branded page or a kiosk.
| Code | Meaning |
|---|---|
lk | Lock the look (layout, theme, colours, text size, spacing) |
Colour theme
The colour scheme of the page. Overrides 'Follow my device' and any scheme the visitor picked before.
| Code | Meaning |
|---|---|
tx | Textce (dark, the classic) |
wh | White (light) |
bs | Bookshelf (light) |
bn | Bookshelf Night (dark) |
gl | Glacier (dark) |
dr | Dreams (dark) |
ht | Hearth (dark) |
tp | Tidepool (dark) |
ne | Neon Arcade (dark) |
mg | Mossglade (dark) |
fs | Fluffy Sky (dark) |
bx | BX (dark) |
au | Follow the visitor's device (light or dark) |
dk | Same as tx (dark) |
lt | Same as wh (light) |
Accent colour
The highlight colour of buttons and links.
| Code | Meaning |
|---|---|
ta | The colour scheme's own accent |
rd | Red |
bl | Blue |
vi | Violet |
am | Amber |
lm | Lime |
or | Orange |
bk | Black |
wt | White |
tl | Teal |
Language (CR Translation rooms)
The CR Translation Language for the room in the link (English, or the room's own language). Only used in #cr-translation-en-* rooms; in any other room it is ignored. The flag shows once it is set, and in a language other than English the whole page (buttons, menus, messages, the topic) appears in that language.
| Code | Meaning |
|---|---|
en | English |
kr | Korean |
ko | Korean (same as kr) |
my | Malay |
ms | Malay (same as my) |
fr | French |
mx | Spanish (Mexico) |
es | Spanish (same as mx) |
Text size
The size of the chat text.
| Code | Meaning |
|---|---|
xs | Extra small (13) |
sm | Small (14) |
md | Medium (15, the default) |
lg | Large (17) |
xl | Extra large (19) |
xx | Biggest (21) |
Spacing
How much room there is between lines.
| Code | Meaning |
|---|---|
cp | Compact |
nm | Normal |
cz | Cozy |
Clock
12-hour or 24-hour time stamps.
| Code | Meaning |
|---|---|
h24 | 24-hour clock |
h12 | 12-hour clock (am / pm) |
Joins and quits
Whether 'X has joined / has left' lines show.
| Code | Meaning |
|---|---|
jq | Show joins and quits |
nj | Hide joins and quits |
Coloured names
Whether each person's name has its own colour.
| Code | Meaning |
|---|---|
cn | Coloured names |
nc | No colours on names |
My messages
Bubbles only: which side the visitor's own messages sit on. On the right (the default, like a messaging app) or on the left with everybody else's, keeping their own colour.
| Code | Meaning |
|---|---|
ml | My messages on the left |
mr | My messages on the right (the default) |
Sounds
Sounds for private messages and mentions.
| Code | Meaning |
|---|---|
sn | Sounds on |
mu | Sounds off (muted) |
Mention alerts
Desktop alerts when somebody mentions the visitor. A browser only allows them after the visitor said yes once, so 'al' turns them on only for visitors who already did; it never opens the permission question.
| Code | Meaning |
|---|---|
al | Alerts on (if the browser already allows them) |
nl | Alerts off |
Welcome notice
The house-rules card shown on a first visit.
| Code | Meaning |
|---|---|
nw | Do not show the welcome notice |
Buttons and panels to hide
Take buttons and panels off the page, for a smaller, simpler chat. Hiding does not switch anything off on the server: emoji and colours still show in messages, and people you add as friends stay.
| Code | Meaning |
|---|---|
nli | Hide the room list button, and stop /list |
nsv | Hide the Save this chat button (not CR Scribe, which keeps its own record) |
nsh | Hide the Share this room button |
nse | Hide the Search this chat button |
nem | Hide the emoji button (emoji still show in messages) |
nco | Hide the text colour and formatting button (colours still show) |
nbu | Hide the My buddy list button |
naw | Hide the Mark me away button |
nnk | Hide the nickname button, so the visitor cannot change the nickname |
nst | Hide the Settings button |
nhp | Hide the Help button |
Nickname hint
The grey line that appears when a guest arrives: "You are chatting as Guest1234. Click your nickname at the top to choose your own, log in, or register it." Hiding it does not change anything else on the page. The Live Chat layout never shows it.
| Code | Meaning |
|---|---|
nno | Hide the nickname hint line |
System text to hide
Hide the small system lines the chat adds by itself. Chat messages, error messages and the answers to commands the visitor types always stay. The topic bar and the people list are not affected.
| Code | Meaning |
|---|---|
njn | Hide the "You joined #room" line |
ntp | Hide the topic lines ("Topic: ...", "Topic set by ...", "X changed the topic") |
nmo | Hide mode lines ("X sets mode +o") |
nni | Hide nickname changes ("X is now known as Y") |
nkc | Hide kick lines about other people (you still see it when you are removed) |
ncu | Hide "Caught up on N missed messages" |
nfr | Hide "X is now online / offline" for friends |
nsy | Hide ALL of the above plus joins, leaves and quits (the nickname hint has its own code, nno) |
Link warning
By default every link to another website, in a message, a topic or a profile, first asks "Open this link?". A website that wants plain links can turn the question off. The question protects visitors, so leave it on unless you have a reason.
| Code | Meaning |
|---|---|
nlc | Open links to other websites without asking |
Ask the visitor
Ask the visitor a question before they come in, like the old Java chat applets did. The box is filled in with what the link already says, and the visitor can change it.
| Code | Meaning |
|---|---|
an | Ask for a nickname before joining (filled in with the nickname of the link, if it has one) |
ac | Ask which room to join (filled in with the room of the link) |
ae | With the room question, leave the box empty so the visitor types one |
Short forms
A link with many buttons hidden would get long, so the hide and ask options also have a short form: one segment with one letter for each thing. hide-lvsfecb hides the list, save, share, search, emoji, colour and buddy buttons; ask-nc asks for the nickname and the room. The single codes above still work.
| Segment | What it does |
|---|---|
hide-all | Hide 11 buttons and panels in one go. |
Letter after hide- | Hides |
|---|---|
l | room list button, and stop /list |
v | Save this chat button (not CR Scribe, which keeps its own record) |
s | Share this room button |
f | Search this chat button |
e | emoji button (emoji still show in messages) |
c | text colour and formatting button (colours still show) |
b | My buddy list button |
a | Mark me away button |
n | nickname button, so the visitor cannot change the nickname |
t | Settings button |
h | Help button |
Letter after ask- | Asks |
|---|---|
n | Ask for a nickname before joining (filled in with the nickname of the link, if it has one) |
c | Ask which room to join (filled in with the room of the link) |
e | With the room question, leave the box empty so the visitor types one |
The nickname is not a code: it is added to the end of the link as ?nick=Name.
More in Rooms
- Register a roomMake a room permanent, with you as its founder.
- Room topicSet the topic, keep it, and lock it.
- Private and hidden roomsKeep a room out of lists.
- Keys, limits and invitesControl who can walk in.
- Room modesEvery room setting you can use, and what it does.
- Room settingsEverything ChanServ lets the founder change.
- Room limitsKeep a busy room under control with a few numbers.
- Auditorium RowsBig events in small rooms: a master room and numbered sub-rooms.