• 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.4.2 Latest
Buy Hosting
    • All categories
    Load new posts
Log in to post
  • barisB

    How to create a category selector in navigation

    Scheduled Pinned Locked Moved Tutorials navigation categories
    8 Votes
    1 Posts
    166 Views
    barisB

    Since NodeBB 1.18.6 it is possible to create dropdowns in the navigation (https://github.com/NodeBB/NodeBB/issues/9967). Before 1.18.6 to accomplish this you would have to use nodebb-plugin-customize to modify the menu template or use javascript to inject the markup after page load.

    In this tutorial I will show you how to create a dropdown navigation item that replaces the default categories link with a dropdown. The final result will look like this:

    category-dropdown.gif

    First thing to do is to turn the navigation item into a dropdown, to do this head over to yourforum.com/admin/settings/navigation, select the categories navigation item and toggle the dropdown option.

    category-dropdown-1.gif

    Once this is done you can use the text area below the toggle to add your markup. To create a simple dropdown you would just add a list of dropdown items like so:

    <li><a class="dropdown-item" href="/categories">All</a></li> <li><a class="dropdown-item" href="/category/2/general-discussion">General Discussion</a></li>

    Since you can input html here you can create custom dropdowns. To achieve the same dropdown as the first gif use the below html code, no css is necessary.

    <li><a class="dropdown-item" href="/categories">All</a></li> <li class="dropdown-divider"> <li><a class="dropdown-item" href="/category/2/general-discussion">General Discussion</a></li> <li class="d-flex flex-column"> <a class="dropdown-item" href="/category/3/nodebb-development">NodeBB Development</a> <div class="d-flex flex-column px-4"> <div class="d-flex align-items-center gap-1"> <i class="fa fa-fw fa-caret-right text-primary"></i> <a class="btn-ghost-sm text-sm text-nowrap" href="/category/13/nodebb-blog">NodeBB Blog</a> </div> <div class="d-flex align-items-center gap-1"> <i class="fa fa-fw fa-caret-right text-primary"></i> <a class="btn-ghost-sm text-sm text-nowrap" href="/category/5/feature-requests">Feature Requests</a> </div> <div class="d-flex align-items-center gap-1"> <i class="fa fa-fw fa-caret-right text-primary"></i> <a class="btn-ghost-sm text-sm text-nowrap" href="/category/6/bug-reports">Bug Reports</a> </div> <div class="d-flex align-items-center gap-1"> <i class="fa fa-fw fa-caret-right text-primary"></i> <a class="btn-ghost-sm text-sm text-nowrap" href="https://explore.transifex.com/nodebb/nodebb/">NodeBB Localization</a> </div> </div> </li> <li><a class="dropdown-item" href="/category/7/nodebb-plugins">NodeBB Plugins</a></li> <li><a class="dropdown-item" href="#">...add more as needed...</a></li>

    Modify the links to match your forum categories. To create dividers between sections you can use <li class="dropdown-divider">

    Now you can navigate your categories without going to the home/categories page. 🎊

  • K

    Categories drop-down empty after migration to 1.16.x

    Scheduled Pinned Locked Moved Technical Support categories dropdown
    0 Votes
    1 Posts
    152 Views
    K

    Hi Community,

    I've recently upgraded from 1.12.x to 1.16.x and I've done it first on a testing environment and, upon success, on production environment.

    Today, after a few days from the upgrade, I've realized that on the production instance the list of categories from category-drop down menu, is completely missing either on front-end (typical case when you want to move a thread) and on back-end (typical case when you want to set privileges).

    Production instance(left) Vs Test instance (Right)
    comparins_prod-test.jpg
    I've no clue what could be the case and how to get it fixed.

    Thanks, Riccardo

  • oplik0O

    [nodebb-plugin-category-join-group] Joining groups from category view

    Scheduled Pinned Locked Moved NodeBB Plugins plugin categories groups
    1 Votes
    2 Posts
    407 Views
    D

    I'd love to use this plug-in, but when I installed it with Lavender theme, it created issues with categories (invalid category IDs, unable to create new categories, unable to post in existing categories).

    Once I uninstalled this plug-in, all was fine.

    Is there perhaps a newer version that works with Lavender?

  • Evaldas LopatoE

    Navigation in categories not working

    Scheduled Pinned Locked Moved NodeBB Development navigation categories not working
    0 Votes
    2 Posts
    1k Views
    julianJ

    The data for the menu isn't present in the categories route, that's why nothing shows... seems odd to put menu in that route, any particular reason? People here can likely find some alternative...

  • M

    Hierarchical group permissions / access to categories & subcategories

    Scheduled Pinned Locked Moved Unsolved General Discussion permissions categories subcategory groups privacy
    0 Votes
    2 Posts
    1k Views
    PitaJP

    There are not hierarchical permissions in NodeBB. If you would like to see hierarchical permissions, you could open an issue on our Github page and request such a feature.

    I do believe we have a way of copying permissions between groups, so that could help you out in doing what you want.

  • DoppyD

    What do you mean like "moderator"?

    Scheduled Pinned Locked Moved Plugin Development plugin groups categories moderator
    1 Votes
    9 Posts
    4k Views
    bitspookB

    @pichalite

    hadnt noticed it... dang it lol i was thinking about group mods.

  • NicolasN

    ACP Categories: collapse

    Scheduled Pinned Locked Moved Feature Requests feature categories acp
    0 Votes
    1 Posts
    1k Views
    NicolasN

    Ability to collapse trees in ACP preview for Categories.

  • sergej-saveljevS

    Long loading categories in the admin page

    Scheduled Pinned Locked Moved Technical Support categories admin
    0 Votes
    5 Posts
    3k Views
    sergej-saveljevS

    @julian said:

    Pagination may be a bad idea because we make the categories sortable on this list.

    I not understand, but thanks, you everytime help for me. I created issue.

  • L

    Remove Background Image from Category

    Scheduled Pinned Locked Moved Feature Requests categories admin
    0 Votes
    5 Posts
    3k Views
    PitaJP

    An issue detailing this bug should probably be submitted on Github.

  • TannerT

    "BEGIN categories" not working in menu.tpl

    Scheduled Pinned Locked Moved Bug Reports template categories
    0 Votes
    3 Posts
    2k Views
    barisB

    Category data is not avaiable in the header, if you want to use it you will have to use the hook filter:middleware.renderHeader and add the data.

  • S

    Unread Showing Posts from disabled Categories.

    Scheduled Pinned Locked Moved Bug Reports categories unread
    0 Votes
    1 Posts
    1k Views
    S

    Hi,

    I noticed that in the unread page, if i have some "legacy" posts that is unread, and subsequently the category is disabled, it will still remain in the unread page.

    However, when one clicks on the post, it will show a 404 error.

  • ?

    Potential Trace of Hidden Category

    Scheduled Pinned Locked Moved Bug Reports hidden categories
    0 Votes
    8 Posts
    3k Views
    barisB

    This should do it I think.

  • G

    Aspect Ratio

    Scheduled Pinned Locked Moved General Discussion categories
    0 Votes
    2 Posts
    1k Views
    A

    @Guiri I use 450px x 450px and set them to cover.

  • A

    category/all/

    Scheduled Pinned Locked Moved Feature Requests all topics categories
    1 Votes
    8 Posts
    3k Views
    A

    @psychobunny sounds good, I've finally got around to looking at theming, got a great (probably) idea for a theme. 😆

  • D

    /Categories - [All Categories Page]

    Scheduled Pinned Locked Moved Feature Requests categories
    0 Votes
    4 Posts
    2k Views
    A

    @dylenbrivera https://github.com/psychobunny/nodebb-plugin-classic-home

    Next theme may have a more classic homepage as well.

  • ?

    Importing custom icons for categories and have option to delete icons which admin will never use

    Scheduled Pinned Locked Moved Feature Requests icons categories admin
    2 Votes
    5 Posts
    3k Views
    ?

    @a_5mith no problem 🙂 this is just an idea for a feature...

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
  • Login

  • Don't have an account? Register

  • Login or register to search.