@cagatay yeah this is one of the reasons why I made the username customizable.
![baris baris](/assets/uploads/profile/uid-1/1-profileavatar-1709393009391.jpeg)
<baris>
Posts
-
[nodebb-plugin-openai] NodeBB OpenAI Plugin -
Help!!!!Make sure you have colors and icons selected for each category, then try a rebuild and restart. What did you set your home page to? On this forum the home page is set to the categories page.
-
How to delete file using apiYou need to send a csrf token with your request, check someone of the post requests we make, we get the csrf token from config.csrf_token.
-
[nodebb-plugin-openai] NodeBB OpenAI PluginYou need to add credits to use the api, if you don't have any you will get that error message.
-
Help!!!!#1 is an html widget placed in the brand header area.
#2 is a widget from the nodebb-plugin-recent-cards which placed in the header of categories page.
#3 is an html widget with some custom content.
#4 is the popular tags widget from nodebb-widget-essentials.
You can place all these at
/admin/extend/widgets
after selecting the categories.tpl from the dropdown. Here is how it looks on this forum. -
[nodebb-plugin-openai] NodeBB OpenAI PluginThis plugin let's users ask questions to ChatGPT in their forum posts by mentioning the chatgpt user with @<chat_gpt_username>. The user is created by admins and their username is set in the ACP page.
You can also allow users to send private messages to the chatgpt user.
If the chat gpt user is added to a public room it can answer questions by mentioning like in topics.
The model used can be changed in the ACP page.
Get an API key from openai at https://platform.openai.com/api-keys and save it in the ACP page of the plugin and restart your forum.
Dependencies
This plugin requires nodebb-plugin-mentions to be installed and active.
Installation
npm install nodebb-plugin-openai
Screenshots
More Info
GitHub - NodeBB/nodebb-plugin-openai: NodeBB OpenAI plugin
NodeBB OpenAI plugin. Contribute to NodeBB/nodebb-plugin-openai development by creating an account on GitHub.
GitHub (github.com)
-
I need a simple blacklist of words that will prevent a post to be submitted.The plugin should have two settings one for masked works one for preventing the post.
-
How can I check that REDIS is being using for sessions?Another method is to use the MONITOR command, it will show what the redis server is doing.
-
I need a simple blacklist of words that will prevent a post to be submitted.GitHub - NodeBB-Community/nodebb-plugin-beep: NodeBB Plugin that allows users to censor curse words in their posts.
NodeBB Plugin that allows users to censor curse words in their posts. - NodeBB-Community/nodebb-plugin-beep
GitHub (github.com)
Should do what you want I think, set the illegal words in that plugin and it should prevent posts.
-
NodeBB on Android / PWAIs this only happening on your forum or here as well? Is your forum public?
-
Topic create and update via API and event sequencingA socket event is sent when a new topic or reply is made, they are called
event:new_topic
andevent:new_post
. We listen to that and update the ui when a new reply comes in. -
Questions about VPS installation and escalationAlways start simple, and scale vertically until it becomes a bottleneck. Scaling horizontally is only necessary when you have a lot of concurrent users and lots of traffic. Usually we match the port count to the cpu count of the VPS.
-
Add custom data in nodebb dashboardAdding the menu item into the template doesn't create a express route, you have to do that separately. https://github.com/NodeBB/nodebb-plugin-quickstart/blob/master/library.js#L37 I suggest writing a plugin for that instead of ovewriting the core js files.
-
Add custom data in nodebb dashboardTo override it you would create a nodebb plugin and put a template file at the same path. So in your plugin it would be
templates/admin/partials/navigation.tpl
then you would copy the file from core and make your changes.Another option is to just add a link in there via JS to do this add a js file in your plugin to include it on the acp page. The quickstart plugin has a sample https://github.com/NodeBB/nodebb-plugin-quickstart/blob/master/plugin.json#L20.
In that file you can select the correct element and insert a link like below.
$('#collapseDashboard .accordion-body').append(` <a class="btn-ghost-sm justify-content-start text-decoration-none" href="${config.relative_path}/admin/mycustomdashboard">My Custom Dashboard</a> `);
-
Top Posters add on the homepageI will add a top posters widget to widget-essentials plugin since it is a pretty common request.
-
Add custom data in nodebb dashboardThere is no hook for the navigation items in the acp, you will have to modify or override the template at
src/views/admin/partials/navigation.tpl
or add your menu item via javascript after the page loads. -
Top Posters add on the homepageYou need to build a widget to display that, getting the data for the top posters can be done like below.
const uids = await db.getSortedSetRevRange('users:postcount', 0, 9); const userData = await user.getUserData(uids);
-
open by default Navigation section.That setting was added in one of the later releases, you would need to upgrade to get it.
-
Make homepage the /recent page the default homepage?This setting is available at
/admin/settings/general#home-page
, you can change the home page to/recent
there. -
3.8.0 Upgrade SupportMaybe you can use npm link, or just symlink it into node_modules folder. Running npm i might remove the symlink though.