How do I remove "Comment Viewing Options" in the forum? On my site the options "threaded list - expanded Date - newest first appears when you view a topic someone posted, but I would rather just have a nice clean list of replies, like here on drupal.org. There must be a switch? ...

Comments

circoloco’s picture

If you use xtemplate go to the xtemplate-Folder, open xtemplate.xtmpl and outcomment the code between:
!-- BEGIN: box -->
!-- END: box -->

options are gone.
greetz,
cl
[edit] this was bullsh**, sorry for this nonsense posting and thanks to the following contributor

Tommy Sundstrom’s picture

The theme_comment_controls can be overridden by adding this function to your theme:

  function phptemplate_comment_controls($a=1, $b=1, $c=1, $d=1)
    { 
      return "";
    }

Substitute "phptemplate" with the name of the template you are using.

In phptemplate this function should be added to phptemplate.engine OR to /themes/engines/phptemplate/template.php.

I think it in theory also should be possible to put it in a template.php-file in the directory of the theme - but I can't get this to work.

The a-d variables are just dummy, they are never used. (Probably there is a better looking way to do that in php, but this does the trick.)

Overriding themes is discussed in http://drupal.org/node/3655

circoloco’s picture

what I did was
1. going to the theme folder
2. opening xtemplate.theme in an editor
3. inserting your code

 function xtemplate_comment_controls($a=1, $b=1, $c=1, $d=1)
    {
      return "";
    }

after function xtemplate_comment

and the ugly Options were gone.
Thanks Tommy!!
cu,
CL

Steven’s picture

There is an option for this:
Comment controls:

  • Display above the comments
  • Display below the comments
  • Display above and below the comments
  • Do not display

admin -> comments -> settings

In Drupal 4.4, it is under administer > settings > modules > comment, I think.

circoloco’s picture

Ok. Uiuiui. Absolutly goddamn right. Thanks, steven