@eesty what is the company policy?
It seems it would probably be cheaper to not migrate from NodeBB but have us host it for you as a vendor.
That is what happened to the FusionAuth forum 🙂
Hi, I'd like to put my site's header and navigation elements above the NodeBB header/nav.
I tried creating my own header.tpl with my own navigation HTML placed above NodeBB's navbar but it didn't work.
Any help would be greatly appreciated. Thanks!
What do you mean "it didn't work"?
@PitaJ I made a nodebb-theme-mytheme, copied the header template and added my own header/nav above the nodebb header. I also removed the fixed class from the nodebb header so it's not fixed to the top of the page. Then I did a ./nodebb rebuild tpl and restarted it. No changes took place. Its not taking my header template over the standard one.
@MattB did you activate your theme? Did you link your theme into node_modules? You may consider trying nodebb-plugin-customize instead of creating a custom theme if you're only changing the one template.
@PitaJ does nodebb-plugin-customize allow me to add a header above all of the NodeBB stuff? Also, is there a place I can read about activating and linking my theme?
@MattB the plugin allows you to modify templates however you like
Re: activating theme, what did you do when you made nodebb-theme-mytheme? It needs to be accessible through node_modules (whether it lives directly inside or is symlinked in) and you need to select the theme for use either in the ACP or by running
./nodebb activate nodebb-theme-mytheme. That's what I was referring to by activation.
@PitaJ okay great thanks! I'll try that. All I did was follow these steps:
e.g. If you want to modify topic.tpl, you would:
@PitaJ nodebb-plugin-customize is working perfectly. Very easy to use. Thanks for your help.
I tried installing
nodebb-plugin-customize which works fine, but on activating, when I try to edit a template, I just get the title, and then a blank page. Did I miss something ?
@phenomlab what version of the customize plugin do you have installed? Are there any errors in the browser console or the NodeBB logs when you visit that page? Also what version of NodeBB and what version of Node?
@pitaj I thought there was only one version of the plugin according to the GitHub page. I'm running v14.16.1 of NodeJS, and NodeBB version 1.16.2.
Nothing in the browser console either.
@phenomlab you want version 2.0.0 of the plugin, it should work
@pitaj Thanks. I'll try this.
Actually 2.0.0 may not work until 1.17.0 releases next week
@pitaj it does seem to work, but has some errors in the console
Good to know, eh?
@pitaj WHHAAAT? NEXT WEEK?