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
    Bharat RathiB

    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

    Plugin doesn't show usernames if they set their status to offline AFAIK

  • Question about SSO plugin

    2
    0 Votes
    2 Posts
    993 Views
    许宸皓

    oh lt is easy to solve this question
    Go to redis
    Find the key of SSO plugins
    0_1446634268113_upload-b58be9b5-6919-474f-804d-1abdf02111cc
    copy that and add that in your ordinary
    0_1446634315164_upload-a4ca79f0-1802-4891-8712-170ff217560d
    0_1446635036399_upload-25edcd6e-2775-4cf4-9122-330cedb2f71c
    0_1446635056946_upload-d6b7373d-c40b-485b-bbb1-a8c55644d2f2
    0_1446635071909_upload-abb4f6b9-ecf7-4bec-b5e7-cffa4a0ac7eb
    Excellent!

  • Plugins for syncing social media posts

    2
    0 Votes
    2 Posts
    1k Views
    P

    That's one way of doing it. There's a similar plugin that auto posts from RSS feeds: https://github.com/barisusakli/nodebb-plugin-rss

    So perhaps you can change the code where it parses an RSS feed to reading the twitter feed instead. Or use an twitter to RSS service like https://twitrss.me/

    If you wrote an IFTTT plugin though, that would be pretty cool 🙂

  • 0 Votes
    1 Posts
    1k Views
    N

    Hello,
    I am using nodebb 0.8.2 on mongodb 3.07/ nodejs v0.10.25
    and configured nodebb-plugin-sso-google & nodebb-plugin-sso-facebook.
    Both Plugin are working perfectly, but I am getting following warning on node app.
    -- Can I ignore this as its working fine or should I do something to fix this.
    any advise is much appreciated...

    node app
    30/10 15:36 [1470] - info: NodeBB v0.8.2 Copyright (C) 2013-2014 NodeBB Inc.
    30/10 15:36 [1470] - info: This program comes with ABSOLUTELY NO WARRANTY.
    30/10 15:36 [1470] - info: This is free software, and you are welcome to redistribute it under certain conditions.
    30/10 15:36 [1470] - info:
    30/10 15:36 [1470] - info: Time: Fri Oct 30 2015 15:36:43 GMT-0400 (EDT)
    30/10 15:36 [1470] - info: Initializing NodeBB v0.8.2
    30/10 15:36 [1470] - info: [database] Checking database indices.
    30/10 15:36 [1470] - warn: [plugins/nodebb-plugin-sso-google] Hook filter:user.delete is deprecated, please use an alternative
    30/10 15:36 [1470] - warn: [plugins/nodebb-plugin-sso-facebook] Hook filter:user.delete is deprecated, please use an alternative

    30/10 15:37 [1470] - info: NodeBB Ready
    30/10 15:37 [1470] - info: Enabling 'trust proxy'
    30/10 15:37 [1470] - error: Error: listen EADDRINUSE
    at errnoException (net.js:901:11)
    at Server._listen2 (net.js:1039:14)
    at listen (net.js:1061:10)
    at Server.listen (net.js:1135:5)
    at listen (/home/ngsankar/nodebb/src/webserver.js:180:17)
    at /home/ngsankar/nodebb/src/webserver.js:57:3
    at EventEmitter.<anonymous> (/home/ngsankar/nodebb/src/emitter.js:17:5)
    at EventEmitter.emit (events.js:92:17)
    at /home/ngsankar/nodebb/src/meta/js.js:218:12
    at Object.oncomplete (fs.js:107:15)
    30/10 15:37 [1470] - error: NodeBB address in use, exiting...

  • 3 Votes
    7 Posts
    4k Views
    P

    If you're paying me to learn angular too, sure 😛

    I have really limited experience, just for messing about no real-world experience.

  • 1 Votes
    3 Posts
    2k Views
    L

    @Fez-Vrasta
    hey there buddy,

    first i have to thank you for that useful widget.
    in your features list it says "show a message when the server is down"
    well, i implemented the widget in the global sidebar.
    But when our arma3 server is down or going to restart, the website is not able to load completly. it tries to reach the server which seem to be unreachable and does not jump into some kind of timeout.
    since i am far away from beeing able to fix that, i would like to ask if you have any idea where i should take a look at.

    thanks and regards,
    larvell

  • [nodebb-plugin-sso-ok] Odniklassniki

    5
    2 Votes
    5 Posts
    3k Views
    S

    I apologize for such a dirty job.

  • 0 Votes
    3 Posts
    1k Views
    N

    Unfortunately No. It does n't come up , I hv tried after restarting too. any possible tweak to make it work ? thanks.

  • How to properly add HTML elements

    5
    0 Votes
    5 Posts
    3k Views
    M

    @yariplus, thank you very much! I found that composer is really the way to go.

    I'm currently reading the code of default composer, it looks like a really good starting point.

    There are two options: one is to modify the default composer; another is to implement something like "nodebb-plugin-poll" which basically injects HTML to composer.

    I will need to read more code to get a better idea.

  • Need a working example of grabbing post data

    12
    0 Votes
    12 Posts
    5k Views
    NivixN

    @yariplus said:

    Actually, yes. That is something I've been wanting to do. I jumped into NodeBB development as a total newbie to Javascript, so I probably have a good perspective for beginners. I have some formal education in technical writing as well. 📖

    Please do this! 👍 We need more tutorials and technical guides. I've been trying to immerse myself more in the source and writing plugins so I can write some stuff for the community.

  • Shoutbox plugin where ?

    6
    0 Votes
    6 Posts
    3k Views
    P

    Oh yes 🙂 👍
    Well, I need to see how to create a widget area.
    Thanks @Scuzz

  • Including jQuery mixin file in plugin

    6
    0 Votes
    6 Posts
    3k Views
    NivixN

    Thank you @psychobunny! I'll look into how to modify the library for that.

    @lulzdevlol Nice to see someone else using Dredge! That's my favorite mechanic.

  • [nodebb-plugin-autolocktopics] Autolock topics

    4
    3 Votes
    4 Posts
    2k Views
    julianJ

    @psychobunny said:

    Nice. Would be cool to have the same feature if a topic hasn't been posted to in X amount of time, to prevent necro'ing

    ... I wrote a plugin for this in 2013 😆

  • Widgets System

    8
    4 Votes
    8 Posts
    9k Views
    barisB

    @Nivix no they are both available

  • 0 Votes
    17 Posts
    6k Views
    lulzdevL

    Sooooo, that worked. 🙂

    Removed the whack and it started working right away.

  • 1 Votes
    4 Posts
    2k Views
    S

    🔥 😎

  • 0 Votes
    37 Posts
    20k Views
    atriusA

    @baris Aah. That explains it. Thanks!

    @julian Yup. Is it correct that mailgun doesn't have this feature? If so, any chances it could be added pretty please? ❤

  • 5 Votes
    61 Posts
    43k Views
    KowlinK

    @atrius Works like a charm.

    Edit: not sure if this plugin has something to do with it. But it expirienced some slight hanging while posting reply's to a topic.

  • Cloudinary image upload

    6
    3 Votes
    6 Posts
    3k Views
    A

    Hotlinking can be done one of two ways, either the hosting provider allows you to set which site the images appear on, and block all others, or you host the images yourself and do just that via something like htaccess

  • [nodebb-plugin-embed-gmap] My first plugin

    4
    8 Votes
    4 Posts
    2k Views
    J

    Yes, I saw it, but my needs are different: interactive maps in posts... 🙂

    I have a question: is a good idea to use a bbcode such as [map ...]? Maybe a [egmap]...[/egmap] is better? Or something else?

    I want also to add a button for the editor to add the right markup to selection with a simple click... Have you an example to suggest me?

    And when the plugin will reach a v1 stable version, how can I add it to the ACP? Ok, rtfm, I know... 🙂

    Thanks!

  • 1 Votes
    2 Posts
    1k Views
    E

    agreed, please @administrators make it happen