Only in nodecomment2: .svn Only in nodecomment/: CVS Only in nodecomment/: node-comment.tpl.php diff -u nodecomment2/nodecomment.module nodecomment/nodecomment.module --- nodecomment2/nodecomment.module 2007-02-20 12:45:56.000000000 -0500 +++ nodecomment/nodecomment.module 2007-01-11 18:03:36.000000000 -0500 @@ -1,5 +1,5 @@ status == COMMENT_NOT_PUBLISHED ? ' comment-unpublished' : '') .'">'; - $output .= '
'. l($comment->subject, $_GET['q'], NULL, NULL, "comment-$comment->cid") . ' ' . theme('mark', $comment->new) ."
\n"; - $output .= '
'. t('by %a on %b', array('%a' => theme('username', $comment), '%b' => format_date($comment->timestamp))) ."
\n"; - $output .= '
'. $comment->comment .'
'; - $output .= ''; - $output .= ''; - return $output; -} - function theme_nodecomment_post_forbidden($nid) { global $user; if ($user->uid) { @@ -807,12 +797,18 @@ } } -function theme_comment($comment, $links = array()) { - $output = '
'; - $output .= '
'. l($comment->title, $_GET['q'], NULL, NULL, "comment-$comment->nid") . ' ' . theme('mark', $comment->new) ."
\n"; - $output .= '
'. t('by %a on %b', array('%a' => theme('username', $comment), '%b' => format_date(max($comment->created, $comment->changed)))) ."
\n"; - $output .= '
'. $comment->body .'
'; +if (!function_exists('theme_comment')) { + function theme_comment($comment, $links=array()) { + return theme('nodecomment', $comment, $links); + } +} + +function theme_nodecomment($comment, $links = array()) { + $output = '
'; + $output .= '
'. l($comment->subject, $_GET['q'], NULL, NULL, "comment-$comment->cid") . ' ' . theme('mark', $comment->new) ."
\n"; + $output .= '
'. t('by %a on %b', array('%a' => theme('username', $comment), '%b' => format_date($comment->timestamp))) ."
\n"; + $output .= '
'. $comment->comment .'
'; $output .= ''; $output .= '
'; return $output; -} \ No newline at end of file +} diff -u nodecomment2/nodecomment_views.inc nodecomment/nodecomment_views.inc --- nodecomment2/nodecomment_views.inc 2007-02-20 12:45:56.000000000 -0500 +++ nodecomment/nodecomment_views.inc 2007-01-11 18:03:36.000000000 -0500 @@ -1,5 +1,5 @@ exposed_filter = array(); $view->requires = array('node'); + $view->page_type = 'teaser'; $views[$view->name] = $view; return $views; } @@ -263,4 +264,4 @@ $link = l($value, "node/$data->nid", NULL, NULL, "comment-$data->comments_cid"); } return $link .' '. theme('mark', node_mark($data->nid, $data->comments_timestamp)); -} \ No newline at end of file +}