Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

add support for IntenseDebate comments #557

Closed
wants to merge 2 commits into from

4 participants

@pridkett

This allows blogs to use either Disqus or IntenseDebate. It is
particularly useful for individuals migrating from Wordpress blogs.
It introduces a handful of additional settings:

intense_debate_acct - the account from your IntenseDebate page
intense_debate_show_comment_count - boolean whether or not to show
comment count.

Signed-off-by: Patrick Wagstrom patrick@wagstrom.net

pridkett added some commits
@pridkett pridkett Add support for IntenseDebate
This allows blogs to use either Disqus or IntenseDebate. It is
particularly useful for individuals migrating from Wordpress blogs.
It introduces a handful of additional settings:

intense_debate_acct - the account from your IntenseDebate page
intense_debate_show_comment_count - boolean whether or not to show
comment count.

Signed-off-by: Patrick Wagstrom <patrick@wagstrom.net>
d53195c
@pridkett pridkett attempt to fix jXHR.js reference bug, see imathis#221 a52c361
@imathis
Owner

Thanks for the submission. I'm focusing on slimming Octopress down and I'm trying not to add plugins to Octopress right now. In 2.1 (coming soon) there will be a way to use any commenting system. Rather than having to edit the template or have the template support your commenting system of choice, I'm adding customization options so you can inject things in the head, footer and after posts easily.

I'd like there to be a healthy 3rd party plugins community, so If you host this as a repo somewhere, please add it to the list of 3rd party plugins.

@imathis imathis closed this
@bogn

Please do support these customizations as currently only disqus' privacy issues are holding me back from using octopress. I know I can change the template, but I don't want to invest too much time in template adjustments and a general solution is always preferred.

These inject options would be the most valuable feature to me.

@parkr
Collaborator

No need to let this hold you back - take these changes and merge them into your local clone! We just don't think they're right for the main repository.

@bogn

Sorry for being to vague, I was actually referring to the customizations for injecting things in the footer and such that imathis mentioned. Did I get you right that I can already merge those?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 12, 2012
  1. @pridkett

    Add support for IntenseDebate

    pridkett authored
    This allows blogs to use either Disqus or IntenseDebate. It is
    particularly useful for individuals migrating from Wordpress blogs.
    It introduces a handful of additional settings:
    
    intense_debate_acct - the account from your IntenseDebate page
    intense_debate_show_comment_count - boolean whether or not to show
    comment count.
    
    Signed-off-by: Patrick Wagstrom <patrick@wagstrom.net>
Commits on Jun 11, 2012
  1. @pridkett
This page is out of date. Refresh to see the latest.
View
4 .themes/classic/source/_includes/article.html
@@ -11,6 +11,9 @@ <h1 class="entry-title">{% if site.titlecase %}{{ page.title | titlecase }}{% el
{% if site.disqus_short_name and page.comments != false and site.disqus_show_comment_count == true %}
| <a href="{% if index %}{{ root_url }}{{ post.url }}{% endif %}#disqus_thread">Comments</a>
{% endif %}
+ {% if site.intense_debate_acct and index != true and page.comments != false and site.intense_debate_show_comment_count == true %}
+ | {% include intensedebate_commentcount.html %}
+ {% endif %}
</p>
{% endunless %}
</header>
@@ -25,4 +28,5 @@ <h1 class="entry-title">{% if site.titlecase %}{{ page.title | titlecase }}{% el
{% endif %}
{% else %}
<div class="entry-content">{{ content }}</div>
+{% include intensedebate.html %}
{% endif %}
View
2  .themes/classic/source/_includes/asides/github.html
@@ -12,7 +12,7 @@
if (!window.jXHR){
var jxhr = document.createElement('script');
jxhr.type = 'text/javascript';
- jxhr.src = '{{ root_url}}/javascripts/libs/jXHR.js';
+ jxhr.src = '{{ root_url }}/javascripts/libs/jXHR.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(jxhr, s);
}
View
12 .themes/classic/source/_includes/intensedebate.html
@@ -0,0 +1,12 @@
+{% comment %}
+Load script if intensedebate comments are enabled and page.comments is either empty (index) or set to true
+{% endcomment %}
+{% if site.intense_debate_acct and page.comments != false %}
+<script>
+var idcomments_acct = '{{ site.intense_debate_acct }}';
+var idcomments_post_id;
+var idcomments_post_url;
+</script>
+<span id="IDCommentsPostTitle" style="display:none"></span>
+<script type='text/javascript' src='http://www.intensedebate.com/js/genericCommentWrapperV2.js'></script>
+{% endif %}
View
11 .themes/classic/source/_includes/intensedebate_commentcount.html
@@ -0,0 +1,11 @@
+{% comment %}
+Load script if intensedebate comments are enabled and page.comments is either empty (index) or set to true
+{% endcomment %}
+{% if site.intense_debate_acct and page.comments != false %}
+<script>
+var idcomments_acct = '{{ site.intense_debate_acct }}';
+var idcomments_post_id;
+var idcomments_post_url;
+</script>
+<script type="text/javascript" src="http://www.intensedebate.com/js/genericLinkWrapperV2.js"></script>
+{% endif %}
View
4 _config.yml
@@ -92,6 +92,10 @@ delicious_count: 3
disqus_short_name:
disqus_show_comment_count: false
+# Intense Debate Comments
+intense_debate_acct:
+intense_debate_show_comment_count: false
+
# Google Analytics
google_analytics_tracking_id:
Something went wrong with that request. Please try again.