Account created on 10 April 2012, about 12 years ago
#

Recent comments

I confirm the code in the merge does fix the problem. I wanted to use it now, so I created a patch file using those same edits to LinkedInAuthManager.php.

Thank you @drakythe

I added a css rule
.mm-listitem a {
max-width: 285px;
}

Which made the child links clickable for my client on an Android phone.

I have a site that is using Views Infinite Scroll module, and the view has the Rate module used to present a thumbs-up "Like" rating for nodes in the view. After the user scrolls past several nodes and more content is loaded via AJAX, the Rate liking stops working, so in our experience the Rate module is not compatible when AJAX is used in a view.

I have changed the view to use a pager in the short term, and we're looking at creating some custom javascript/JQuery event listener to overcome the problem with Rate not being compatible with AJAX.

I also encountered the problem with non-admins not being able to see the checkbox to allow them to subscribe to notifications about comments made to their content.

I made the attached patch based on mtoscano's comment #2.

I also wanted to mark all existing users so they received notifications by default, so I wrote this hook_update_n, put it in a custom module, and ran drush updb to execute it. I had just installed the module, so I decided to delete any existing user content_notify settings and then set the settings across all users.

/**
* Set all users comment_notify to 1 for comments about their content and 2 for comments about their comments
*/
function air_utility_update_8005() {
# DELETE CURRENT ENTRIES IN users_data WHERE module like content_notify
$connection = \Drupal\Core\Database\Database::getConnection();
$num_deleted = $connection->delete('users_data')
->condition('module', 'comment_notify')
->execute();
\Drupal::logger('mymodule_notifications')->notice("Deleted comment_notify settings for ".$num_deleted." users");

# LOAD DATA FOR ALL USERS
$query = \Drupal::entityQuery('user')
->condition('status', 1)
->sort('uid');
$uids = $query->execute();

\Drupal::logger('mymodule_notifications')->notice("Loaded all users");

# LOOP THROUGH USERS AND SET DEAFULT FOR entity_notify and comment_notify
$counter = 1;
$count_users = count($uids);
foreach ($uids as $thisuid => $user) {
\Drupal::logger('mymodule_notifications')->notice("Start update for user(".$counter." of ".$count_users."): ".$thisuid."");
$counter++;
$result = $connection->insert('users_data')
->fields([
'uid' => $thisuid,
'module' => 'comment_notify',
'name' => 'entity_notify',
'value' => 1,
'serialized' => 0,
])
->execute();
$result2 = $connection->insert('users_data')
->fields([
'uid' => $thisuid,
'module' => 'comment_notify',
'name' => 'comment_notify',
'value' => 2,
'serialized' => 0,
])
->execute();
} # END FOREACH LOOP
}

Production build 0.69.0 2024