@pitaj Thank you very much!
Posts made by noob111
-
Rename some functions using plugin?
Hi, is this possible to rename some sort of things using plugin?
I want to to change
"Group" to "Teams",
"Vote" to "Likes"
"Upvoter" to "Liked"
"Downvoter" to "Disliked",
things kinds of things, without modifying original nodebb original source code (modifying themes in node_modules is fine though).
If I have to make a plugin that uses hooks, please let me know which hooks are related to this.I don't know what to start first, which is proper way to do this. I guess modifying theme looks simplest, but still unsure if that is proper way.
Thank you very much for helps.
-
RE: (v1.16.0) Error: ENOENT: no such file or directory, open '/nodebb/node_modules/nodebb-plugin-require/plugin.json'
No sorry, that didn't solve. But following worked:
- After importing mybb, upgrade it to v1.16.0 which produces "Error: ENOENT: no such file or directory, open '/nodebb/node_modules/nodebb-plugin-require/plugin.json' " as mentioned above.
- Back up both database and any image files imported from mybb under public/uploads/files
- Delete whole nodebb files and database
- Install original v1.16.0 (git clone -b v1.16.x https://github.com/NodeBB/NodeBB.git)
- Remove only the database, then restore database and image files using backups
- Works well, it doesn't produce any error even after installing quickstart plugin.
Additionally, https://github.com/NodeBB/nodebb-plugin-quickstart doesn't work on v1.16.0.
It shows following error on Chrome and the page got frozen while loading:
colorpicker.js:11 Uncaught TypeError: n.ColorPicker is not a function
at HTMLInputElement.<anonymous> (colorpicker.js:11)
at Function.each (jquery.js:381)
at C.fn.init.each (jquery.js:203)
at Object.n.enable (colorpicker.js:8)
at o (admin.js:31)
at Object.i.init (admin.js:9)
at ajaxify.js:336
at Object.execCb (require.js:1696)
at n.check (require.js:883)
at n.<anonymous> (require.js:1139)Anyways, it's not to be discussed here I guess.
Thank you very much! -
RE: (v1.16.0) Error: ENOENT: no such file or directory, open '/nodebb/node_modules/nodebb-plugin-require/plugin.json'
@pitaj
It doesn't fail loading the page, but just generates error on nodebb log.
But I also tried following:
./nodebb reset -a
./nodebb buildAnd then remove "nodebb-plugin-require" plugin in "node_modules".
Then it generates no more error in nodebb log.But it then gives this instead:
warn: [meta/dependencies] Bundled plugin nodebb-plugin-require not found, skipping dependency check.
warn: [plugins/nodebb-theme-persona] The plugin.json field "library" is deprecated. Please use the package.json field "main" instead.And then I installed https://github.com/NodeBB/nodebb-plugin-quickstart
then it starts warning again "error: Error: ENOENT: no such file or directory, open '/home/myid/nodebb/node_modules/nodebb-plugin-require/plugin.json'".So, I wondered if nodebb-plugin-quickstart plugin itself only had a problem, so remove all nodebb files and db, then installed original version of v1.16.0 without importing datas from mybb, then installed nodebb-plugin-quickstart, but then it gives no error when entering admin plugin page. Thus I think only upgraded nodebb gets that error.
-
RE: (v1.16.0) Error: ENOENT: no such file or directory, open '/nodebb/node_modules/nodebb-plugin-require/plugin.json'
@pitaj Ops, sorry. yes you are right.
but there isn't such file plugin.json both before and after the upgrade. What should I do?
Thank you very much. -
(v1.16.0) Error: ENOENT: no such file or directory, open '/nodebb/node_modules/nodebb-plugin-require/plugin.json'
Hello, I upgraded from v1.12.1 to v1.16.0 after importing things from mybb to nodebb.
After upgrade, whenever I go into admin plugin page
(http://localhost:4567/admin/extend/plugins), log generates following error:2020-12-25T17:06:46.163Z [4567/4022] - error: Error: ENOENT: no such file or directory, open '/home/myid/nodebb/node_modules/nodebb-plugin-require/plugin.json' 2020-12-25T17:06:46.643Z [4567/4022] - error: Error: ENOENT: no such file or directory, open '/home/myid/nodebb/node_modules/nodebb-plugin-require/plugin.json'
It generates same message 2 times each time I go to that page.
Following is code in nodebb/node_modules/nodebb-plugin-require/plugin.json:
{ "_from": "nodebb-plugin-require@^0.0.6", "_id": "nodebb-plugin-require@0.0.6", "_inBundle": false, "_integrity": "sha512-sa3lhcrDsvgo/IwtluW9VrCXECEDb7e9QRSI1Rmdc4+Smnkuzyf0xWY0GVXSU3L8XWPDTztKcnxR9RRo6E2x+A==", "_location": "/nodebb-plugin-require", "_phantomChildren": {}, "_requested": { "type": "range", "registry": true, "raw": "nodebb-plugin-require@^0.0.6", "name": "nodebb-plugin-require", "escapedName": "nodebb-plugin-require", "rawSpec": "^0.0.6", "saveSpec": null, "fetchSpec": "^0.0.6" }, "_requiredBy": [ "/nodebb-plugin-import" ], "_resolved": "https://registry.npmjs.org/nodebb-plugin-require/-/nodebb-plugin-require-0.0.6.tgz", "_shasum": "14c7642996afef7a504c34e8a54d5753e5bd55f3", "_spec": "nodebb-plugin-require@^0.0.6", "_where": "/home/myid/nodebb/node_modules/nodebb-plugin-import", "author": { "name": "https://github.com/akhoury" }, "bugs": { "url": "https://github.com/akhoury/nodebb-plugin-require/issues" }, "bundleDependencies": false, "deprecated": false, "description": "Easily require NodeBB/src modules from within any plugin when running that as a stand-alone script", "homepage": "https://github.com/akhoury/nodebb-plugin-require#readme", "license": "MIT", "main": "index.js", "name": "nodebb-plugin-require", "nbbpm": { "compatibility": "*", "index": false }, "repository": { "type": "git", "url": "git+https://github.com/akhoury/nodebb-plugin-require.git" }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "version": "0.0.6" }
I used following commands when upgrading (Ubuntu 18.04.4 LTS):
nvm install v14.15.3 # In order to upgrade node.js version to install higher nodebb version
nvm use v14.15.3 # In order to upgrade node.js version to install higher nodebb version
nvm alias default v14.15.3 # In order to upgrade node.js version to install higher nodebb version
git fetch
git reset --hard origin/v1.16.x
./nodebb reset plugins # only if it generates "Error: EMFILE: too many open files" error while upgrading
./nodebb reset themes # only if it generates "Error: EMFILE: too many open files" error while upgrading
./nodebb upgradeThank you very much.
-
RE: NodeBB + ReactJS
I am now wondering why frontend like React is even needed. Usually React is well-known to works well with node.js backend and allow us to experience smooth web performance because React doesn't re-render whole page newly like refresh since it only modifies virtual dom. But since Node.js itself seems like being able to modify virtual dom without completely re-rendering whole page like old forum softwares do (xenforo, phpbb and so on). I haven't seen nodebb re-render whole page per each page (url) change request, rather it re-render only the parts needed.
-
category list does not show up when to select parent category
Hello, I have imported database from the mybb using importer tool, then upgraded nodebb forum to newest one (1.13.2)
I wanted to make a category become subcategory of another. But like image shows,Nothing is shown (but I can still select any of those blank fields).
How do I fix this?
-
RE: What happen if there are too many category?
@oplik0 ah ok, thank you very much.
-
What happen if there are too many category?
Let's say I have 10000+ categories... And only shows 10 of them and load more with pagination... I also need to search the category by typing the name of the category if there are too many.
Is this possible? What Nodebb does for such case in order to handle too many categories?
-
RE: why nodebb database has objectid and incremental id together?
I tried but objectid could be replaced if _id was replaced with any type like integer which is same type as incremental ids.
-
why nodebb database has objectid and incremental id together?
Isnt it waste of memory that it has both of them?
Can't objectid (which is default by mongodb) be deleted since it already has unique ids like uid, pid, tid and so on? -
RE: Load pages except global header without refreshing entire page
@PitaJ said in Load pages except global header without refreshing entire page:
nodebb-plugin-customize
Thanks, it worked!
-
Load pages except global header without refreshing entire page
I need this react-like feature that loads pages except the header (because in the global header I put iframe video and I don't want it to be stopped during moving each pages and posts of the forums), is there such a plugin doing this?
-
Can NodeBB apply different theme per each forums on index page (home or top)?
I am thinking of using nodeBB but... need to ask a question.
On the top of index page where shows all the forums, can nodeBB apply different themes for each forums?
For example, for gaming forum, i apply pewter theme. For forum like announcement I apply regular theme.
Thank you very much.