Forumz
A discussion forum inside any page, added with a single script tag. Visitors browse categories and topics, and once signed in with a Commentz account they can start topics, reply and quote. New posts appear without a reload.
What you get
Categories and topics
You choose the categories. Topics are flat lists, newest first, with pinned ones on top.
Replies and quotes
A small editor with bold, italics, lists and links, and a Quote button to reply to a specific post.
Live
Other people's posts, edits and removals show up in place. A reply you're typing is never disturbed.
Moderation built in
Lock, pin, move and remove, for you and for the moderators you appoint.
Set it up
Your first forum takes about ten minutes, most of it the one-off site proof.
Register your site
A forum belongs to a site you have registered and proved. If you haven't yet, do that first: it takes a few minutes and covers every product. The guide explains it.
Create the forum
On the Forumz setup page choose your client id and give the forum a name and a description.
Add categories
Categories are the sections visitors choose from, such as General or Help. Add as many as you need, and add more whenever you like.
Copy the tag and paste it
The setup page shows the embed tag for this forum. Paste it into the page that should host it. The page's address must be one of your registered domains.
Name moderators (optional)
Once people have posted, pick trusted members from a list. A moderator gets the same tools as you, in this forum only.
The tag looks like this, with your own numbers filled in by the setup page:
<script src="https://www.commentz.co.uk/forumz.js"
data-client-id="your-client-id"
data-forum="1"
async></script>Make it match your site
Add your own CSS and the forum on every page of your site uses it.
- Sign in and open the setup page. Under Your CSS, choose your client id.
- Write only what you want to change. Your CSS is added after the built-in CSS below, inside the forum, so a rule of the same weight wins. You don't need to copy all of it.
- Save. It applies to the forum on every page of that client id the next time a page loads. Empty the box and save to go back to the built-in look.
For example, to change the colour of the buttons:
.fz-btn {
background: #7c3aed;
}
.fz a {
color: #7c3aed;
}What you can and can't do
- Your CSS reaches only the forum. It cannot change the rest of your page, and your page's own CSS cannot reach into the forum.
- Use the class names in the CSS below. They are the ones to rely on: we won't rename them casually, and anything not listed may change.
- Up to 20,000 characters. For safety it can't load other files or run code, so
url(...),@import,image-set(...), backslash escapes and<are refused, and the page says which one. Use colours, gradients, fonts already on the visitor's device, spacing and layout. - Anyone can read your CSS: it is delivered to every visitor's browser, like the rest of your page's styling.
The built-in CSS, as it stands
This is exactly what the forum ships with today, read from the live file. Copy a rule, change it, and paste it into the box.
.fz {
font: 14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
color: #1a1a1a;
width: 100%;
padding: 1rem;
box-sizing: border-box;
}
.fz a {
color: #2563eb;
}
.fz-crumbs {
margin: 0 0 12px;
font-size: 13px;
color: #666;
}
.fz-crumbs a {
margin-right: 4px;
}
.fz h2 {
margin: 0 0 4px;
font-size: 1.25rem;
}
.fz-pagetitle {
margin: 0 0 4px;
font-size: 1.25rem;
}
.fz-desc {
margin: 0 0 12px;
color: #666;
}
.fz-list {
margin: 0;
padding: 0;
list-style: none;
border-top: 1px solid #e5e5e5;
}
.fz-row {
display: flex;
justify-content: space-between;
gap: 16px;
padding: 10px 0;
border-bottom: 1px solid #e5e5e5;
}
.fz-title {
font-weight: 600;
}
.fz-meta {
color: #888;
font-size: 12px;
}
.fz-count {
text-align: right;
white-space: nowrap;
}
.fz-pin {
font-size: 11px;
color: #888;
border: 1px solid #ccc;
border-radius: 3px;
padding: 0 4px;
margin-left: 6px;
}
.fz-post {
display: flow-root;
padding: 12px 0;
border-bottom: 1px solid #e5e5e5;
}
.fz-post>.avatar {
float: left;
margin: 0 12px 4px 0;
}
.fz-post>.fz-body,.fz-post>.fz-quote {
display: flow-root;
}
@supports (color:oklch(0 0 0)) {
.avatar.fz-hue {
background: oklch(.45 .13 var(--fz-h));
color: #fff;
}
.avatar.avatar-subtle.fz-hue {
background: oklch(.92 .05 var(--fz-h));
color: oklch(.35 .1 var(--fz-h));
}
}
.avatar {
display: inline-flex;
align-items: center;
justify-content: center;
width: 2.5rem;
height: 2.5rem;
border-radius: 50%;
background: #e9ecef;
color: #1a1a1a;
font-size: 1rem;
font-weight: 500;
line-height: 1;
text-transform: uppercase;
vertical-align: middle;
}
.fz-user {
min-height: 42px;
}
.fz-author {
display: block;
font-weight: 600;
margin-right: 6px;
}
.fz-time {
display: block;
color: #888;
font-size: 12px;
}
.fz-edited {
color: #888;
font-size: 12px;
margin-left: 6px;
}
.fz-quote {
margin: 6px 0 0;
padding: 4px 8px;
border-left: 3px solid #ccc;
color: #666;
font-size: 13px;
}
.fz-body {
margin-top: 6px;
word-wrap: break-word;
}
.fz-empty,.fz-status {
color: #888;
padding: 8px 0;
}
.fz-compose {
margin-top: 16px;
padding-top: 12px;
border-top: 1px solid #e5e5e5;
}
.fz-compose h3 {
margin: 0 0 8px;
font-size: 1rem;
}
.fz-input {
display: block;
width: 100%;
box-sizing: border-box;
margin-bottom: 8px;
padding: 6px 8px;
border: 1px solid #ccc;
border-radius: 4px;
font: inherit;
}
.fz-toolbar {
display: flex;
gap: 4px;
margin-bottom: 6px;
}
.fz-toolbar button {
border: 1px solid #ccc;
border-radius: 4px;
padding: 4px 8px;
cursor: pointer;
font-size: 13px;
}
.fz-toolbar button:disabled {
cursor: default;
}
.fz-toolbar button {
display: inline-flex;
align-items: center;
justify-content: center;
width: 32px;
height: 30px;
padding: 0;
}
.fz-editor {
border: 1px solid #ccc;
border-radius: 4px;
min-height: 80px;
padding: 8px;
outline: none;
}
.fz-editor:focus,.fz-input:focus {
border-color: #2563eb;
}
.fz-counter {
margin-top: 4px;
font-size: 12px;
color: #888;
text-align: right;
}
.fz-counter.fz-over {
color: #c0392b;
}
.fz-who {
margin-bottom: 8px;
}
.fz-linkbtn {
border: none;
background: none;
padding: 0;
font: inherit;
color: #2563eb;
cursor: pointer;
text-decoration: underline;
}
.fz-actions {
margin-top: 4px;
font-size: 12px;
}
.fz-btn {
margin-top: 8px;
padding: 6px 14px;
border: none;
border-radius: 4px;
background: #2563eb;
color: #fff;
font: inherit;
cursor: pointer;
}
.fz-btn:disabled {
opacity: .5;
cursor: default;
}
.fz-msg {
margin-top: 6px;
font-size: 13px;
color: #c0392b;
}
.fz-wait {
margin-top: 6px;
font-size: 13px;
color: #666;
}
.fz-replying {
margin-bottom: 6px;
font-size: 13px;
color: #666;
}
.fz-editbox {
margin-top: 6px;
}
.fz-post.fz-new {
animation: fz-flash 3s ease-out;
}
@keyframes fz-flash {
from {
background: rgba(37,99,235,.16);
}
to {
background: transparent;
}
}
@media (prefers-reduced-motion:reduce) {
.fz-post.fz-new {
animation: none;
background: rgba(37,99,235,.08);
}
}
.fz-mod {
margin: 0 0 8px;
padding: 6px 8px;
border: 1px dashed #ccc;
border-radius: 4px;
font-size: 13px;
}
.fz-more {
margin-top: 12px;
padding: 6px 14px;
border: 1px solid #ccc;
border-radius: 4px;
background: #fff;
font: inherit;
cursor: pointer;
}Common questions
How do visitors move around the forum?
cz- parameters to the address and leaves yours alone.Who can start topics and reply?
What can I do as the owner?
What can a moderator do?
What happens if I delete my site?
Is there a limit on how often people can post?
Want the full walk-through?
The getting-started guide covers the account, the site and its proof, with the exact text to copy.
Open the guide