Hello,

In one of my nodes, I view the comments in a block. My problem is that when I turn off the display of comments in the node, there are more links to "citation" in the comments.

The code to disable the comments in the node:

<?php
function modele_2r_nodeapi(&$node, $op, $teaser = NULL, $page = NULL) {
   if($node->type == 'modele_2r') {
      switch ($op) {
	     case 'load' :
				$output['comment'] = 0;
				return $output;
		}			
		break;
	}
}
?>

The code to display the comments in the block:

<?php print comment_render($node, 0); ?>

Thank you in advance for your help.

Comments

Zen’s picture

Status: Active » Postponed (maintainer needs more info)

Are your other filters being rendered correctly? Or is it just quote?

-K

Clément’s picture

Hello,

Yes, it is only with "quote".
Here is what I found as a link in each message: unpublish, submit spam, delete, edit, reply

It's really strange...

Zen’s picture

Version: 6.x-1.1-beta2 » 6.x-2.x-dev
Category: bug » support

I tested this, albeit with 6-2-dev, and it worked fine with the following code:

$node = node_load(1);
dpm($node);
$comment = comment_render($node, 0);
dpm($comment);

Please retest and get back to us.

Thanks,
-K

Zen’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)