aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhttp://john.choffee.co.uk/ <http://john.choffee.co.uk/@web>2008-08-19 05:30:33 -0400
committerJoey Hess <joey@kitenet.net>2008-08-19 05:30:33 -0400
commit9733d1f79a5f1c62e059862edcd2d266f027a9b8 (patch)
treec5229562a66523116511e951854c9d4fee014456
parent86a1334459654a5b73243215458f3db6af12e858 (diff)
downloadikiwiki-9733d1f79a5f1c62e059862edcd2d266f027a9b8.tar
ikiwiki-9733d1f79a5f1c62e059862edcd2d266f027a9b8.tar.gz
Added a tip about intergrating Disqus comments into your blog.
-rw-r--r--doc/tips/Adding_Disqus_to_your_wiki.mdwn26
1 files changed, 26 insertions, 0 deletions
diff --git a/doc/tips/Adding_Disqus_to_your_wiki.mdwn b/doc/tips/Adding_Disqus_to_your_wiki.mdwn
new file mode 100644
index 000000000..01447b009
--- /dev/null
+++ b/doc/tips/Adding_Disqus_to_your_wiki.mdwn
@@ -0,0 +1,26 @@
+<a href="http://disqus.com">Disqus</a> is a comment system that you can add to your blog to manage comments.
+
+To add it to ikiwiki first create an account at disqus and add you blog. Then click on the Admin link at that top of the main page.
+
+In the admin section there should be a tab called "Tools" for you site. Select the "Generic Code" option to install your site and then tweak the settings so the comments box looks like you want. This will then create a bit of javascript. Copy that code.
+
+In ikiwiki templates edit the page.tmpl and somewhere down the bottom, I put mine just before the footer, paste in the code that you had from before. This will add a disqus comment box to every page on your site.
+
+If you want to change your blog to also use the comments then you need to edit the inlinepage.tmpl template as well. This time remove the lines
+
+ <TMPL_IF NAME="DISCUSSIONLINK">
+ <li><TMPL_VAR DISCUSSIONLINK></li>
+
+and replace with
+
+ <li>
+ <TMPL_IF NAME="PERMALINK">
+ <a href="<TMPL_VAR PERMALINK>">Comment</a>
+ <TMPL_ELSE>
+ <a href="<TMPL_VAR PAGEURL>">Comment</a>
+ </TMPL_IF>
+ </li>
+
+This changes the discussion link to a Comment link that takes you to the full page for that blog entry which should contain the disqus comments form that you added before.
+
+Note: This does then mean that to add a comment people need to have javascript enabled.