...
Code Block |
---|
command: nodebb activate nodebb-plugin-plugin-name Example: nodebb activate nodebb-plugin-write-api |
Step-1: Create a group(Category Owner) in Nodebb
create a group "Category Owner" and add the members who is having content creator/ mentor role. (Vinu is exposing one api)
Login to Nodebb as a admin
Go to admin pannel
Click on Manage and select Groups
Create a gropup by click on “+“ (Icon) right side bottom, It will open a popup
Enter group name and click on creat, It will create a group.
Add members who is having creator/mentor role into that group
go to admin panel and click on Manage tab select Groups
You can see the “Category Owner“ group, click on that one. It will open this page and click on Icon which is highlight. It will open one popup and you have to search by user username and select that user and click on save.
Step-2: Create category in Nodebb
We need to create a categories in Nodebb and enable privileges based on roles.
Steps to create category
Login as admin and go to admin pannel
click on “Manage“ tab and select “Categories“
You can see “+“ icon at right side bottom, click on that, It will open a popup. Enter Category name and click on Save. It will create a category “Covid 19 Guidelines”
Again click on “+“ Icon and create one more category for a batch “Batch category“ and select parent category as “Covid 19 Guidelines“, It will create one more category under parent category (Covid 19 Guidelines).
Same way create “Announcements“ and “General Discussion“ under “Covid19 GuideLine-Batch1“
Step-3: Enable Previlages For users.
We have to give the permission based on use roles.
Steps to add privileges for a users
Login as a admin
Go to admin panel
Click on “Manage“ tab and select “Privileges“, It will redirected to Privileges selection
You can a dropdown button, click on that and select “Covid 19 Guidelines - Batch1“ category
Add a group(Category Owner created in step1) to that category, click on the button “Add Group“ it will open a popup and type group name and select
Normal register users, Verified users and unverified users can not create a topic so deselect that check box under create topic selection.
Category owners can create a topics so select the check box under create topic selection and select checkbox under Moderators also.
After adding privileges to “Covid 19 Guidelines- Batch1“ select “Announcements“ Repeat step no 6 and 7.
Select “General Discussion“ under “Covid 19 Guidelines- Batch1“, In this section any user can create a topic so enable the checkbox for all users under create topic section.
Step-4: Verify the plugins
We have 3 main plugins
nodebb-plugin-write-api
nodebb-plugin-create-forum
nodebb-plugin-sunbird-api
check above 3 plugins in active state or not, If not active state, Activate.
Step-5: Creating Nodebb Token
We need master token for creating user and user token in the plugins. without master we can’t generate the user token and all nodebb apis need user token to perform nodebb operations.
...
4. Click on Create Token in Master token section
...
Step-6: Store Sunbird identifier mapped with NodeBB category
Sunbird content(identifier) mapping to NodeBB Category. This is the new collection added to the Mongo DB to store the sunbird identifier mapping with the nodebb category.
...