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

michelle’s picture

Status: Active » Fixed

Sure. Just implement hook_treat_as_forum_post_alter($decision, $hook, $variables) and have it return -1 if the $hook is comment.

Michelle

v8powerage’s picture

Could You be so kind and tell me a bit more how to implement this, sorry for that :P

michelle’s picture

Untested, but should work...

function MODULENAME_treat_as_forum_post_alter($decision, $hook, $variables) {
  if ($hook == 'comment') {
    return -1
  }
}

Put that in your site module and it should turn off theming for all comments.

Michelle

v8powerage’s picture

ok, so put this into advanced_forum.module?

michelle’s picture

No, you'd put it in your site tweaks module and change MODULENAME to the name of your module.

Michelle

v8powerage’s picture

ok so put this to the template.php and modulename replace with advanced_forum

michelle’s picture

No, 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

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.