public function deactivate()
 {
     global $db, $cache;
     require_once MYBB_ROOT . "inc/adminfunctions_templates.php";
     $templates = array("myprofile_comments_content", "myprofile_comments_stats", "myprofile_comments_form", "myprofile_comments_form_modoptions", "myprofile_comments_form_script", "myprofile_comments_form_status", "myprofile_comments_table", "myprofile_comments_comment", "myprofile_comments_no_comment", "myprofile_comments_comment_approve", "myprofile_comments_comment_reply", "myprofile_comments_comment_edit", "myprofile_comments_comment_delete", "myprofile_comments_comment_report", "myprofile_comments_report_reasons", "myprofile_comments_usercp", "myprofile_modcp_nav_comments", "myprofile_comments_edit", "myprofile_comments_alertbar");
     MyProfileUtils::delete_templates($templates);
     find_replace_templatesets("member_profile", "#" . preg_quote('{$myprofile_comments}') . "#i", '', 0);
     find_replace_templatesets("member_profile", "#" . preg_quote('{$myprofile_comments_stats}') . "#i", '', 0);
     find_replace_templatesets("usercp_options", '#' . preg_quote('{$myprofile_comments_usercp}') . '#i', '', 0);
     find_replace_templatesets("modcp_nav_users", "#" . preg_quote('{$nav_myprofilecomments}') . "#i", '', 0);
     find_replace_templatesets('header', "#" . preg_quote('{$myprofile_alertbar}') . "#i", '', 0);
     if (MyProfileUtils::myalerts_exists()) {
         if (MyProfileComments::myalerts_can_deintegrate()) {
             $alertTypeManager = MybbStuff_MyAlerts_AlertTypeManager::createInstance($db, $cache);
             $alertTypeManager->deleteByCode(MyProfileCommentsMyAlertsFormatter::alert_type_code());
         }
     }
 }