$comments = JPATH_SITE . '/components/com_jcomments/jcomments.php'; if (file_exists($comments)) { require_once($comments); echo JComments::show($this->link->link_id, 'com_mtree', $this->link->link_name); }