Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,113 of 9,113 pages
About the help in other languages
All help pages

Comments on your blog

How comments work on an Exponential blog - the shipped Comment class, the enable comments checkbox, who may comment by default, how to restrict comments to signed-in readers, holding comments for review, fighting spam…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/individuals/blogs/comments-on-your-blog.md

On this page

Comments on your blog

This page is for individuals deciding whether readers may comment on their blog, and how to keep comments under control alone. Comments turn a blog into a conversation; they also attract spam and, sometimes, unpleasantness you must deal with yourself.

Contents

  1. How comments work
  2. Who may comment by default
  3. Three policies to choose from
  4. Holding comments for review
  5. Keeping spam out
  6. Deleting a comment
  7. What does not exist
  8. Checklist

How comments work

  • The Blog post class has an Enable comments checkbox (enable_comments).
  • When it is ticked, the post's full view lists the comments stored below the post and offers a New comment button to readers who are allowed to create one; readers who are not are asked to log in or create an account (template full/blog_post.tpl in the ezwebin and sevenx_themes_simple designs).
  • A comment is a content object of the Comment class with three fields: subject, author and message (class-comment.xml in the sevenx_classes package).

Because a comment is ordinary content, everything you know about content applies: it has versions, it can be edited, moved to the trash, searched, and controlled by roles.

Who may comment by default

The installer of the default site package (sevenx_multisite) gives the Anonymous role permission to create Comment (and Review) objects in the Standard section (sevenx-multi-site-installer.php, policies for the role "Anonymous"). In practice: on a fresh default installation, any visitor can post a comment on a post that has comments enabled. The Member role also has comment permissions.

Check what your site actually allows in Users > Roles > Anonymous before you enable comments anywhere (Roles and policies, Visitor permissions).

Three policies to choose from

PolicyHowSuits
No commentsLeave Enable comments unticked on every postA blog you write alone and do not want to moderate
Signed-in readers onlyRemove the content/create policy for Comment from Anonymous; keep it for Member; let readers registerMost personal blogs: fewer bots, readers have an account
EveryoneKeep the default; add spam protectionBlogs that want quick feedback and can moderate daily

Registration is explained in Members and registration.

Holding comments for review

Nothing in the shipped classes holds comments for approval by itself. Two ways exist:

  1. An approval workflow on publishing for the Comment class: new comments wait until you approve them (Workflows, Approvals and review). This is the real moderation queue; it needs to be set up once.
  2. Daily reading: comments go live at once and you remove what does not belong. Simple, but bad content is visible until you look.

If you choose "Everyone", choose the workflow.

Keeping spam out

LayerWhat it doesSource
Form tokensStop forged posts from other sitesezformtoken, in the default installation
CAPTCHA field on the Comment classAsks visitors to prove they are humanrecaptcha or hcaptcha datatype; keys from the service
Signed-in onlyBots must register firstRoles
Approval workflowNothing appears without youWorkflows

See Spam protection for forms and Spam and security basics.

Deleting a comment

Open the post in the administration, find the comment below it, and move it to the trash (or remove it at once if it contains something you must not keep). If someone asks you to remove a comment with their personal data, do it and empty it from the trash too (Archiving and the trash, Data retention and deletion).

Write a short comment policy on the blog: what you remove and why. It makes the decision easier when it comes.

What does not exist

  • No ezcomments extension in this distribution; it is not in extension/ and not in composer.json.
  • No threaded replies, likes, or "notify me of replies" for comments.
  • No import of comments from another platform except as part of a migration you script (Moving from another blog platform).

If you need more, an outside comment service embedded in the template is possible, but it sends your readers' data to that service; weigh that for a personal blog.

Checklist

  • To do: Policy chosen: none, signed-in only, or everyone.
  • To do: Anonymous role checked and matches the policy.
  • To do: Approval workflow set up if everyone may comment.
  • To do: Form token active; CAPTCHA on the Comment class if you allow anonymous comments.
  • To do: A comment policy published.
  • To do: You know how to remove a comment completely.

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x