• 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

How do you modify what your website displays to users?

Scheduled Pinned Locked Moved Unsolved NodeBB Development
5 Posts 4 Posters 1.7k 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.
  • L Offline
    L Offline
    LordRelish
    wrote on last edited by
    #1

    This is somewhat of a generic question about nodebb architecture since I seem to not understand how this software works at all. I am ancient web developer by today's standards and historically I've used forum software like phpbb where you just edit a file and the change is reflected on the site right away. But here all site content must be stored in a database or something?

    For example, when you are posting a new topic there is in small writing "COMPOSE" with a question mark next to it. Clicking that question mark lets you know the forum is powered by markdown (in my case) and a link to the documentation. I want to update that section a bit to show a few examples of the syntax to get people started. How do I do that?
    I ran a grep for the specific statement and found it to be in /node_modules/nodebb-plugin-markdown/index.js. Editing that, deactivating and reactivating the plugin, and reloading the board had no effect on the text displayed (even after clearing all browser content and forcing a reload). I also tried to update the footer in a similar manner, to no avail.

    Where do I have to edit things so they are reflected on the site?

    1 Reply Last reply
    0
  • reidR Offline
    reidR Offline
    reid GNU/Linux
    wrote on last edited by
    #2

    In your NodeBB directory, there should be a node_modules folder. Inside there, you'll want to find the folder of the theme you're using. So, for example, if you're using lavender, you'll want to search for nodebb-theme-lavender (it'll be nodebb-theme-themename). Inside there is a templates directory, which should allow you to edit some parts of the theme.

    To edit the composer, go to your NodeBB root, and then public/templates. Copy the composer.tpl file into your nodebb-theme-lavender directory, edit it, and then reload your forum. That should do the trick.

    1 Reply Last reply
    1
  • julianJ Offline
    julianJ Offline
    julian GNU/Linux
    wrote on last edited by
    #3

    @LordRelish said:

    I ran a grep for the specific statement and found it to be in /node_modules/nodebb-plugin-markdown/index.js. Editing that, deactivating and reactivating the plugin, and reloading the board had no effect on the text displayed

    Hm.. this should work, actually.

    1 Reply Last reply
    0
  • psychobunnyP Offline
    psychobunnyP Offline
    psychobunny
    wrote on last edited by
    #4

    Wait, we already allow you to modify that help text in the ACP itself 😛 no need to change code!

    1 Reply Last reply
    0
  • L Offline
    L Offline
    LordRelish
    wrote on last edited by
    #5

    @psychobunny The problem is that with the ACP Post-section feature, you can only add more text, but you can't modify existing text.

    1 Reply Last reply
    0

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