I like the look of forums, and topics list, but I prefer normal drupal comments, so can I turn them off and using default drupal view?
thank in advance
I like the look of forums, and topics list, but I prefer normal drupal comments, so can I turn them off and using default drupal view?
thank in advance
Comments
Comment #1
michelleSure. Just implement
hook_treat_as_forum_post_alter($decision, $hook, $variables)and have it return -1 if the $hook is comment.Michelle
Comment #2
v8powerage commentedCould You be so kind and tell me a bit more how to implement this, sorry for that :P
Comment #3
michelleUntested, but should work...
Put that in your site module and it should turn off theming for all comments.
Michelle
Comment #4
v8powerage commentedok, so put this into advanced_forum.module?
Comment #5
michelleNo, you'd put it in your site tweaks module and change MODULENAME to the name of your module.
Michelle
Comment #6
v8powerage commentedok so put this to the template.php and modulename replace with advanced_forum
Comment #7
michelleNo, this is a hook implementation, which means it has to be done from within a module. Generally sites have a custom module specific to that site with various tweaks in it. That is where you would put it. If you don't have one of those, you will need to either learn how to make one or you won't be able to use this hook.
Another option would be to modify the non top-post section of advf-forum-post.tpl.php to get the look you want.
Michelle