By Big Dog on
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
Remove Comment viewing options
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
Override comment_controls
The theme_comment_controls can be overridden by adding this function to your theme:
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
Thanks!
what I did was
1. going to the theme folder
2. opening xtemplate.theme in an editor
3. inserting your code
after
function xtemplate_commentand the ugly Options were gone.
Thanks Tommy!!
cu,
CL
Or use the option?
There is an option for this:
Comment controls:
admin -> comments -> settings
In Drupal 4.4, it is under administer > settings > modules > comment, I think.
Ok. Uiuiui. Absolutly goddamn
Ok. Uiuiui. Absolutly goddamn right. Thanks, steven