Skip to content
This repository

add support for IntenseDebate comments #557

Closed
wants to merge 2 commits into from

4 participants

Patrick Wagstrom Brandon Mathis bogn Parker Moore
Patrick Wagstrom

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

added some commits May 12, 2012
Patrick Wagstrom 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
Patrick Wagstrom attempt to fix jXHR.js reference bug, see imathis#221 a52c361
Brandon Mathis
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.

Brandon Mathis imathis closed this December 29, 2012
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.

Parker Moore
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

Showing 2 unique commits by 1 author.

May 12, 2012
Patrick Wagstrom 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
Jun 11, 2012
Patrick Wagstrom attempt to fix jXHR.js reference bug, see imathis#221 a52c361
This page is out of date. Refresh to see the latest.
4  .themes/classic/source/_includes/article.html
@@ -11,6 +11,9 @@ <h1 class="entry-title">{% if site.titlecase %}{{ page.title | titlecase }}{% el
11 11
         {% if site.disqus_short_name and page.comments != false and site.disqus_show_comment_count == true %}
12 12
          | <a href="{% if index %}{{ root_url }}{{ post.url }}{% endif %}#disqus_thread">Comments</a>
13 13
         {% endif %}
  14
+        {% if site.intense_debate_acct and index != true and page.comments != false and site.intense_debate_show_comment_count == true %}
  15
+         | {% include intensedebate_commentcount.html %}
  16
+        {% endif %}
14 17
       </p>
15 18
     {% endunless %}
16 19
   </header>
@@ -25,4 +28,5 @@ <h1 class="entry-title">{% if site.titlecase %}{{ page.title | titlecase }}{% el
25 28
   {% endif %}
26 29
 {% else %}
27 30
 <div class="entry-content">{{ content }}</div>
  31
+{% include intensedebate.html %}
28 32
 {% endif %}
2  .themes/classic/source/_includes/asides/github.html
@@ -12,7 +12,7 @@
12 12
         if (!window.jXHR){
13 13
             var jxhr = document.createElement('script');
14 14
             jxhr.type = 'text/javascript';
15  
-            jxhr.src = '{{ root_url}}/javascripts/libs/jXHR.js';
  15
+            jxhr.src = '{{ root_url }}/javascripts/libs/jXHR.js';
16 16
             var s = document.getElementsByTagName('script')[0];
17 17
             s.parentNode.insertBefore(jxhr, s);
18 18
         }
12  .themes/classic/source/_includes/intensedebate.html
... ...
@@ -0,0 +1,12 @@
  1
+{% comment %}
  2
+Load script if intensedebate comments are enabled and page.comments is either empty (index) or set to true
  3
+{% endcomment %}
  4
+{% if site.intense_debate_acct and page.comments != false %}
  5
+<script>
  6
+var idcomments_acct = '{{ site.intense_debate_acct }}';
  7
+var idcomments_post_id;
  8
+var idcomments_post_url;
  9
+</script>
  10
+<span id="IDCommentsPostTitle" style="display:none"></span>
  11
+<script type='text/javascript' src='http://www.intensedebate.com/js/genericCommentWrapperV2.js'></script>
  12
+{% endif %}
11  .themes/classic/source/_includes/intensedebate_commentcount.html
... ...
@@ -0,0 +1,11 @@
  1
+{% comment %}
  2
+Load script if intensedebate comments are enabled and page.comments is either empty (index) or set to true
  3
+{% endcomment %}
  4
+{% if site.intense_debate_acct and page.comments != false %}
  5
+<script>
  6
+var idcomments_acct = '{{ site.intense_debate_acct }}';
  7
+var idcomments_post_id;
  8
+var idcomments_post_url;
  9
+</script>
  10
+<script type="text/javascript" src="http://www.intensedebate.com/js/genericLinkWrapperV2.js"></script>
  11
+{% endif %}
4  _config.yml
@@ -92,6 +92,10 @@ delicious_count: 3
92 92
 disqus_short_name:
93 93
 disqus_show_comment_count: false
94 94
 
  95
+# Intense Debate Comments
  96
+intense_debate_acct:
  97
+intense_debate_show_comment_count: false
  98
+
95 99
 # Google Analytics
96 100
 google_analytics_tracking_id:
97 101
 
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.