By ruyakar on
how do i disable "#comment" part of link url for nodes which are in the block?
i want to link only the node, not comments.
how do i disable "#comment" part of link url for nodes which are in the block?
i want to link only the node, not comments.
Comments
this issue is about "live
this issue is about "live discussions" module block.
in live_discussions.module;
in live_discussions.module;
// for each record create a link
while ($outnode = db_fetch_object($query_result)){
$start_comment = $outnode->comment_count - ($outnode->comment_count % $comments_per_page);
$link_q = ($comments_per_page < $outnode->comment_count) ? "from=$start_comment&comments_per_page=$comments_per_page" : NULL;
$linktext[] = l(
$outnode->title.($show_comment_count == 'Yes' ? ' ('.$outnode->comment_count.')':''),
"node/$outnode->nid", array(),
$link_q,
"comment");
there is "comment" at the last line. i removed it and that is the solution for me.