Index: disqus/disqus.js =================================================================== --- disqus/disqus.js (revision 3493) +++ disqus/disqus.js (working copy) @@ -31,6 +31,7 @@ disqus_developer = settings.disqus.developer || 0; disqus_def_name = settings.disqus.name || ''; disqus_def_email = settings.disqus.email || ''; + disqus_protocol = $("").get(0).protocol; // Language and SSO settings are passed in through disqus_config(). disqus_config = function() { @@ -51,7 +52,7 @@ // Make the AJAX call to get the Disqus comments. jQuery.ajax({ type: 'GET', - url: 'http://' + disqus_shortname + '.disqus.com/embed.js', + url: disqus_protocol + '//' + disqus_shortname + '.disqus.com/embed.js', dataType: 'script', cache: false }); @@ -63,7 +64,7 @@ // Make the AJAX call to get the number of comments. jQuery.ajax({ type: 'GET', - url: 'http://' + disqus_shortname + '.disqus.com/count.js', + url: disqus_protocol + '//' + disqus_shortname + '.disqus.com/count.js', dataType: 'script', cache: false }); Index: disqus/disqus.module =================================================================== --- disqus/disqus.module (revision 3493) +++ disqus/disqus.module (working copy) @@ -495,6 +495,7 @@ * Implements hook_block_view(). */ function disqus_block_view($delta = '') { + global $is_https; $num_items = variable_get($delta . '_items', 5); $avatars = variable_get($delta . '_showavatars', TRUE) ? '&avatar_size=' . variable_get($delta . '_avatarsize', 32) : '&hide_avatars=1'; $color = variable_get($delta . '_colortheme', 'blue'); @@ -502,6 +503,7 @@ $excerpt_length = variable_get($delta . '_excerpt_length', '200'); $hide_mods = variable_get($delta . '_hide_mods', FALSE) ? '1' : '0'; $domain = variable_get('disqus_domain', ''); + $protocol = $is_https ? 'https:' : 'http:'; if (!empty($domain)) { $subject = ''; $content = ''; @@ -509,25 +511,25 @@ case 'disqus_recent_comments': $subject = t('Recent Comments'); $content = << +
EOT; break; case 'disqus_popular_threads': $subject = t('Popular Threads'); $content = << +
EOT; break; case 'disqus_top_commenters': $subject = t('Top Commenters'); $content = << +
EOT; break; case 'disqus_combination_widget': $subject = t('Comments'); $content = << + EOT; break; case 'disqus_comments':