Created
May 24, 2014 00:50
-
-
Save psychobunny/ad7c9efb87ac76002bb9 to your computer and use it in GitHub Desktop.
Wordpress integration with NodeBB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try https://github.com/beingmohit/NodeBB-Wordpress-Auth