Skip to content
  • A place to talk about whatever you want

    4k Topics
    23k Posts

    The second question as an update for this topic is: how do I add a trailing slash to the URI of an arbitrary topic?
    Raw nginx rewrite as follows doesn't do the trick

    rewrite ^([^.]*[^/])$ $1/ permanent;

    I need trailing slash in order to eliminate page_with_redirect issue.

  • Stay tuned here to hear more about new releases and features of NodeBB!

    3k Topics
    22k Posts

    @baris said in [harmony] topic title in sticky-tools bar:

    @Teemberland you can hide them from the skin switcher via css, if you want to completely remove them you need to write a plugin and filter them out so they are not returned as options.

    is this the correct CSS code to hide some skin options?

    .sidebar-toggle-container { [data-value="cerulean"] {display: none;} [data-value="cosmo"] {display: none;} [data-value="flatly"] {display: none;} [data-value="journal"] {display: none;} [data-value="litera"] {display: none;} [data-value="lumen"] {display: none;} [data-value="lux"] {display: none;} [data-value="materia"] {display: none;} [data-value="minty"] {display: none;} [data-value="morph"] {display: none;} [data-value="pulse"] {display: none;} [data-value="sandstone"] {display: none;} [data-value="simplex"] {display: none;} [data-value="sketchy"] {display: none;} [data-value="spacelab"] {display: none;} [data-value="united"] {display: none;} [data-value="yeti"] {display: none;} [data-value="zephyr"] {display: none;} }

    it seems that it works, but I wanted to double check not to cause any unwanted change...

  • Discussion regarding NodeBB Plugin development.

    2k Topics
    15k Posts

    hi @julian , iframely was showing pdfs as preview, so you did not have to click the page to read on another tab, you could just read the pdfs in the forum... Can this plugin be expanded to include pdf previews?

  • A public listing of community themes created by the NodeBB community.
    48 Topics
    1k Posts

    It looks like the discussion content in this topics has become outdated, so should I refer to the docs site directly instead?

    I want to customize the default home page and post detail page, which involves layout and style customization, so, am I correct to develop a new theme for this?

  • Need help with installing or configuring NodeBB? Look here.

    5k Topics
    26k Posts

    You would have to run a custom script like below. Place it in your nodebb folder, change the group name your special access group and run it with node myscript.js. It will add all users who have 10 posts or more into that group.

    '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'); const groupName = '<Replace with your groupname>'; db.init((err) => { if (err) { console.log(`NodeBB could not connect to your database. Error: ${err.message}`); process.exit(); } addUsersToGroup((err) => { if (err) { console.error(err); process.exit(); } console.log('done'); process.exit(); }); }); async function addUsersToGroup(callback) { const user = require('./src/user'); const groups = require('./src/groups'); const batch = require('./src/batch'); // check if target group exists const exists = await groups.exists(groupName); if (!exists) { return callback(new Error('group does not exist')); } try { const now =; await batch.processSortedSet('users:joindate', async (uids) => { const userData = (await user.getUsersData(uids)) .filter(u => u && u.postcount >= 10); await db.sortedSetAdd( `group:${groupName}:members`, => now), => u.uid) ); }, { batch: 500, }); const memberCount = await db.sortedSetCard(`group:${groupName}:members`); console.log('total count', memberCount); await db.setObjectField(`group:${groupName}`, 'memberCount', memberCount); await db.sortedSetAdd( 'groups:visible:memberCount', memberCount, groupName, ); callback(); } catch (err) { callback(err); } }

Online Users

Nuran AkimbekN S cagatayC