dimsog/wn-comments-plugin

Add comments to any page on your site

Installs: 152

Dependents: 1

Suggesters: 0

Security: 0

Stars: 4

Watchers: 1

Forks: 2

Open Issues: 1

Type:winter-plugin

1.1.8 2023-07-29 16:07 UTC

README

Add comments to any page on your site. image image

Features

  • Absolutely free (MIT)
  • Support front-end users (see winter/wn-user-plugin)
  • Moderation
  • Show/hide the email field
  • Support for tree comments
  • The ability to delete comments
  • Email notifications
  • No jquery!
  • Snowboard support

Language support

  • English
  • Russian

Supported versions

Please check: https://www.php.net/supported-versions.php

  • PHP 8.0
  • PHP 8.1
  • PHP 8.2

Demo

https://winterplugins.com/wn-comments-plugin

Installation

composer require dimsog/wn-comments-plugin
php artisan winter:up

How to use

title = "Demonstration"
url = "/post/:slug"
layout = "default"

[comments]

==

{% component 'comments' %}

Show form only for authenticated users

Important! You must install a frontend-end user plugin! For example winter/wn-user-plugin

composer require wintercms/wn-user-plugin
title = "Demonstration"
url = "/post/:slug"
layout = "default"

[comments]
auth = true

==

{% component 'comments' %}

Show comments for specific page

title = "Demonstration"
url = "/post/:slug"
layout = "default"

[comments]
url = "{{ :slug }}"

==

{% component 'comments' %}

Count the total number of comments from current page

Count: <span id="comments-count">{{ comments.count() }}</span>

Count the total number of comments from another page

Count: <span id="comments-count">{{ comments.count('/') }}</span>

Configuration

image