activate_comments function for use in external scripts