That was the wrong package actually. Below is what I intended to do i.e. add blur_avatars class only to those who are not online.
global $modSettings, $message;
if (!empty($modSettings['bola_enable']) && !$message['member']['online']['is_online']) {
// Add blur_avatars class to offline avatar in display page
addInlineJavascript('
$(' . $message['member']['id'] . '".linklevel1 .avatar").addClass("blur_avatars");
', true);
}
I was trying to convert it from this code:
// Show avatars, images, etc.?
if (empty($options['hide_poster_area']) && !$ignoring)
{
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']) && $message['member']['online']['is_online'])
$poster_div .= '
<li class="listlevel1 poster_avatar">
<a class="linklevel1" href="' . $scripturl . '?action=profile;u=' . $message['member']['id'] . '">
' . $message['member']['avatar']['image'] . '
</a>
</li>';
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']) && !$message['member']['online']['is_online'])
$poster_div .= '
<li class="listlevel1 poster_avatar">
<a class="linklevel1 blur_avatars" href="' . $scripturl . '?action=profile;u=' . $message['member']['id'] . '">
' . $message['member']['avatar']['image'] . '
</a>
</li>';
I guess it is missing a proper id or something.