Skip to content

Configure

262 Topics 4.6k Posts

Having issues with configuration ?

Subcategories


  • Looking to revamp your site layout?

    131 2k
    131 Topics
    2k Posts
    Hey everyone, I’m not sure where to post this, I’ll let @phenomlab edit it if necessary. Already posted here : https://community.nodebb.org/topic/19318/focus-mode-simply-immersive-reading-for-nodebb I’ve been working on a small client-side script that adds an simply immersive reading mode to NodeBB. No plugin required, just a few lines of custom JS and CSS dropped into the ACP. I’m just sharing this here for fun : https://github.com/DroidBV8/nodebb-focus-mode [image: input.gif] What it does Pressing F (or clicking the icon in the right sidebar) hides everything that isn’t the content you’re trying to read: Both sidebars Header / brand bar Footer Topic thumbnails and sidebar tools (reply, follow, timeline) The content area reflows to a centered 860px column, font size bumps up slightly, and a reading progress bar appears at the top of the page. To exit: press F again, Escape, or click the floating button that appears in the bottom-right corner. Details Activation effect : a subtle CRT glitch effect plays on toggle. Three CSS variables let you dial the intensity up or down without touching the keyframes: --fm-glitch-opacity: 1; /* 0.5 = subtle | 2 = heavy */ --fm-glitch-skew: 1deg; --fm-glitch-shift: 4px; Keyboard : F to toggle. Ctrl+F, Cmd+F and Alt+F are ignored so you don’t accidentally trigger it when searching the page. Scroll preservation : when toggling, the layout shifts because sidebars appear/disappear. The script measures the position of the nearest visible post before and after the layout change, then compensates with scrollBy so you stay exactly where you were. Topic-only : the button is greyed out on non-topic pages with a tooltip explaining why. Pressing F outside a topic shows a small toast instead of doing nothing silently. Mobile: disabled entirely under 768px. No button injected, no state restored. Theming : all colors reference Bootstrap CSS variables (--bs-body-bg, --bs-border-color, --bs-primary, etc.) so it adapts automatically to any NodeBB theme, light or dark. State : saved in localStorage, restored on next visit. Uses try/catch so it degrades gracefully in private browsing. Implementation notes The script is a self-contained IIFE, hooking into the standard NodeBB client-side events: $(window).on('action:ajaxify.end', function () { focusMode(); }); $(window).on('action:topic.loaded', function () { focusMode(); }); // etc. The glitch effect is pure CSS @keyframes , the JS only adds/removes classes. Layout compensation is synchronous (getBoundingClientRect → scrollBy) with no setTimeout on the scroll itself, which avoids triggering NodeBB’s scroll-based URL updater in a loop. Compatibility Tested on NodeBB 3.x with Bootstrap 5 themes. Should work on any setup using the standard sidebar components (nav.sidebar-left, nav.sidebar-right).
  • Problems with performance ?

    21 308
    21 Topics
    308 Posts
    @cagatay The most reliable way to upgrade Node.js on Ubuntu depends on how you originally installed it. Method 1: Using NVM (Recommended) If you already use Node Version Manager (NVM), upgrading is simple. NVM allows you to keep both versions and switch between them if needed. Install Node 22: nvm install 22 Switch to Node 22: nvm use 22 Set it as your default: nvm alias default 22 Verify the change: node -v Method 2: Using NodeSource (PPA) If you installed Node.js via apt using the NodeSource repository, you need to update the repository script to point to the new version. Remove the old NodeSource list (optional but cleaner): sudo rm /etc/apt/sources.list.d/nodesource.list Download and run the NodeSource setup script for Node 22: curl -fsSL [https://deb.nodesource.com/setup_22.x](https://deb.nodesource.com/setup_22.x) | sudo -E bash - Install/Upgrade Node.js: sudo apt-get install -y nodejs Verify the installation: node -v Method 3: Using the ‘n’ Package If you have npm installed, you can use the n interactive manager. Clear the npm cache: sudo npm cache clean -f Install the ‘n’ helper: sudo npm install -g n Install Node 22: sudo n 22 Update your shell: hash -r Troubleshooting Permission Denied: If you see permission errors using Method 2 or 3, ensure you are using sudo. Path Issues: If node -v still shows version 20 after upgrading via NVM, restart your terminal or run source ~/.bashrc. Conflicts: Avoid mixing these methods. If you switch from apt to nvm, it is best to sudo apt remove nodejs first to avoid path conflicts.
  • Get help with network issues

    6 306
    6 Topics
    306 Posts
    @phenomlab Yes, I updated it right away after I created the password when first setting it up. Then I made my configurations.
  • Email Server Settings

    Solved mx entry
    25
    10 Votes
    25 Posts
    6k Views
    @Onix said in Email Server Settings: If anyone has long-term experience with self-hosted SMTP + DNS set-ups that remain stable, would be great to hear which configurations worked best. I can help with this
  • Spam spam spam

    Solved nodebb
    6
    2 Votes
    6 Posts
    1k Views
    @Panda said in Spam spam spam: ok, yes Ive seen the queue, it shows IP, but doesnt have a field for comments from registrant. It’s not designed for that. It merely serves as a gateway between posts appearing on your form or not. @Panda said in Spam spam spam: It would be better if nodebb had this plugin included in ACP list, as not only then do you know its approved and should work, but many people cant or dont want to use CLI on the server That’s a question for the NodeBB devs but in all honesty you can’t not use the CLI when installing nodebb so to be this isn’t a big deal.
  • Nodebb and emails

    Solved nodebb
    27
    5 Votes
    27 Posts
    5k Views
    @Panda it will use SMTP. In all cases, I never use any plugin to send email. I’ll always send it raw.
  • Test of youtube embeds

    Solved nodebb
    14
    11 Votes
    14 Posts
    3k Views
    @phenomlab Perfect!!! Many thanks.
  • Opening links in nodebb widget

    Solved nodebb
    6
    4 Votes
    6 Posts
    2k Views
    A more efficient way of including this would be to not over complicate it and leverage a standard iframe (providing the CSP headers of the remote site permit this) like below <iframe src="https://www.classmarker.com/online-test/start/?quiz=gag66aea7922f0a5" width="700" height="800"></iframe> This works first time every time on your site as intended.
  • Pulling YouTube videos using RSS

    rss youtube rsshub
    5
    7
    6 Votes
    5 Posts
    1k Views
    The perfect solution and walkthrough Mark, appreciated as always!
  • MogoDB v6 to v7 upgrade

    Solved nodebb
    5
    1 Votes
    5 Posts
    1k Views
    @Panda if you used the Ubuntu PPA, I think this only goes as far as 6.x if I recall correctly.
  • How to deploy WordPress.org Developer theme

    Solved wordpress theme github
    4
    1 Votes
    4 Posts
    1k Views
    @Hari the real issue here is that I don’t think it can be used as a theme for WordPress because of the dependencies it clearly has, including its own Web server. My view here is that this is designed to be a complete development environment outside of the WordPress core.
  • mongodb backup problem

    Moved mongodb
    3
    1
    1 Votes
    3 Posts
    923 Views
    You might want to also review this post https://sudonix.org/topic/389/mongodb-backup-script
  • Getting Eror When Started NodeBB

    Solved bug
    7
    1
    2 Votes
    7 Posts
    2k Views
    @phenomlab yes i did. i deleted one of plugin then it started to work normally.
  • mongodb replica set

    mongodb docker ansible
    11
    2 Votes
    11 Posts
    2k Views
    @veronikya said in mongodb replica set: The host’s local dns resolution is not configured. The problem of the host’s hosts being unable to be resolved in docker has been solved. Surprisingly Solution: Edit the /etc/resovel.conf file Add 127.0.0.53 One immediate issue I can think of here is that editing resolv.conf directly is no longer supported and not recommended (because the changes do not survive a reboot) - unless you install the resolvconf package?
  • Category For User

    Solved category
    11
    12 Votes
    11 Posts
    2k Views
    3.5.1 has now been released. I’ve just deployed it, so safe to do so!
  • KeepSolid VPN Unlimited DEAL

    keepsolid vpn
    53
    18 Votes
    53 Posts
    12k Views
    @JAC said in KeepSolid VPN Unlimited DEAL: although all are going to have their own flaws one way or another, Exactly that - none of them are going to suit every individual purpose. You have to read the reviews, decide what functionality you need, and then make a judgement call for yourself (and your own unique needs). There is no “wrong or right”, although I would steer clear of those that do not have a no-logs policy for privacy reasons alone.
  • Upgrade issues

    Solved nodebb
    2
    1
    2 Votes
    2 Posts
    889 Views
    Use this code git fetch # Grab the latest code from the NodeBB repository git checkout v3.x git reset --hard origin/v3.x And you will have the latest version without specifying it https://docs.nodebb.org/configuring/upgrade/
  • Which product is the best for VPN?

    nord vpn vpn reviews
    213
    49 Votes
    213 Posts
    64k Views
    @crazycells briefly, yes. I think what concerns be the most with home brew VPN convective like this is a lack of security updates, and potentially leaving yourself open. I’ve yet to actually try it, but I know there are a variety of ways to achieve the same goal.
  • Code block hard to read with light theme

    Solved
    9
    1
    2 Votes
    9 Posts
    2k Views
    @Panda I see why - if you check the browser console, there’s an error logged there. This is from one of my VM’s [image: 1690893082873-f796eebd-dfde-4938-8945-b08da51bf509-image.png] There is a decision tree that pulls the value of the editor theme from the saved browser settings on each load, but that fails if the theme has never been changed, and the user has the default (in your case, you are using light mode, so it serves “flatly” by default, but the editor itself is never set and returns null This below code changes that /* If savedTheme is undefined it will return null - based on this, we assume that the user has the default theme selected and never changed it, so we'll need to force that here */ if(!savedTheme) { var savedTheme = "flatly"; } If you reload your browser and test again, it should work properly.
  • Fixed background to nodebb forum

    Solved nodebb
    25
    4 Votes
    25 Posts
    6k Views
    @Panda said in Fixed background to nodebb forum: Chatgpt told me the ::before method. Go figure
  • Custom html in nodebb to prevent cache

    Unsolved nodebb
    18
    2 Votes
    18 Posts
    3k Views
    @Panda You’ll need to do that with js. With some quick CSS changes, it looks like this [image: 1690796279348-d619844f-fbfe-4cf1-a283-6b7364f6bf18-image.png] The colour choice is still really hard on the eye, but at least you can now read the text
  • www. Infront stops website access?

    Solved nodebb
    10
    1 Votes
    10 Posts
    2k Views
    @Panda because there is no match for the DNS entry specified. The receiving web server parses the headers looking for a destination hostname to match, and anything the web server is unable to resolve will be sent back to the root.
  • WP / Woocommerce Mystery

    Solved wordpress
    23
    1
    12 Votes
    23 Posts
    5k Views
    @Panda said in WP / Woocommerce Mystery: Just back to my other question, have you ever used Shopify? It insists on a templating language to use any custom js. Not personally as never had any need, however, I do know that it uses Liquid for JS templating. It’s written in Ruby and is used to generate dynamic content on shop fronts. There’s zero reason as to why it wouldn’t work with data supplied by 3rd party API’s, although WordPress code won’t natively work for obvious reasons, and as such, this code would need to be re-written. The JS part will likely work with minor modification, but not the PHP file in it’s current form.