System settings

Xcomm3x2 min readPage 7 of 11
On this page 6

All settings are available on the Settings tab of the component and in System Settings → Namespace: xcomm3x.

General

KeyDefaultDescription
xcomm3x.enabled1Allow new comments
xcomm3x.moderation1Enable pre-moderation (all new comments are reviewed)
xcomm3x.captcha_modesmartCAPTCHA: smart — guests only, always — everyone, off — disabled. PHP GD generates an image with 6 digits; the user enters the first or the last 3 (chosen randomly)
xcomm3x.replies_auth_only0Only logged-in users can reply

Comment text

KeyDefaultDescription
xcomm3x.min_comment_length10Minimum text length (characters)
xcomm3x.max_comment_length5000Maximum text length (characters)
xcomm3x.forbidden_namesadmin,administrator,webmaster,moderator,support,helpdesk,root,superuser,operator,redactorNames guests may not use. Comma-separated, case-insensitive

Comments

KeyDefaultDescription
xcomm3x.comments_per_page10Root comments per load (pagination)
xcomm3x.max_depth5Maximum reply nesting depth
xcomm3x.edit_window60How many seconds after posting the author can edit a comment
xcomm3x.delete_window300How many seconds after posting the author can delete a comment

Security

KeyDefaultDescription
xcomm3x.rate_limit_count5Maximum comments per window
xcomm3x.rate_limit_window300Rate limit window length (seconds)
xcomm3x.silent_ip_block1Silent blocking: a blocked IP sees a moderation message instead of an error, and the comment is not saved
xcomm3x.trusted_proxiesemptyProxy/CDN IPs or CIDRs, comma-separated. X-Forwarded-For is read only for requests from these addresses, otherwise the visitor address is taken from REMOTE_ADDR
xcomm3x.toast_drivertoastifyFrontend notifications: toastify — built-in, external — already included, off — inline

Notifications

KeyDefaultDescription
xcomm3x.mail_queue_keep_days30After how many days cron deletes sent and skipped emails; 0 — never
xcomm3x.notify_manager_email—Email for manager notifications (empty — do not send)
xcomm3x.notify_resource_author0Notify the page author about a new comment
xcomm3x.notify_parent_author1Notify a comment author about a reply
xcomm3x.from_email(emailsender)Sender email (default — MODX emailsender)
xcomm3x.from_name(site_name)Sender name (default — MODX site_name)

Email templates (chunks)

KeyDefault
xcomm3x.tpl_manager_subjectxcomm3x_mail_manager_subject
xcomm3x.tpl_manager_bodyxcomm3x_mail_manager_body
xcomm3x.tpl_resource_author_subjectxcomm3x_mail_resource_author_subject
xcomm3x.tpl_resource_author_bodyxcomm3x_mail_resource_author_body
xcomm3x.tpl_parent_author_subjectxcomm3x_mail_parent_author_subject
xcomm3x.tpl_parent_author_bodyxcomm3x_mail_parent_author_body

Placeholders available in email chunks: [[+site_name]], [[+resource_title]], [[+resource_url]], [[+comment_id]], [[+author_name]], [[+author_email]], [[+text]], [[+comment_date]], [[+unsubscribe_url]]. English email chunks xcomm3x_mail_en_* are included — set them in the xcomm3x.tpl_* settings.