Configuration via Environmental Variables: arrays?

Technical Support

Suggested Topics


  • 0 Votes
    2 Posts
    47 Views

    This is one of the socket.io methods that is not available in the v3 read API yet. If you want to load all the subcategories you can do it with a socket.io emit. See below function

    async function getSubCategories(cid) { // store current loaded children let subCats = ajaxify.data.children.slice(); let newCats = []; // start from the nextSubCategory index let start = ajaxify.data.nextSubCategoryStart; do { // load the next page newCats = await socket.emit('categories.loadMoreSubCategories', { cid: cid, start: start, }); // move start to next page start += ajaxify.data.subCategoriesPerPage; // add the newly loaded children to our sub categories subCats = subCats.concat(newCats); // we are done if no new categories were loaded } while (!newCats.length); return subCats; }

    You can call this function on a category page and it would return all the subcategories of that category.

  • 0 Votes
    1 Posts
    204 Views

    Hello all,
    Because of budget issues, I would like to install nodebb on shared hosting only. I have access to shell. I guess I can install if i have access to shell. Could you please say procedure as I can't find anywhere. Namecheap shared hosting uses cloudlinux OS and gives users to access shell

  • 0 Votes
    3 Posts
    576 Views

    @baris Thank you so much. Caught in the installing process didn't saw that. Now I have a working NodeBB site. For the first test install used everything as is in the tutorial so database is nodebb.

  • 0 Votes
    2 Posts
    1k Views

    ./nodebb build

  • 0 Votes
    10 Posts
    4k Views

    @Maahi The error message tells you what you need to know. In this case, nginx cannot start because there is already something bound to port 80. Apache? NodeBB? You need to figure this out.