Forums

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.

  1. 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.

  2. Create the forum

    On the Forumz setup page choose your client id and give the forum a name and a description.

  3. 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.

  4. 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.

  5. 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.

  1. Sign in and open the setup page. Under Your CSS, choose your client id.
  2. 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.
  3. 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?
Within the page they see categories, then topics, then posts, with working back and forward buttons and links they can share. The forum adds only cz- parameters to the address and leaves yours alone.
Who can start topics and reply?
Any visitor signed in with a Commentz account that has a display name. Writers can edit and delete their own posts, and can quote another post in a reply.
What can I do as the owner?
Lock a topic so it takes no more replies, pin it to the top, move it to another category, or remove any post. Removing a topic's first post removes the whole topic.
What can a moderator do?
The same things, but only in the forum they were appointed to. They can't add categories, appoint others or touch your sites.
What happens if I delete my site?
Its forums are kept for 28 days, hidden from your pages, so you can restore them from your account page. After that they are deleted for good, or sooner if you choose "Delete now".
Is there a limit on how often people can post?
Yes, a gentle one: one post every ten seconds per person, and a topic a minute. It stops floods without getting in the way of a normal conversation.

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