No Code Button?

NodeBB Plugins

Suggested Topics


  • 8 Votes
    3 Posts
    365 Views

    🍍 New Release: 1.0.4

    Feat

    New syntax for create a custom buttons

    [btn=URL=ICON]TITLE[/btn]

    [btn=https://example.com=fa-solid fa-star]Download[/btn]

    Custom Buttons.png

    All custom buttons have a name class (button title), so you can set custom style, for example:

    /* style for Download btn */ a[name="Download"] { border-radius: 1rem; background-color: #373737; color: white; padding: 1rem; font-size: 1.20rem; border: 2px solid #6c757d !important; } /* color icon */ a[name="Download"] > i { color: red !important; }
  • Plugin for composer buttons

    NodeBB Plugins
    1
    1 Votes
    1 Posts
    191 Views

    Is it possible to add an composer button to att this

    |==========>
    Rating:
    Count:
    First:
    Last:

    Comment:

    <==========|

  • 0 Votes
    3 Posts
    1k Views

    Althought i think it could be a cleaner approach, if you want the new button as part of plugin functionality you can take a look at nodebb-plugin-ignore-users there i put an icon instead of a button, inserted with client javascript, as @yariplus alreafy suggested, taking in consideration what page is rendered.

    You can see if that approach fits for your purpose on the client.js file of the mentioned plugin. I'm sure there would be better examples on official plugins but can't remember one right now that you can take a look at.

  • 0 Votes
    7 Posts
    2k Views

    @yariplus thanks for your suggest. I think this page must be update:

    Hooks

    Node.js based forum software built for the modern web - Hooks · NodeBB/NodeBB Wiki

    favicon

    GitHub (github.com)

  • 2 Votes
    6 Posts
    3k Views

    Good addition.