Notify authors when a comment is added via Disqus., (*1)
Requirements
This plugin requires Craft CMS 3.0.0-beta.23 or later., (*2)
Installation
To install the plugin, follow these instructions., (*3)
-
Open your terminal and go to your Craft project:, (*4)
cd /path/to/project
-
Then tell Composer to load the plugin:, (*5)
composer require viget/craft-disqus-notify
-
In the Control Panel, go to Settings → Plugins and click the “Install” button for Disqus Notify., (*6)
-
Navigate to the plugin settings to customize the email subject and body., (*7)
-
Signup for a Disqus account and configure for your site., (*8)
You will utilize the Disqus onNewComment
callback to make an AJAX request to the Disqus Notify plugin., (*9)
You need to pass the following pieces of data to the plugin:, (*10)
- Disqus Comment Text
- Entry ID
- Entry Author ID
The URL that you need to POST
to is {{ actionUrl("disqus-notify/notify/notify") }}
, (*11)
Here is an example of the plugin in action utilizing jQuery:, (*12)
Note: you will need to update your Disqus subdomain in this code snippet., (*13)