I like advanced forum module, it's really cool. But i would like my comment to looks the same. When somebody post a new comment in forum, it looks good (with pic on the right, post count etc.) That even counts comments using for other nodes. How to do same template (as forum answers) for comments only ? Maybe some advanced comment module ?

Comments

chazz’s picture

Anybody can help please ?

michelle’s picture

Title: How to make a comments to looks like advanced forum ? » Add option to make all site comments formatted like forum comments
Category: support » feature

This can't be done without hacking the module at this point because it checks to be sure we're on the forum to avoid changing all site comments. I changed it to a feature request and will look at adding a config option for it.

If you want to hack it for now, you would need to adjust the _is_forum() function so it returns true for all comments.

Michelle

chazz’s picture

I dont know how to hack it :(
I can donate a few $$ if somebody can do this.
Thank you

cs8c’s picture

This worked for me, at line 178

    case 'comment':
      if (isset($forum_node_id)) {
        // We already know the node ID of the forum
        // thread on this page, we just need to see
        // if this comment goes with it.
        return $vars['comment']->nid == $forum_node_id;
      } else {
        if (arg(0) == 'comment' && is_numeric(arg(1))) {
          $forum_node_id = $vars['comment']->nid;
          return true;
        }
        return false;
      }
    
    default:
      // 
      return false;
  }  
}

change to:

    case 'comment':
      if (isset($forum_node_id)) {
        // We already know the node ID of the forum
        // thread on this page, we just need to see
        // if this comment goes with it.
        return $vars['comment']->nid == $forum_node_id;
      } else {
        if (arg(0) == 'comment' && is_numeric(arg(1))) {
          $forum_node_id = $vars['comment']->nid;
          return true;
        }
        return true;
      }
    
    default:
      // 
      return false;
  }  
}
michelle’s picture

Status: Active » Fixed

Yay, finally got to this so I can stop hacking my own module on my own site each time. LOL

Michelle

Anonymous’s picture

Status: Fixed » Closed (fixed)

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