Closed (duplicate)
Project:
Comment Display
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Apr 2009 at 08:56 UTC
Updated:
24 Apr 2009 at 23:27 UTC
With the Comment Display module enabled, I found that the threaded comment display failed to indent replies properly. Further investigation revealed that this was because comment.css was not being included in the page headers.
Apparently, the core issue was that the drupal_add_css function (normally called from comment_render) does not function properly when called within a _preprocess_page callback, as is done under Comment Display's module. I was able to resolve this by adding the lines:
if (function_exists('comment_render') && $node->comment) {
drupal_add_css(drupal_get_path('module', 'comment') .'/comment.css');
}
following the comment
// Note: Output of comments moved into comment_display_preprocess_page().
in comment_display_node_show.
Comments
Comment #1
sun#442586: Anonymous user name/email/url not appearing