psychobunny / nodebb-plugin-blog-comments

Lets NodeBB act as a comments engine/widget for your blog
BSD 2-Clause "Simplified" License
98 stars 55 forks source link

Not saved category ID - Node BB v0.9.3 #43

Open thanhhungtn1 opened 8 years ago

thanhhungtn1 commented 8 years ago

Currently, whatever I entered in the categoryId in setting page not has any effect. It's still posting articles to catID 1 which is "Announcement" for me. I want it to post into "Comments" category so I changed the category id to 4 but no change. I entered another id which is 2 for example. Still post to the categoryid 1.

thanhhungtn1 commented 8 years ago

In addition, I'm using wordpress. And when I deleted the post in the category. The comments system still showed up in the articles but cannot posting comments.

frandiox commented 8 years ago

@thanhhungtn1 Did you change the category ID in the admin panel or in the code? There is a new variable since the last release:

var nodeBBURL = '//your.nodebb.com',
    articleID = '<?php echo the_ID(); ?>',
    categoryID = 1;

Set categoryID it to 0 in order to use what you specified in the admin panel.

About the second problem, check #40.