• Home
  • Categories
  • Recent
  • Popular
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Default
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Quartz
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Slate
  • Solar
  • Superhero
  • Vapor
Collapse

Community

nullpointerN

nullpointer

@nullpointer
About
Posts
18
Topics
7
Groups
0
Followers
0
Following
0

Topics

  • nullpointerN

    Modifying Hooks Behavior (filter:category.topics.prepare)

    Scheduled Pinned Locked Moved Solved Technical Support
    0 Votes
    5 Posts
    84 Views

    nullpointerN

    @baris Alright. Clear. Thanks a lot!


  • nullpointerN

    Making a topic content NOT mandatory

    Scheduled Pinned Locked Moved Solved Technical Support
    0 Votes
    4 Posts
    75 Views

    nullpointerN

    @baris said in Making a topic content NOT mandatory:

    Try with this change https://github.com/NodeBB/NodeBB/commit/8c762d3228ee622984a6eb4bad5cbec810c27e60 and let me know.

    It works!
    Thanks a lot @baris


  • nullpointerN

    How do I disable file logging?

    Scheduled Pinned Locked Moved Solved Technical Support
    0 Votes
    5 Posts
    65 Views

    barisB

    @PitaJ I think it's already supported https://github.com/NodeBB/NodeBB/blob/master/loader.js#L22. logFile in config.json 🤔 But it joins with __dirname, so PRs welcome to change that.


  • nullpointerN

    NodeBB plugin is active but not installed

    Scheduled Pinned Locked Moved Unsolved Plugin Development
    0 Votes
    2 Posts
    54 Views

    julianJ

    Can you take a look at the runtime logs (sorry, I'm not fluent with Docker) and see what happens at the CMD node ./nodebb activate nodebb-plugin-my-plugin; node ./nodebb build; node ./nodebb start -l step?

    It sounds like maybe when ./nodebb start -l is run, NodeBB is doing another dependency install, which can happen if it detects some dependencies as out of date. That would effectively clobber your plugin that was copied into node_modules/


  • nullpointerN

    Getting all user who upvote/downvote a post

    Scheduled Pinned Locked Moved Solved Technical Support
    0 Votes
    3 Posts
    87 Views

    nullpointerN

    @baris how can I miss this piece of code 😢 Thanks for pointing me out! Solved! ☕

    Happy new years 🎉 🎉 🎉


  • nullpointerN

    Connecting to socket endpoint from a custom frontend

    Scheduled Pinned Locked Moved Solved Technical Support
    0 Votes
    10 Posts
    564 Views

    oplik0O

    @nullpointer said in Connecting to socket endpoint from a custom frontend:

    var socket = io('https://dev-forum.domain.io', { transport: ["polling", "websocket"], path: "/socket.io/", extraHeaders: { withCredentials: true, cookie: 'express.sid=s%3Am0UuuyatTTSajjAnI5gGSukaJSHJaiKpIVhb3H7L.TW4c4vZn4blOnWV1gilF9HhMqFc9g9V7NnLLZHMAmFg; Domain=dev-forum.domain.io; Path=/; HttpOnly; SameSite=Lax', }, });

    withCredentials is not a header - it's an option that should be on the same level in the settings object as extraHeaders. It should be used instead of setting the cookie header manually in the browser - but it will only work if the browser has the cookies for the website you're connecting to and needs explicit permission from it via headers (the Access-Control-Allow-* headers).
    This should look more like this:

    var socket = io('https://dev-forum.domain.io', { transport: ["polling", "websocket"], path: "/socket.io/", withCredentials: true, });

    The reason the NodeBB test example works is that it's not ran inside a browser - NodeJS, as a server environment, has quite different security requirements than browsers and also just can't save credentials for each page (imagine what programming horror having this kind of mutable state in code would be...). I'm not sure what is your ultimate goal with this code, so that's why I mentioned the cookies as needed for server-side code.


  • nullpointerN

    How to add main post content of topic to topic lists?

    Scheduled Pinned Locked Moved Solved Developer FAQ
    0 Votes
    3 Posts
    176 Views

    nullpointerN

    @baris thank you! I'll try your solution and update here


  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
  • Login

  • Don't have an account? Register

  • Login or register to search.