nodebb-plugin-blog-comments icon indicating copy to clipboard operation
nodebb-plugin-blog-comments copied to clipboard

Request Craft CMS support.

Open William-Owen opened this issue 9 years ago • 2 comments

https://craftcms.com/

William-Owen avatar Dec 18 '15 23:12 William-Owen

Craft CMS works with php so

<a id="nodebb-comments"></a>
<script type="text/javascript">
var nodeBBURL = '//your.nodebb.com',
    wordpressURL = '<?php get_site_url(); ?>',
    articleID = '<?php echo the_ID(); ?>',
    categoryID = 1; // OPTIONAL. Forces a Category ID in NodeBB.
                     //  Omit it to fallback to specified IDs in the admin panel.

(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>

and a little bit of https://craftcms.com/docs/ Is probably where I'll start~

theunknownartisthour avatar Mar 24 '16 08:03 theunknownartisthour

I don't have an instance of craft to test this on, please let me know if this plugin works for you. https://github.com/theunknownartisthour/nodebb-comments-craftcms

theunknownartisthour avatar Mar 24 '16 10:03 theunknownartisthour