• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

Putting my site's header/navigation elements above NodeBB's?

Scheduled Pinned Locked Moved Technical Support
18 Posts 5 Posters 1.2k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MattB
    wrote on last edited by
    #1

    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!

    1 Reply Last reply
    0
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    wrote on last edited by
    #2

    What do you mean "it didn't work"?

    M 1 Reply Last reply
    0
  • M Offline
    M Offline
    MattB
    replied to PitaJ on last edited by
    #3

    @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.

    PitaJP 1 Reply Last reply
    0
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    replied to MattB on last edited by
    #4

    @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.

    M 1 Reply Last reply
    0
  • M Offline
    M Offline
    MattB
    replied to PitaJ on last edited by
    #5

    @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?

    PitaJP 1 Reply Last reply
    0
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    replied to MattB on last edited by
    #6

    @MattB the plugin allows you to modify templates however you like

    1 Reply Last reply
    0
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    wrote on last edited by
    #7

    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.

    M 2 Replies Last reply
    0
  • M Offline
    M Offline
    MattB
    replied to PitaJ on last edited by
    #8

    @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:

    1. Copy the contents of nodebb-theme-persona/templates/topic.tpl
    2. Create nodebb-theme-mytheme/templates
    3. Create a new file nodebb-theme-mytheme/templates/topic.tpl with the contents of the original topic.tpl file
    4. Make your changes as necessary.
    5. ./nodebb build tpl && ./nodebb dev to rebuild and start NodeBB
    1 Reply Last reply
    0
  • M Offline
    M Offline
    MattB
    replied to PitaJ on last edited by
    #9

    @PitaJ nodebb-plugin-customize is working perfectly. Very easy to use. Thanks for your help.

    1 Reply Last reply
    0
  • phenomlabP Offline
    phenomlabP Offline
    phenomlab
    wrote on last edited by
    #10

    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 ?

    PitaJP 1 Reply Last reply
    0
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    replied to phenomlab on last edited by
    #11

    @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?

    phenomlabP 1 Reply Last reply
    0
  • phenomlabP Offline
    phenomlabP Offline
    phenomlab
    replied to PitaJ on last edited by
    #12

    @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.

    PitaJP 1 Reply Last reply
    1
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    replied to phenomlab on last edited by PitaJ
    #13

    @phenomlab you want version 2.0.0 of the plugin, it should work

    phenomlabP 1 Reply Last reply
    1
  • phenomlabP Offline
    phenomlabP Offline
    phenomlab
    replied to PitaJ on last edited by
    #14

    @pitaj Thanks. I'll try this.

    1 Reply Last reply
    0
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    wrote on last edited by PitaJ
    #15

    Actually 2.0.0 may not work until 1.17.0 releases next week

    phenomlabP dunlixD 2 Replies Last reply
    1
  • phenomlabP Offline
    phenomlabP Offline
    phenomlab
    replied to PitaJ on last edited by
    #16

    @pitaj it does seem to work, but has some errors in the console

    1 Reply Last reply
    0
  • gotwfG Offline
    gotwfG Offline
    gotwf Community Rep
    wrote on last edited by
    #17

    Good to know, eh? 👍

    1 Reply Last reply
    1
  • dunlixD Offline
    dunlixD Offline
    dunlix GNU/Linux Gamers
    replied to PitaJ on last edited by
    #18

    @pitaj WHHAAAT? NEXT WEEK? 🍾 😅
    yay

    1 Reply Last reply
    2

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development