After some more code digging and experiments I can answer my own question. A theme is a normal plugin and as such does not inherit any behavior from other plugins.
So you need to copy everything you need from the base theme library.js to your child theme. And of course, you need to declare client scripts explicitly.
Loading of missing templates from base theme is the only link between the base and the child theme.
kimmanuel last edited by
I have installed and enabled nodebb-plugin-emoji in my workspace, however when I am loading the page with posts that contains emoji codes, images are not loading. I have noticed also in my terminal this warning:
warn: [plugins/nodebb-plugin-emoji] "callbacked" deprecated as of 0.4x. Use asynchronous method instead for hook: filter:post.parse
Is this something related for not loading the images? What should I do?
Can you confirm what URL the emojis are trying to access? If the URL is
localhost, open your config.json file, and change your base URL from localhost to either the IP of your server, or the domain name. (Either will work)
Also make sure you have either nodebb-plugin-emojis OR emojis-extended. Having both will conflict and not work. Also make sure that if you have nginx or apache configured, to set use port to false in config.json. (Config.json is in the root of your nodebb folder)
kimmanuel last edited by kimmanuel
@a_5mith I have nodebb-plugin-emojis AND emojis-extended installed. I removed the nodebb-plugin-emojis plugin but still not working, I have already configure config.json file and changed it to 127.0.0.1. New warning has prompted me:
warn: [socket.io] Unrecognized message: modules.emojiExtended
I have also nodebb-plugin-emoji-skype installed.
127.0.0.1 is localhost. If you do this on a live site, the URL of the images will be looking on the visiting users computer, not your server. If you're testing locally, then it's fine. But if it's on any kind of external server, localhost/127.0.0.1 won't work. Try disabling emoji Skype as well, then restart nodebb. I use emoji extended (it has the most options) and it works fine on 0.5.0-2/3.
I know this is quite old, but i encountered the same problem. I had localhost written in my config.json, but changed it to my domain. I still get
GET http://localhost:4567/plugins/nodebb-plugin-emoji-extended/images/smile.png net::ERR_CONNECTION_REFUSED
I also restarted my server with the admin gui - is a hard restart or reinstallation necessary for the changes to take effect?