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.
  • is "night mode" shifting the forum several pixels up?

    Solved nodebb
    8
    4 Votes
    8 Posts
    2k Views
    @crazycells hmm. Good point. I actually use my own version of the dark mode plugin, so not entirely sure. However, I think the CSS is probably the same. I’m not at my PC currently but can check and advise later.
  • speed up my DigitalOcean droplet - Virtualmin

    Solved digitalocean virtualmin
    10
    4 Votes
    10 Posts
    2k Views
    @phenomlab thanks for sharing, after four or five months I will migrate to DO 2 or 4gb RAM droplet.
  • how to change flarum configuration from apache to nginx?

    Solved flarum
    3
    0 Votes
    3 Posts
    1k Views
    See https://sudonix.com/topic/226/issues-getting-flarum-to-work-on-new-host/28?_=1645013723672
  • how to increase upload DB file size in virtualmin

    Solved virtualmin
    2
    1 Votes
    2 Posts
    1k Views
    @Hari this helped
  • nginx can't start again

    Moved Solved nginx server error
    20
    2 Votes
    20 Posts
    4k Views
    @elhana-fine Yes that will happen of course if you still choose to restart the NGINX service after making a change and the test fails. The test on it’s own will state the error and the line number allowing you to fix that first
  • moving flarum from sub directory to subdomain

    Solved flarum
    15
    2 Votes
    15 Posts
    3k Views
    @phenomlab yes, created different app and moved files and DB now everything is working thanks
  • Error shows as visitor views post

    Moved anonymous user
    6
    1
    0 Votes
    6 Posts
    2k Views
    @jac just checked this again and although the image now shows I am still seeing the error message? [image: 1642536189441-img_20220118_200149.jpg]
  • SSl expired on virtualmin

    Solved virtualmin ubun server ssl
    18
    3 Votes
    18 Posts
    4k Views
    @justoverclock Not necessarily. You only need to use this if it fails from the Virtualmin window
  • Nvidia shield & router

    Solved router nvidia shield
    7
    1 Votes
    7 Posts
    1k Views
    @jac yes, the network cable
  • NodeBB metadata

    Solved nodebb
    4
    2 Votes
    4 Posts
    1k Views
    @phenomlab said in NodeBB metadata: @jac Are you sure ? https://www.google.co.uk/search?q=site%3Astockportcounty.fans&sxsrf=AOaemvLwnaZL-PliU_2dBOg_Eo1pMVhBjg%3A1638982328139&source=hp&ei=uOKwYeatBcOsad3yp7AE&iflsig=ALs-wAMAAAAAYbDwyLBSDcG5XYoFCKwQFhgz94wTxOcV&ved=0ahUKEwjm6dX71NT0AhVDVhoKHV35CUYQ4dUDCAk&uact=5&oq=site%3Astockportcounty.fans&gs_lcp=Cgdnd3Mtd2l6EAM6BAgjECc6CwgAEIAEELEDEIMBOg4ILhCABBCxAxDHARCjAjoRCC4QgAQQsQMQgwEQxwEQowI6BQguEIAEOggIABCABBCxAzoFCAAQgAQ6CAguELEDEIMBOgsILhCABBDHARCvAToICC4QgAQQsQM6BQgAELEDOgsILhCABBDHARDRAzoLCAAQgAQQsQMQyQM6BQgAEJIDUABYySZg0CdoAHAAeACAAW2IAa0NkgEEMjMuMpgBAKABAQ&sclient=gws-wiz Fair enough 🤪🤪.
  • Forum not loading

    Solved
    27
    0 Votes
    27 Posts
    7k Views
    @phenomlab Brilliant!! Thanks ever so much!! Now I need to try pull in new members
  • Any improvement on Ghost addon?

    Solved ghost blog
    6
    2 Votes
    6 Posts
    2k Views
    @kurulumu-net CSS styling is now addressed and completed.
  • nodebb dropdown menu

    Solved nodebb
    5
    1
    0 Votes
    5 Posts
    1k Views
    @phenomlab said in nodebb dropdown menu: @kurulumu-net You set it like the below example taken from this site [image: 1637939951821-aae36790-3257-4bb2-ad5a-0d744309876a-image.png] Which presents this [image: 1637939983445-77f47260-2941-4afe-9614-8e17dcfc8c19-image.png] Very interesting… I actually thought this wasn’t possible, as I remember it being asked in the NodeBB forum. Is this something new that’s been implemented? I’ll 100% be doing that when I’m on the laptop over the weekend.
  • Cannot read property 'config' of undefined

    Solved
    1
    0 Votes
    1 Posts
    683 Views
    No one has replied
  • Forum registration email goes to spam

    Moved Solved
    6
    1 Votes
    6 Posts
    1k Views
    @phenomlab emails mate, although I seem to have used a different email on each browser to remain logged in for cough cough posts .
  • VirtualMin create virtual server

    Solved
    4
    2 Votes
    4 Posts
    1k Views
    @justoverclock correct. You only need to keep an eye on the resources of the droplet itself
  • Two sites to show simultaneous information

    websites
    12
    0 Votes
    12 Posts
    2k Views
    @jac Not necessarily, no. The domain redirect is purely so that older links that point to the previous domain don’t just spit out a 404 error message when someone tries to access them. However, if the domain is seldom used, then why would you need the redirect in the first place (a point which you mentioned below). I’m still struggling to understand why you’d need two sites with the same information if the other domain is rarely used
  • is my DMARC configured correctly?

    Solved
    3
    2
    3 Votes
    3 Posts
    1k Views
    @phenomlab said in is my DMARC configured correctly?: you’ll get one from every domain that receives email from yours. Today I have received another mail from outlook DMARC, i was referring to your reply again and found it very helpful/informative. thanks again. I wish sudonix 100 more great years ahead!
  • nginx seo urls

    Solved
    15
    3 Votes
    15 Posts
    3k Views
    @riekmedia that looks fine to me
  • Cloudflare now handling email routing, YAY 🚀

    cloudflare
    1
    0 Votes
    1 Posts
    668 Views
    No one has replied