Skip to content
  • V2MM theme

    NodeBB Themes
    1
    3 Votes
    1 Posts
    4k Views
    R

    Hi, guys. I built a forum called V2MM for Chinese freelancers, and I built a theme with the same name.

    nodebb-theme-v2mm on github.

    Its still under development, but there are a few unique features:

    Show topics of subcategories in parent categories. Support special topics, such as external link topics. Special category template.

    0_1479194670448_Screenshot from 2016-11-15 15-12-56.png
    0_1479194684150_Screenshot from 2016-11-15 15-13-23.png

  • 7 Votes
    8 Posts
    6k Views
    N

    It looks like the discussion content in this topics has become outdated, so should I refer to the docs site directly instead?

    I want to customize the default home page and post detail page, which involves layout and style customization, so, am I correct to develop a new theme for this?

  • 1 Votes
    1 Posts
    2k Views
    ShardS

    Aside from building some pretty if/else blocks, is there any way to specify a distinct template for a particular forum or subforum?

  • 0 Votes
    3 Posts
    2k Views
    frissdiegurkeF

    @Mega said:

    config['theme:id']

    Thanks!

  • 0 Votes
    1 Posts
    1k Views
    ogerlyO

    the uprade worked flawlessly
    NPM install I've done
    but in "node app" I get this error ..
    I've loaded a new persona plugin. but the error remains. I get NodeBB simply not start?

    Bildschirmfoto vom 2015-09-27 10:50:10.png

  • 0 Votes
    3 Posts
    2k Views
    M

    Thank you so much!

  • Strange behavior

    Technical Support
    4
    1 Votes
    4 Posts
    2k Views
    P

    NodeBB's cache buster is based on its current git hash (so if you've upgraded it will try to send you the new CSS and JS, which works well, but it remains the same if switching themes, which results in your issue)

    I suppose the dev team hasn't run into this because we usually run with cache disabled while testing (and because Persona is so awesome so why switch? Kidding)

    Link Preview Image Update cache buster when switching themes 路 Issue #3573 路 NodeBB/NodeBB

    Right now cache buster is based on git hash, which works fine when upgrading. Not as good when switching themes or installing plugins. I suggest modifying cache buster algo to just generate a new one every time forum restarts or reloads

    favicon

    GitHub (github.com)

  • 0 Votes
    2 Posts
    2k Views
    barisB

    Post your plugin.json maybe it has a syntax error. Also did you put your theme in node_modules and activate it from the ACP?

  • 3 Votes
    3 Posts
    3k Views
    julianJ

    @Codejet said:

    can you still manually change to lavender in ACP after install / upgrade ? and run it this way

    what is the benefit of adding a hook listener, or are u removing vanilla/lavender functionality

    Yes, this change doesn't affect how you use NodeBB, it only affects you if you're a theme developer (with a Lavender-variant or vanilla-based theme) and you want to maintain compatibility post v0.8.x

  • 0 Votes
    5 Posts
    3k Views
    S

    Agree, just have to get used to the differences between what you have in NodeBB and PHP temptate engines like Smarty and vBulletin's built in engine.

  • 0 Votes
    5 Posts
    4k Views
    drewD

    @julian the inherited themes didn't work before, but is it possible that now you've made this commit:
    https://github.com/NodeBB/nodebb-theme-lavender/commit/7f8e9e4df0f0d20e8b83ab096c1443544df9bd4c
    There is scope for the template inheritance to be used there instead of the hardcoded rule 'nodebb-theme-vanilla/templates'?

    Right now I'm maintaining an entire theme that's a fork of lavender just so I can restyle one or two pages.

  • 0 Votes
    1 Posts
    2k Views
    N

    How to revamp upvote in custom theme? Do you have any recommendations. Target is to have my own handler for click, because It isn't enough just alter upvoted class 馃槈

    My thoughts:

    Create custom html component in post.tpl, ex: component="post/like" Define module, that should be used with - forum/topic/posts, to add click handler.
  • 0 Votes
    6 Posts
    4k Views
    N

    @psychobunny nice, It's very helpful.

  • 0 Votes
    3 Posts
    2k Views
    Moritz FriedrichM

    Noooo, they would have been so cool! 馃槃

  • 0 Votes
    3 Posts
    3k Views
    N

    Hm. Seems better to create custom theme. Because plugin - Category Sections, alters template - public/templates/categories.tpl

  • app.template

    NodeBB Development
    3
    1 Votes
    3 Posts
    3k Views
    barisB

    The above code looks incorrect due to a bug in templates.js

    Take a look here

    Link Preview Image nodebb-theme-lavender/templates/header.tpl at master 路 NodeBB/nodebb-theme-lavender

    A simple theme for NodeBB. Check out the theming guide that accompanies this work - nodebb-theme-lavender/templates/header.tpl at master 路 NodeBB/nodebb-theme-lavender

    favicon

    GitHub (github.com)

    You header.tpl should have that block in the <head> tag.

    What problem are you having exactly?

  • 0 Votes
    3 Posts
    2k Views
    barisB

    Should be fixed on lavender 1.0.1, if user didn't have a preference set in localStorage it was defaulting to fluid width whereas the template was starting with fixed width.

    Link Preview Image default to fixed width if not set in local storage 路 NodeBB/nodebb-theme-lavender@339e43e

    A simple theme for NodeBB. Check out the theming guide that accompanies this work - default to fixed width if not set in local storage 路 NodeBB/nodebb-theme-lavender@339e43e

    favicon

    GitHub (github.com)

  • 2 Votes
    12 Posts
    7k Views
    X

    @baris I noticed that when you refresh home page, the home page address is converted into - https://community.nodebb.org/category/2/general-discussion (example)

    Is it possible to make the home page has always had an address https://community.nodebb.org?

  • 0 Votes
    9 Posts
    5k Views
    J

    Awesome! Thanks guys!

  • 3 Votes
    14 Posts
    8k Views
    P

    @trevor said:

    Ah okay, cool stuff so far man. Keep up the good work!

    Thanks man. I am not a UI designer but I am trying to learn in the process.