Index: facebook_comments_box.module =================================================================== --- facebook_comments_box.module (revision 15146) +++ facebook_comments_box.module (working copy) @@ -61,11 +61,14 @@ $node = node_load($nid); $node_type = $node->type; $fcb_title = check_plain($node->title); + + //Check if commenting is allowed on nodes + $comments_open = ($node->comment == COMMENT_NODE_OPEN) ? true : false; } // If the nodetype is set and selected in config, then load the comments // on the page. - if (isset($node_type) && in_array($node_type, $fcb_node_types) && $node->status) { + if (isset($node_type) && in_array($node_type, $fcb_node_types) && $node->status && $comments_open) { // Figure out the current absolute URL. $path = isset($_GET['q']) ? $_GET['q'] : '';