Skip to content

Instantly share code, notes, and snippets.

@boertel
Last active December 18, 2015 22:09
Show Gist options
  • Save boertel/5852446 to your computer and use it in GitHub Desktop.
Save boertel/5852446 to your computer and use it in GitHub Desktop.
Integration with DISQUS
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = '<disqus_shortname>'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
// Push comment activity to PunchTab
var disqus_config = function () {
this.callbacks.onNewComment = [function() { _ptq.push(['comment', 1]); }];
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment