Custom content from separate database

Plugin Development

Suggested Topics


  • 0 Votes
    18 Posts
    1k Views

    Yes you can use them inside the AMD module but keep in mind once you add an event listener on the window object it will be called everytime there is an action:ajaxify.end. If you don't want it triggered after you leave that page you need to turn it off with $(window).off('eventName', myMethod)

  • 0 Votes
    4 Posts
    210 Views

    @waldhay yes, you're supposed to rebuild and restart after installing plugins or changing themes.

  • 0 Votes
    1 Posts
    266 Views

    Hello,
    I have begun work on a custom email plugin, and while looking at some others that are available to see how they went about things I noticed that all of the available plugins (at least that I have found so far) already have an entry in the email setup list, regardless of if you have downloaded the associated plugin for that service (ex. Sendgrid, Mailgun, etc).

    So my questions is, if I have a custom email plugin, how exactly would I go about making it selectable / usable by the forum? Does it need to be present in the default email list? Is there a way to have my plugin inject itself into that list of providers or is there a way to override that list so that the forum knows not to use the credentials and settings in there, but instead use the ones in the plugin?

    The only real switch I have found is the "Use an external email server to send emails", which I would imagine that if it is turned off, that would not be much help either.

    If anyone has any insight on how the system works in regards to this and can point me in the right direction, I would appreciate it!

    Thanks,
    -MH

  • Custom file uploader

    Plugin Development
    0 Votes
    1 Posts
    255 Views

    Hey guys? im newbie on node so i want to make a custom file uploader button to upload for example ".pdf" extensions at the main page not into replies/topics. you guys know if there are any guide o plugin than i take as guide?, second question is if i able to do this just with the nodebb core or its not possible and i need to use dependencies? Thanks in advance 🙂

  • Hook on a custom page

    Plugin Development
    0 Votes
    11 Posts
    2k Views

    I don't think so, probably something to do with cookies changing. I'm guessing you need to call redirect or status.send to avoid the error.

    https://github.com/NodeBB/NodeBB/blob/master/src/controllers/authentication.js#L292-L296