You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`debug`|`false`| Enables debug mode and logs all webmentions to a file |
82
+
|`enable-webmention-support`|`true`| Listen to Webmentions and save them as komment |
83
+
|`webmention-auto-publish`|`true`| When you receive a webmention set status to published |
84
+
|`komment-auto-publish`|`false`| When you receive a komment set status to published |
85
+
|`send-mention-on-update`|`true`| Detect urls in your pages and send webmentions |
86
+
|`send-limit-to-templates`|`[]`| An array of template names (strings). When set webmentions will be sent only when this pages are updated |
87
+
|`send-mention-url-fields`|`['text']`| An array of fieldnames in which the plugin will search for urls |
88
+
|`send-to-mastodon-on-publish`|`false`| Send a post to mastodon when publishing a page |
89
+
|`mastodon-bearer`| - | Your Mastodon bearer Token |
90
+
|`mastodon-instance-url`|`'https://mastodon.social/api/v1/statuses‘`| Your Mastodon API Endpoint |
91
+
|`mastodon-text-field`|`'mastodonTeaser'`| The fieldname of the field you write your mastodon msg in, otherwise the title is used |
92
+
|`ping-archiveorg`|`false`| Enable if you want to inform archive.org when you update a page |
93
+
|`auto-delete-spam`|`true`| When comment spam is detected it will be rejected, set to false to just mark the comment as SPAM |
94
+
|`auto-disable-komments`|`0`| Disables the komment form after `n` number of days. Use `0` to never disable komments (default) |
95
+
|`auto-disable-komments-datefield`|`'date'`| Set a field to function as publish date field used for `auto-disable-komments`|
96
+
|`komment-icon-like`| '❤️' | The icon for likes in your komment list |
97
+
|`komment-icon-reply`| '💬' | The icon for replies/comments in your komment list |
98
+
|`komment-icon-repost`| '♻️' | The icon for reposts in your komment list |
99
+
|`komment-icon-mention`| '♻️' | The icon for mention in your komment list |
97
100
98
101
**Please make sure to prefix all the options with `mauricerenck.komments.`**. For example the debug option should be set in your `config.php` like so: `'mauricerenck.komments.debug' => true`
|`$page->kommentsAreEnabled()`|`boolean`|`<?php if($page->kommentsAreEnabled()): ><button>Write a comment!</button><?php endif; ?>`|
109
+
|`$page->hasQueuedKomments()`|`boolean`|`<?php if($page->hasQueuedKomments()): >There are comments in moderation<?php endif; ?>`|
110
+
100
111
---
101
112
102
113
## Special features
103
114
104
115
Next to komments directly on your page, there are some other features enabled by this plugin
105
116
117
+
### Disable komment form after n days
118
+
119
+
You can let the plugin automatically disable komments after a certain number of days after the page was published. So you could set `auto-disable-komments` to `14`. When you publish a page the komments on that page will be disabled 14 days after the publish date. Only webmentions will be received after this. You can define any date field as a source by using the option `auto-disable-komments-datefield`. The default datefield is `date`.
120
+
121
+
Please be aware: If you configure a non-existing date field, this will result in a disabled komment state for all pages.
122
+
106
123
### Receiving webmentions
107
124
108
125
**To receive webmentions you have to install the [tratschtante plugin](https://github.com/mauricerenck/tratschtante) and configure it.** Tratschtante will handle all the webmentions and normalize their data. Currently only webmention.io is supported. After installing tratschtante, komment will automaticly be informed about new webmentions.
@@ -140,7 +157,3 @@ By changing the the icon options you can add your own emoji or icons. You can se
140
157
If you want to change the styling, have a look at the classes, you can find the default styling in the `assets` folder of this plugin.
141
158
142
159
You can also modify the javascript part, but be aware, that this might result in false spam detection.
143
-
144
-
### Show the number of komments for a page
145
-
146
-
Simply use this tag anywhere on your site: `<?php echo $page->kommentCount(); ?>`
0 commit comments