node_breadcrumb causes Disqus comments to not show up

jjkiesch - November 1, 2009 - 04:33
Project:Node breadcrumb
Version:6.x-1.0-beta6
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

for some reason, any time i add breadcrumb links to a content type, it causes the comment form provided by the Disqus module to not show up. there is an option asking how to display the comment form. when the inline option is selected, it does display fine. however, when displaying the comments in a block, it doesn't show up. i'm actually not sure if this would be an issue for node_breadcrumb or disqus.

#1

edhel - November 1, 2009 - 11:08

Try to change weight of node_breadcrumb module in database in table "system". Set weight 1 or greater.

Later I will test Disqus with node_breadcrumb module.

#2

edhel - November 5, 2009 - 12:52

Module's weight can't help at this case.

But you can fix disqus.module, function disqus_block, line ~297, after code:

<?php
     
case 'disqus_comments':
        if ((
variable_get('disqus_location', 'content_area') == 'block') && user_access('view disqus comments')) {
         
$item = menu_get_item();
?>

add code:

<?php
         
if (arg(0) == 'node' && is_numeric($nid = arg(1)) && arg(2) == '') $item = array('path' => 'node/%', 'page_arguments' => array(node_load($nid)));
?>

It's feature)

 
 

Drupal is a registered trademark of Dries Buytaert.