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.
[nodebb-plugin-cards] Show cards when hovering over user links!
-
Updated to version 0.1.2, should fix the issue some of you are having on the latest NodeBB.
-
I've updated this to 0.1.3 to support the new compatibility hash, which I guess was the reason why it's disabled on this forum now :).
This plugin will soon get a large update which might be interesting to developers. I'll finally work on my original idea for this plugin because I need it for another plugin that I'm working on
-
Updated to 0.1.4, now compatible with NodeBB 0.9.x and its fancy user icons
Edit: I guess that "large update" never happened, huh
-
@Arc that would be possible, yes. It's just a matter of changing the HTML (and CSS), the code is already there.
-
@Arc I would definitely like to add it as a new design for the plugin. Feel free to submit a PR with it!
Otherwise you could always change the card template if you're using a custom theme. It's just a matter of adding a custom
cards/profile.tpl
to your theme. -
@Schamper Hey, thanks for the plugin! May I suggest some modifications?
I think it should check if the forum has the chat enabled before displaying the chat link in the card.
Also maybe avoid displaying the card of your own user or, at least, avoid displaying it on the navbar's dropdown menu since it falls out of the screen.
I also added a link to the profile from the username in addition to the picture, but I guess this is not very relevant.Thanks!
-
Version 0.2.0 was just published, containing some small fixes and a totally new look!
-
@Pappmann should be right now, actually
-
Awesome!!!
-
it works on our development forum which is at XXX.com ; however does not work on the prod, which is at XXX.com/forum
-
@baris thanks