Need HELP!!!

Technical Support

Suggested Topics


  • Help with my Custom Function

    Solved Technical Support
    0 Votes
    13 Posts
    167 Views

    @oplik0 yeah and if you don't want an upgrade script and just want to run some code that connects to the database to modify stuff or create reports etc. you can run custom script. These go in the nodebb folder and can be executed by node my_custom_script.js. Below is a template that we use frequently.

    /* globals require, console, process */ 'use strict'; const nconf = require('nconf'); nconf.file({ file: 'config.json', }); nconf.defaults({ base_dir: __dirname, views_dir: './build/public/templates', upload_path: 'public/uploads', }); const db = require('./src/database'); db.init(async (err) => { if (err) { console.log(`NodeBB could not connect to your database. Error: ${err.message}`); process.exit(); } await doSomethingUseful(); console.log('done'); process.exit(); }); async function doSomethingUseful() { console.log('global object', await db.getObject('global')); }
  • 0 Votes
    9 Posts
    344 Views

    If they have no posts they are considered a new user, so until one of their queued posts is accepted all their posts will go to the post queue. If you are not using reputation make sure Reputation required to bypass post queue is set to 0 or lower.

  • 0 Votes
    2 Posts
    525 Views

    I'm cleaning one server to make a fresh install of Centos for nodebb, any suggestion?

  • 0 Votes
    2 Posts
    862 Views

    You likely need to restart your NodeBB. Also ensure you clear your browser cache so it does not load the same favicon from before.

  • Help with DNS

    Technical Support
    0 Votes
    5 Posts
    2k Views

    @nhl-pl and @julian , all is cool as they say, got help from digital ocean and am good to go now, thanks again to you both for helping - the post is here for anyone else that's looking.

    regards, Lee 😁 😃