Skip to content

NodeBB Plugins

Discussion regarding NodeBB Plugin development.

1.8k Topics 15.0k Posts
Most Voted Plugins

Subcategories


  • Have a question about building a plugin? Ask here
    427 Topics
    2k Posts
    traarrrT

    Hi all,
    Well this is my first time writing a plugin which involves using client side hooks...
    For a start, i would want my plugin to listen to a hook which activates when the topic page is completely loaded and topic tools are loaded too.

    For which I wrote this function:

    'use strict'; /* globals document, $ */ $(document).ready(function () { function alertType(type, message) { require(['alerts'], function (alerts) { alerts[type](message); }); } console.log('nodebb-plugin-quickstart: loaded'); $(window).on('action:topic.loaded', notifyBox); function notifyBox() { console.log("in notify box"); alertType('success', "done") } });

    but this is not working... I can only see "nodebb-plugin-quickstart: loaded" on the console.

    Where am i going wrong here??

  • Need a plugin developed? Ask here!
    222 Topics
    1k Posts
    barisB

    @bdinfl you put the ratings in your template with <!-- IMPORT partials/ratings.tpl --> It can go on the topic list or inside a topic.

  • Why Iframely over Embedly?

    9
    0 Votes
    9 Posts
    1k Views
    phenomlabP

    @hollosch Yes, you can use the nodebb-plugin-iframely plugin, but ensure you use

    Link Preview Image GitHub - itteco/iframely: oEmbed proxy. Supports over 1800 domains via custom parsers, oEmbed, Twitter Cards and Open Graph

    oEmbed proxy. Supports over 1800 domains via custom parsers, oEmbed, Twitter Cards and Open Graph - itteco/iframely

    favicon

    GitHub (github.com)

    For the self hosted install.

  • [nodebb-plugin-iframely] IFramely Embeds

    81
    9 Votes
    81 Posts
    41k Views
    J

    How do I customize the embedding of YouTube videos (I want to embed the videos with another lazy YouTube embedding plugin)?
    I exceeded the

    https://www.youtube.com/ https://youtu.be/

    And it still assimilates ... 😞

  • 2 Votes
    13 Posts
    5k Views
    crazycellsC

    Hi @julian , while restarting the forum (1.19.1) , I get this "warning" for canned-responses plugin... Is this a problem or normal?

     started 2022-02-03T04:28:25.721Z [4567/3637012] - info: [build] Building in series mode 2022-02-03T04:28:25.724Z [4567/3637012] - info: [build] plugin static dirs build started 2022-02-03T04:28:25.756Z [4567/3637012] - info: [build] plugin static dirs build completed in 0.032sec 2022-02-03T04:28:25.756Z [4567/3637012] - info: [build] requirejs modules build started 2022-02-03T04:28:35.741Z [4567/3637012] - info: [build] requirejs modules build completed in 9.984sec 2022-02-03T04:28:35.743Z [4567/3637012] - info: [build] client js bundle build started 2022-02-03T04:28:39.189Z [4567/3637012] - info: [build] client js bundle build completed in 3.446sec 2022-02-03T04:28:39.189Z [4567/3637012] - info: [build] admin js bundle build started 2022-02-03T04:28:43.542Z [4567/3637012] - info: [build] admin js bundle build completed in 4.353sec 2022-02-03T04:28:43.543Z [4567/3637012] - info: [build] client side styles build started 2022-02-03T04:28:51.795Z [4567/3637012] - info: [build] client side styles build completed in 8.252sec 2022-02-03T04:28:51.796Z [4567/3637012] - info: [build] admin control panel styles build started 2022-02-03T04:28:58.818Z [4567/3637012] - info: [build] admin control panel styles build completed in 7.022sec 2022-02-03T04:28:58.820Z [4567/3637012] - info: [build] templates build started [benchpress] warning: output bloat due to ambiguous inner BEGIN --> admin/plugins/canned-responses.tpl:44:17 | 44 | <!-- BEGIN responses --> | ^^^^^^^^^ `responses` could refer to the top-level value `responses` or the `.responses` property of the current element, so compiler must emit code for both cases | note: Migrate to modern syntax to avoid the ambiguity. This will become an error in the future. 2022-02-03T04:29:00.904Z [4567/3637012] - info: [build] templates build completed in 2.084sec 2022-02-03T04:29:00.905Z [4567/3637012] - info: [build] languages build started 2022-02-03T04:29:07.261Z [4567/3637012] - info: [build] languages build completed in 6.356sec 2022-02-03T04:29:07.264Z [4567/3637012] - info: [build] Asset compilation successful. Completed in 41.54sec. [cluster] Restarting... 2022-02-03T04:29:07.321Z [4567/3637012] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised. 2022-02-03T04:29:07.332Z [4567/3637012] - info: [app] Web server closed to connections. 2022-02-03T04:29:07.338Z [4567/3637012] - info: [app] Live analytics saved. Clustering enabled: Spinning up 1 process(es). 2022-02-03T04:29:07.393Z [4567/3637012] - info: [app] Database connection closed. 2022-02-03T04:29:07.394Z [4567/3637012] - info: [app] Shutdown complete. [cluster] Child Process (3637012) has exited (code: 0, signal: null) 2022-02-03T04:29:08.058Z [4567/3646564] - info: Initializing NodeBB v1.19.1
  • Plugin for Videos

    5
    0 Votes
    5 Posts
    871 Views
    crazycellsC

    @ronny good to hear that 👍

    I was going to suggest iframely plugin if this did not work.

    Link Preview Image GitHub - NodeBB-Community/nodebb-plugin-iframely: Iframely Embeds for NodeBB

    Iframely Embeds for NodeBB. Contribute to NodeBB-Community/nodebb-plugin-iframely development by creating an account on GitHub.

    favicon

    GitHub (github.com)

  • 5 Votes
    16 Posts
    2k Views
    volanarV

    @crazycells said in nodebb-plugin-customize: Customize NodeBB Translations and Templates:

    @pitaj said in nodebb-plugin-customize: Customize NodeBB Translations and Templates:

    @crazycells the plugin only knows about keys that are already in the NodeBB system. You could try coopting an unused key from something else.

    If I understood correctly from what you wrote on the Github issue below, you are planning to add a new property to this plugin...
    creating a new "translation token"

    Am I right?

    The issue with multilingual content has been resolved. This works by default

  • [nodebb-plugin-dwnvtr] Downvoter Plugin

    14
    7 Votes
    14 Posts
    5k Views
    julianJ

    @crazycells Thanks for the reminder, it's an easy fix, just haven't had time to do it yet.

  • [nodebb-plugin-solr] Solr search plugin

    52
    4 Votes
    52 Posts
    30k Views
    volanarV

    @julian https://github.com/meilisearch/meilisearch-js

  • 0 Votes
    4 Posts
    560 Views
    julianJ

    @raj-0 Can you show me an example of the call you are making, using curl? That would be the easiest way for me to debug

  • Need request headers inside

    8
    0 Votes
    8 Posts
    561 Views
    PitaJP

    @denism7 the markdown plugin exposes a hook that I think should work?

    Link Preview Image nodebb-plugin-markdown/index.js at b248150a2626ccfdf90d7771a84e39613589e2fc · NodeBB/nodebb-plugin-markdown

    A Markdown parser for NodeBB. Contribute to NodeBB/nodebb-plugin-markdown development by creating an account on GitHub.

    favicon

    GitHub (github.com)

  • 2 Votes
    27 Posts
    9k Views
    crazycellsC

    @julian just saw your edit above 👍

  • 0 Votes
    5 Posts
    562 Views
    R

    @julian thanks 🙂 I am passing those additional details now.

  • Remove plugin from nbbpm

    Solved
    1
    0 Votes
    1 Posts
    250 Views
    Y

    Hi, I have package/plugin in nbbpm

    nodebb-plugin-change-reputation-test

    how to remove it?
    (I already removed it from npm)
    Thanks

    Thanks @administrators for the removed 👍

  • Ajaxify interfering with links outside of NodeBB

    14
    1 Votes
    14 Posts
    925 Views
    julianJ

    @phenomlab You're welcome. I don't frequent this board often enough... 😬 Need to pick up the slack

  • 0 Votes
    2 Posts
    426 Views
    phenomlabP

    @sebastián-cisneros That error message looks more like the account you are running your web server under has no access to the file repository location c:\rockstarcoders\*

  • Click counter?

    5
    0 Votes
    5 Posts
    435 Views
    dunlixD

    @gotwf now I see the difference but I also don’t know how you would program that

    Again I do need to learn how to make a plugin at some point

  • nodebb-plugin-sso-google-extension Error

    Unsolved
    5
    0 Votes
    5 Posts
    673 Views
    dunlixD

    @kumar123 install nodebb-plugin-sso-google
    Copy and paste that in search in plugins section of admin panel
    Then rebuild and restart

  • [nodebb-plugin-contact-page] A contact form

    43
    5 Votes
    43 Posts
    6k Views
    יצחק מרדכי טאבאקי

    @robin4002 said in [nodebb-plugin-contact-page] A contact form:

    I published 6 days ago an update to fix an issue on the client side with the latest version of NodeBB.

    And he also added a Hebrew language that I translated for all Hebrew users !!!
    @robin4002 thanks!!

  • 4 Votes
    16 Posts
    5k Views
    phenomlabP

    @dunlix Ah, see what you mean. I personally won't be trying this in case it crashes my production site, but may attempt this in dev.

  • Looking for Gamification Plugin

    4
    0 Votes
    4 Posts
    474 Views
    phenomlabP

    @dennismsmith Hi - as well as enabling the stock reputation system, I am using

    nodebb-plugin-reputation-rules nodebb-plugin-user-level

    For the leaderboard, you could use

    nodebb-plugin-leaderboard

    I personally do not use this, but it's there.

  • [nodebb-tools] CLI tools for NodeBB management

    4
    2 Votes
    4 Posts
    565 Views
    phenomlabP

    @gotwf said in [nodebb-tools] CLI tools for NodeBB management:

    Let us know, eh? Rock on!

    Will do 🙂