Loading README.md +5 −1 Changes for README.md: 5 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -21,6 +21,9 @@ Installation configure the disqus comment field for any entity sub-type. 6. Visit the permissions, and set which users you would like to have the ability to view Disqus threads (recommended for role). 7. You can also set additional configurations related to localization, inherit login, comment tracking in GA and sending notification to entity author through the module settings. Additional Requirements -------- Loading Loading @@ -106,7 +109,8 @@ https://github.com/disqus/disqus-php/blob/master/README.rst \Drupal::logger('disqus')->error('Error updating thread details for entity : !identifier. Check your user access token.', array( '!identifier' => "{$entity->get($field_name)->identifier}" ?: "{$entity->getEntityTypeId()}/{$entity->id()}" '!identifier' => "{$entity->get($field_name)->identifier}" ?: "{$entity->getEntityTypeId()}/{$entity->id()}" )); } } Loading config/install/disqus.settings.yml +1 −0 Changes for config/install/disqus.settings.yml: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -3,6 +3,7 @@ behavior: disqus_localization: false disqus_inherit_login: false disqus_track_newcomment_ga: false disqus_notify_newcomment: false advanced: disqus_useraccesstoken: '' disqus_publickey: '' Loading config/schema/disqus.schema.yml +3 −0 Changes for config/schema/disqus.schema.yml: 3 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -20,6 +20,9 @@ disqus.settings: disqus_track_newcomment_ga: type: boolean label: 'Track new comments in Google Analytics' disqus_notify_newcomment: type: boolean label: 'Notify of new comments by email' advanced: type: mapping label: 'Advanced' Loading disqus.install +12 −0 Changes for disqus.install: 12 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -51,3 +51,15 @@ function disqus_update_8001() { ->set($target_entity_type->id() . '.field_schema_data.' . $field->getName(), $stored_schema); } } /** * Set the default value of a new configuration property. */ function disqus_update_8101() { $config = \Drupal::configFactory()->getEditable('disqus.settings'); if (!($config->isNew())) { $config ->set('behavior.disqus_notify_newcomment', FALSE) ->save(TRUE); } } disqus.libraries.yml +6 −0 Changes for disqus.libraries.yml: 6 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -14,3 +14,9 @@ ga: js/disqus_ga.js: {} dependencies: - disqus/disqus notification: version: 1.x js: js/disqus_notification.js: {} dependencies: - disqus/disqus Loading
README.md +5 −1 Changes for README.md: 5 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -21,6 +21,9 @@ Installation configure the disqus comment field for any entity sub-type. 6. Visit the permissions, and set which users you would like to have the ability to view Disqus threads (recommended for role). 7. You can also set additional configurations related to localization, inherit login, comment tracking in GA and sending notification to entity author through the module settings. Additional Requirements -------- Loading Loading @@ -106,7 +109,8 @@ https://github.com/disqus/disqus-php/blob/master/README.rst \Drupal::logger('disqus')->error('Error updating thread details for entity : !identifier. Check your user access token.', array( '!identifier' => "{$entity->get($field_name)->identifier}" ?: "{$entity->getEntityTypeId()}/{$entity->id()}" '!identifier' => "{$entity->get($field_name)->identifier}" ?: "{$entity->getEntityTypeId()}/{$entity->id()}" )); } } Loading
config/install/disqus.settings.yml +1 −0 Changes for config/install/disqus.settings.yml: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -3,6 +3,7 @@ behavior: disqus_localization: false disqus_inherit_login: false disqus_track_newcomment_ga: false disqus_notify_newcomment: false advanced: disqus_useraccesstoken: '' disqus_publickey: '' Loading
config/schema/disqus.schema.yml +3 −0 Changes for config/schema/disqus.schema.yml: 3 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -20,6 +20,9 @@ disqus.settings: disqus_track_newcomment_ga: type: boolean label: 'Track new comments in Google Analytics' disqus_notify_newcomment: type: boolean label: 'Notify of new comments by email' advanced: type: mapping label: 'Advanced' Loading
disqus.install +12 −0 Changes for disqus.install: 12 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -51,3 +51,15 @@ function disqus_update_8001() { ->set($target_entity_type->id() . '.field_schema_data.' . $field->getName(), $stored_schema); } } /** * Set the default value of a new configuration property. */ function disqus_update_8101() { $config = \Drupal::configFactory()->getEditable('disqus.settings'); if (!($config->isNew())) { $config ->set('behavior.disqus_notify_newcomment', FALSE) ->save(TRUE); } }
disqus.libraries.yml +6 −0 Changes for disqus.libraries.yml: 6 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -14,3 +14,9 @@ ga: js/disqus_ga.js: {} dependencies: - disqus/disqus notification: version: 1.x js: js/disqus_notification.js: {} dependencies: - disqus/disqus