Skip to content

Instantly share code, notes, and snippets.

@psychobunny
Created May 24, 2014 00:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save psychobunny/ad7c9efb87ac76002bb9 to your computer and use it in GitHub Desktop.
Save psychobunny/ad7c9efb87ac76002bb9 to your computer and use it in GitHub Desktop.
Wordpress integration with NodeBB
<?php
if ( post_password_required() )
return;
?>
<a id="nodebb/comments"></a>
<script type="text/javascript">
var nodeBBURL = 'http://forum.burnaftercompiling.com',
articleID = '<?php echo the_ID(); ?>';
(function() {
var nbb = document.createElement('script'); nbb.type = 'text/javascript'; nbb.async = true;
nbb.src = nodeBBURL + '/plugins/nodebb-plugin-blog-comments/lib/wordpress.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(nbb);
})();
</script>
<noscript>Please enable JavaScript to view comments</noscript>
Copy link

ghost commented Nov 6, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment