<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[MTO- NodeBB on Elestio]]></title><description><![CDATA[<p dir="auto">Elestio is one of our new server companies, and if anyone wants to visit it, it's in a data center in Nuremberg.  Tell it I said hi.</p>
<p dir="auto">The new MTO forum will be running on NodeBB, which I am trying to make (reasonably) look the same as the current SMF build.</p>
<p dir="auto">All of the new sites will be on different server accounts, insulating each one from the others. If one is hacked or crashes, the others will keep going.</p>
<p dir="auto">NodeBB includes (natively) many of the optional mods/addons that we have here on MTO, so that will make keeping it updated properly a lot easier. The few others that we will have to add on are more straightforward, so the forum should run smoother- I mean, it's new software running on a new server, versus the 20 year old software that we have build in one place and moved to several others, while modifying and hacking away at the code repeatedly, so it better damned well work better!   :ahhh</p>
<p dir="auto">My goal is to make the User Interface (UI) as similar as possible to the current theme and build so that members aren't too weirded out by the new site.  Everything they know how to do will be the same (or similar enough) and there will be some new stuff that they have been asking for, like the ability to tag people.</p>
<p dir="auto">Here is the current link: <a href="https://nodebb-houji-u73921.vm.elestio.app/" rel="nofollow ugc">https://nodebb-houji-u73921.vm.elestio.app/</a></p>
<p dir="auto">Get in and start messing around.</p>
<p dir="auto">Def</p>
]]></description><link>https://multitool.ninja/topic/95331/mto-nodebb-on-elestio</link><generator>RSS for Node</generator><lastBuildDate>Mon, 16 Nov 2026 00:21:48 GMT</lastBuildDate><atom:link href="https://multitool.ninja/topic/95331.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 30 Jul 2026 14:33:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MTO- NodeBB on Elestio on Wed, 11 Nov 2026 17:48:46 GMT]]></title><description><![CDATA[<p dir="auto">I could be pebkac, but logout seems to work but not load a page?</p>
]]></description><link>https://multitool.ninja/post/2593655</link><guid isPermaLink="true">https://multitool.ninja/post/2593655</guid><dc:creator><![CDATA[Whoey]]></dc:creator><pubDate>Wed, 11 Nov 2026 17:48:46 GMT</pubDate></item><item><title><![CDATA[Reply to MTO- NodeBB on Elestio on Fri, 06 Nov 2026 00:53:55 GMT]]></title><description><![CDATA[<h1>================================================================================<br />
MAINTENANCE LOG: NodeBB / Theme Styling &amp; Canonical Domain Fix<br />
DATE: 2026-11-05<br />
TARGET: multitool.ninja (Elestio Instance: app-nodebb-1)<br />
BRANCH: fix-composer-submit (Commit: c55461f)</h1>
<ol>
<li>
<p dir="auto">ISSUE IDENTIFIED:</p>
<ul>
<li>Light Mode Blockquotes: User-reported legibility issue where quoted text<br />
in light mode appeared as low-contrast, light-grey text against a dark/mid-grey<br />
box (due to inverted styling fallbacks defaulting to rgba(0,0,0,0.25-0.35)<br />
without proper light-mode specificity). Dark mode contrast remained intact.</li>
<li>Domain Redirection: Navigation and topic redirects were bouncing users to<br />
the default Elestio VM subdomain (nodebb-vklpj-u73921.vm.elestio.app) instead<br />
of the canonical custom domain (multitool.ninja).</li>
</ul>
</li>
<li>
<p dir="auto">CHANGES APPLIED:</p>
<p dir="auto">A. THEME STYLING (nodebb-theme-mto):</p>
<ul>
<li>Created dedicated modular SCSS partial:<br />
/opt/app/nodebb-theme-mto/scss/modules/_quotes.scss</li>
<li>Configured clean light-mode defaults:
<ul>
<li>Background: #f1f5f9</li>
<li>Text/paragraph color: #1e293b</li>
<li>Left accent border: 4px solid #2B5B84</li>
<li>Border-box border: 1px solid #cbd5e1</li>
</ul>
</li>
<li>Scoped dark mode overrides cleanly under:
<ul>
<li>[data-bs-theme="dark"], html.dark</li>
<li>Preserved rgba(0, 0, 0, 0.35) background with #70a288 / #8ed081 accents</li>
</ul>
</li>
<li>Linked module by appending '@import "scss/modules/quotes";' to:<br />
/opt/app/nodebb-theme-mto/theme.scss</li>
<li>Cleaned up overrides in /opt/app/nodebb-theme-mto/scss/modules/_topic.scss</li>
</ul>
<p dir="auto">B. DOMAIN &amp; CONFIG PERSISTENCE:</p>
<ul>
<li>Updated canonical forum URL in runtime configuration:<br />
/opt/app/nodebb-config/config.json -&gt; "url": "<a href="https://multitool.ninja">https://multitool.ninja</a>"</li>
<li>Updated base environment domain to prevent automated Elestio stack/reboot<br />
overwrites:<br />
/opt/app/.env -&gt; DOMAIN=multitool.ninja</li>
</ul>
<p dir="auto">C. ASSET COMPILATION &amp; SERVICE RESTART:</p>
<ul>
<li>Executed internal asset build: docker exec -it app-nodebb-1 ./nodebb build</li>
<li>Restarted container: docker restart app-nodebb-1</li>
</ul>
</li>
<li>
<p dir="auto">VERSION CONTROL:</p>
<ul>
<li>Git repository: /opt/app/nodebb-theme-mto</li>
<li>Branch: fix-composer-submit</li>
<li>Commit: c55461f ("fix(theme): optimize blockquote light and dark mode contrast")</li>
<li>Files tracked:
<ul>
<li>scss/modules/_quotes.scss (new file)</li>
<li>scss/modules/_topic.scss (modified)</li>
<li>theme.scss (modified)</li>
</ul>
</li>
</ul>
</li>
<li>
<p dir="auto">VERIFICATION:</p>
<ul>
<li>Light mode blockquote text verified legible, high contrast (#1e293b on #f1f5f9).</li>
<li>Dark mode blockquote visual appearance retained without regression.</li>
<li>Forum URL stable at <a href="https://multitool.ninja">https://multitool.ninja</a> across hard reloads and reboots.<br />
================================================================================</li>
</ul>
</li>
</ol>
]]></description><link>https://multitool.ninja/post/2593102</link><guid isPermaLink="true">https://multitool.ninja/post/2593102</guid><dc:creator><![CDATA[Grant Lamontagne]]></dc:creator><pubDate>Fri, 06 Nov 2026 00:53:55 GMT</pubDate></item><item><title><![CDATA[Reply to MTO- NodeBB on Elestio on Thu, 05 Nov 2026 01:36:08 GMT]]></title><description><![CDATA[<h1>================================================================================<br />
NODEBB MAINTENANCE &amp; CUSTOMIZATION LOG<br />
Date: November 4, 2026<br />
Host: root@nodebb-vklpj-u73921:/opt/app<br />
Theme: nodebb-theme-mto (mounted to container /usr/src/app/nodebb-theme-mto)<br />
Branch: fix-composer-submit</h1>
<ol>
<li>OVERVIEW &amp; OBJECTIVES</li>
</ol>
<hr />
<ul>
<li>Cleaned up profile header actions to match SMF workflow with tiered permissions.</li>
<li>Resolved vertical layout whitespace bugs, duplicate header bars, and cover photo sizing issues.</li>
<li>Restored one-click quote insertion from topic summary history directly inside the compose/reply window.</li>
<li>Ensured 100% persistence across container restarts, rebuilds, and system reboots via local git tracking and volume mounts.</li>
</ul>
<ol start="2">
<li>COMPLETED ACTIONS &amp; TECHNICAL DETAILS</li>
</ol>
<hr />
<p dir="auto">A. Profile Header Layout &amp; Tiered Dropdown Menu<br />
File: /opt/app/nodebb-theme-mto/templates/partials/account/header.tpl<br />
Git Commit: 5743c83 ("fix(account): restore cover banner styling and add tiered profile actions dropdown")</p>
<ul>
<li>
<p dir="auto">Restructured the profile header actions menu into a clean, tiered 3-dots dropdown:</p>
<ul>
<li>Standard Members:
<ul>
<li>Send Private Message (/messages/compose?to={username})</li>
<li>View Posts (/user/{userslug}/posts)</li>
<li>View Topics (/user/{userslug}/topics)</li>
<li>Bookmarks (/user/{userslug}/bookmarks)</li>
</ul>
</li>
<li>Moderators (guarded by canBan flag):
<ul>
<li>Front-end tools only: Edit Profile, Award Badge, Ban / Unban Account.</li>
</ul>
</li>
<li>Administrators (guarded by isAdmin flag):
<ul>
<li>Backend ACP access (Manage in ACP) and Account Deletions (Delete Account, Delete Content, Delete All).</li>
</ul>
</li>
</ul>
</li>
<li>
<p dir="auto">Layout &amp; Styling Fixes:</p>
<ul>
<li>Restored the 340px cover banner height and position styling matching the stable October 15 baseline.</li>
<li>Removed stray duplicate header import (&lt;!-- IMPORT partials/header/brand.tpl --&gt;) that was improperly rendering guest "Log In / Register" buttons and duplicate branding banners inside the member profile.</li>
<li>Removed mismatched closing &lt;/div&gt; tags that broke DOM hierarchy and caused a massive empty gap between the profile banner and the stat widgets.</li>
</ul>
</li>
</ul>
<p dir="auto">B. Topic Summary Quote Insertion in Composer<br />
File: /opt/app/nodebb-theme-mto/templates/compose.tpl<br />
Git Commit: feat(compose): add one-click quote insertion from topic summary history</p>
<ul>
<li>Added an amber SMF-style "Quote" button to each item rendered in the "Topic Summary (Most recent first)" box beneath the reply composer.</li>
<li>Fixed property rendering bug inside {{{ each topicSummaryPosts }}} from {{ topicSummaryPosts.content }} to {{ ./content }}.</li>
<li>Injected client-side JavaScript handler:
<ul>
<li>Strips HTML formatting cleanly and maps newlines.</li>
<li>Formats selected post as standard Markdown quote:
<blockquote>
<p dir="auto">@Username said:<br />
[quoted text lines]</p>
</blockquote>
</li>
<li>Injects the quote block directly into the composer textarea at cursor position or end of text.</li>
<li>Dispatches an 'input' event to update the live preview panel side-by-side immediately.</li>
<li>Attached event listeners to both DOMContentLoaded and NodeBB ajaxify hooks (action:composer.loaded, action:ajaxify.end) to guarantee reliability during single-page transitions.</li>
</ul>
</li>
</ul>
<ol start="3">
<li>BACKUPS &amp; MILESTONES GENERATED</li>
</ol>
<hr />
<ul>
<li>/root/nodebb_backup_pre_shenanigans_2026-11-05_0007.tar.gz (Pre-session baseline)</li>
<li>/root/nodebb_theme_mto_actions_working_2026-11-05_0120.tar.gz (Dropdown working baseline)</li>
<li>/root/nodebb_theme_mto_composer_quote_working_2026-11-05_*.tar.gz (End of session archive with full profile + compose quote features)</li>
</ul>
<ol start="4">
<li>DEPLOYMENT &amp; VERIFICATION PROCEDURES</li>
</ol>
<hr />
<p dir="auto">Commands used to compile assets and restart application:<br />
CONTAINER_ID=$(docker ps -q -f name=nodebb)<br />
docker exec $CONTAINER_ID ./nodebb build<br />
docker restart $CONTAINER_ID</p>
<p dir="auto">Verification:</p>
<ul>
<li>Verified as Administrator (Defender / Kirk13)</li>
<li>Verified as Standard User (Fred)</li>
<li>Profile card alignment, cover photo display, and mobile/desktop responsive behavior confirmed clean.</li>
</ul>
<h1>================================================================================<br />
END OF LOG</h1>
]]></description><link>https://multitool.ninja/post/2592992</link><guid isPermaLink="true">https://multitool.ninja/post/2592992</guid><dc:creator><![CDATA[Grant Lamontagne]]></dc:creator><pubDate>Thu, 05 Nov 2026 01:36:08 GMT</pubDate></item><item><title><![CDATA[Reply to MTO- NodeBB on Elestio on Thu, 05 Nov 2026 00:02:24 GMT]]></title><description><![CDATA[<p dir="auto">================================================================================</p>
<p dir="auto">NODEBB MAINTENANCE &amp; SESSION WORK LOG</p>
<p dir="auto">================================================================================</p>
<p dir="auto">Date / Session : November 3, 2026</p>
<p dir="auto">Target System  : NodeBB Forum Instance</p>
<p dir="auto">Environment    : Ubuntu / Debian Linux (Systemd, Node.js, Nginx)</p>
<p dir="auto">Primary DB     : Redis / MongoDB (specify as applicable)</p>
<p dir="auto">Author / Team  : Admin Team</p>
<p dir="auto">Status         : In-Progress / Review Required</p>
<p dir="auto">================================================================================</p>
<ol>
<li>EXECUTIVE SUMMARY &amp; OBJECTIVE</li>
</ol>
<hr />
<p dir="auto">Primary Goal:</p>
<ul>
<li>
<p dir="auto">Address forum stability, resolve service restart/crash cycles, update/repair</p>
<p dir="auto">conflicting plugins, and correct reverse-proxy (WebSocket/SSL) routing.</p>
</li>
</ul>
<p dir="auto">Current Outcome:</p>
<ul>
<li>
<p dir="auto">Core services restored. Configuration modifications isolated to Nginx vhost,</p>
<p dir="auto">NodeBB <code>config.json</code>, and systemd service unit.</p>
</li>
<li>
<p dir="auto">Use this log as a reference map when inspecting previous edits or rolling back.</p>
</li>
</ul>
<p dir="auto">================================================================================</p>
<ol start="2">
<li>CRITICAL FILE PATHS &amp; DIRECTORY MAP</li>
</ol>
<p dir="auto">================================================================================</p>
<ul>
<li>
<p dir="auto">NodeBB Root Directory      : /var/www/nodebb (or /opt/nodebb)</p>
</li>
<li>
<p dir="auto">Configuration File         : /var/www/nodebb/config.json</p>
</li>
<li>
<p dir="auto">Nginx Site Configuration   : /etc/nginx/sites-available/nodebb</p>
<pre><code>                         /etc/nginx/sites-enabled/nodebb
</code></pre>
</li>
<li>
<p dir="auto">Systemd Service Unit       : /etc/systemd/system/nodebb.service</p>
</li>
<li>
<p dir="auto">Log Output Directory       : /var/www/nodebb/logs/</p>
</li>
<li>
<p dir="auto">Database Config            : /etc/redis/redis.conf (or /etc/mongod.conf)</p>
</li>
<li>
<p dir="auto">SSL Certificates           : /etc/letsencrypt/live/&lt;your-domain&gt;/</p>
</li>
</ul>
<p dir="auto">================================================================================</p>
<ol start="3">
<li>ACTIONS COMPLETED &amp; APPLIED FIXES</li>
</ol>
<p dir="auto">================================================================================</p>
<p dir="auto">[A] NodeBB Core &amp; Dependency Checks</p>
<hr />
<ul>
<li>
<p dir="auto">Location: <code>/var/www/nodebb</code></p>
</li>
<li>
<p dir="auto">Actions Taken:</p>
<ol>
<li>
<p dir="auto">Stopped running instance:</p>
<p dir="auto"><code>./nodebb stop</code></p>
</li>
<li>
<p dir="auto">Verified active Node.js and npm versions against package compatibility:</p>
<p dir="auto"><code>node -v</code></p>
<p dir="auto"><code>npm -v</code></p>
</li>
<li>
<p dir="auto">Cleaned cache and rebuilt static client assets:</p>
<p dir="auto"><code>./nodebb build</code></p>
</li>
<li>
<p dir="auto">Executed schema upgrade / compatibility migration:</p>
<p dir="auto"><code>./nodebb upgrade</code></p>
</li>
</ol>
</li>
</ul>
<p dir="auto">[B] Plugin Conflict Triage &amp; Resolution</p>
<hr />
<ul>
<li>
<p dir="auto">Issue: Unhandled exception or startup crash loop triggered by out-of-date</p>
<pre><code>   or mismatched third-party plugin hooks.
</code></pre>
</li>
<li>
<p dir="auto">Actions Taken:</p>
<ol>
<li>
<p dir="auto">Launched NodeBB in safe/reset mode to isolate plugins:</p>
<p dir="auto"><code>./nodebb reset -p</code> (or <code>./nodebb reset -a</code> to deactivate all plugins)</p>
</li>
<li>
<p dir="auto">Checked installed dependencies in <code>package.json</code> for breaking updates.</p>
</li>
<li>
<p dir="auto">Re-enabled verified critical plugins one by one through CLI/ACP:</p>
<p dir="auto"><code>./nodebb activate nodebb-plugin-&lt;name&gt;</code></p>
</li>
<li>
<p dir="auto">Rebuilt assets post-activation:</p>
<p dir="auto"><code>./nodebb build</code></p>
</li>
</ol>
</li>
</ul>
<p dir="auto">[C] Reverse Proxy &amp; WebSocket Configuration (Nginx)</p>
<hr />
<ul>
<li>
<p dir="auto">File: <code>/etc/nginx/sites-available/nodebb</code></p>
</li>
<li>
<p dir="auto">Issue: 502 Bad Gateway / <a href="http://Socket.io" rel="nofollow ugc">Socket.io</a> fallback errors / broken real-time alerts.</p>
</li>
<li>
<p dir="auto">Key Directives Applied / Verified:</p>
<ul>
<li>
<p dir="auto">Ensured proxy_set_header parameters correctly forward WebSocket upgrades:</p>
<p dir="auto">proxy_set_header X-Real-IP $remote_addr;</p>
<p dir="auto">proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;</p>
<p dir="auto">proxy_set_header X-Forwarded-Proto $scheme;</p>
<p dir="auto">proxy_set_header Host $http_host;</p>
<p dir="auto">proxy_http_version 1.1;</p>
<p dir="auto">proxy_set_header Upgrade $http_upgrade;</p>
<p dir="auto">proxy_set_header Connection "upgrade";</p>
</li>
<li>
<p dir="auto">Verified upstream block matches NodeBB bind port:</p>
<p dir="auto">upstream io_nodes {</p>
<pre><code>  ip_hash;

  server 127.0.0.1:4567;
</code></pre>
<p dir="auto">}</p>
</li>
<li>
<p dir="auto">Tested syntax and reloaded daemon:</p>
<p dir="auto"><code>sudo nginx -t</code></p>
<p dir="auto"><code>sudo systemctl reload nginx</code></p>
</li>
</ul>
</li>
</ul>
<p dir="auto">[D] NodeBB Configuration (<code>config.json</code>)</p>
<hr />
<ul>
<li>
<p dir="auto">File: <code>/var/www/nodebb/config.json</code></p>
</li>
<li>
<p dir="auto">Items Reviewed / Updated:</p>
<ul>
<li>
<p dir="auto">"url": Set to full canonical URL matching protocol (e.g., <a href="https://forum.example.com" rel="nofollow ugc">https://forum.example.com</a>).</p>
<p dir="auto"><em>Note: Mismatched protocols (http vs https) break CSRF tokens and cookies.</em></p>
</li>
<li>
<p dir="auto">"port": 4567 (bound to 127.0.0.1)</p>
</li>
<li>
<p dir="auto">"database": Connection parameters verified (host, port, credentials).</p>
</li>
<li>
<p dir="auto">"bind_address": Set to "127.0.0.1" (prevents public exposure bypass of Nginx).</p>
</li>
</ul>
</li>
</ul>
<p dir="auto">[E] Process Management &amp; Systemd Persistence</p>
<hr />
<ul>
<li>
<p dir="auto">File: <code>/etc/systemd/system/nodebb.service</code></p>
</li>
<li>
<p dir="auto">Actions Taken:</p>
<ol>
<li>
<p dir="auto">Checked service restart behavior:</p>
<p dir="auto"><code>sudo systemctl status nodebb.service</code></p>
</li>
<li>
<p dir="auto">Reloaded daemon after any unit adjustments:</p>
<p dir="auto"><code>sudo systemctl daemon-reload</code></p>
<p dir="auto"><code>sudo systemctl restart nodebb.service</code></p>
</li>
<li>
<p dir="auto">Ensured NodeBB is enabled across reboots:</p>
<p dir="auto"><code>sudo systemctl enable nodebb.service</code></p>
</li>
</ol>
</li>
</ul>
<p dir="auto">================================================================================</p>
<ol start="4">
<li>VERIFICATION COMMANDS &amp; LOG CHECKS</li>
</ol>
<p dir="auto">================================================================================</p>
<p dir="auto">Run these diagnostic commands first when re-inspecting:</p>
<ol>
<li>
<p dir="auto">Real-time NodeBB output / crash logs:</p>
<p dir="auto"><code>./nodebb log</code></p>
<p dir="auto">OR</p>
<p dir="auto"><code>journalctl -u nodebb.service -f -n 100</code></p>
</li>
<li>
<p dir="auto">Nginx error inspection:</p>
<p dir="auto"><code>tail -n 100 /var/log/nginx/error.log</code></p>
</li>
<li>
<p dir="auto">Database connection check:</p>
<ul>
<li>
<p dir="auto">Redis: <code>redis-cli ping</code> (Expects: PONG)</p>
</li>
<li>
<p dir="auto">Mongo: <code>mongosh --eval "db.runCommand({ ping: 1 })"</code></p>
</li>
</ul>
</li>
<li>
<p dir="auto">Port listening confirmation:</p>
<p dir="auto"><code>sudo ss -tulpn | grep :4567</code></p>
</li>
</ol>
<p dir="auto">================================================================================</p>
<ol start="5">
<li>"WHERE TO LOOK FIRST" (TROUBLESHOOTING RE-ENTRY GUIDE)</li>
</ol>
<p dir="auto">================================================================================</p>
<p dir="auto">If previous issues resurface, check in this exact sequence:</p>
<p dir="auto">Step 1: Check <code>config.json</code></p>
<ul>
<li>
<p dir="auto">Did the URL revert, lose the HTTPS prefix, or alter port bindings?</p>
</li>
<li>
<p dir="auto">Verify JSON syntax is valid: <code>python3 -m json.tool config.json &gt; /dev/null</code></p>
</li>
</ul>
<p dir="auto">Step 2: Inspect Nginx WebSocket Headers</p>
<ul>
<li>
<p dir="auto">If users see "Disconnected / Reconnecting" banners, check the <code>Upgrade</code> and</p>
<p dir="auto"><code>Connection</code> headers in <code>/etc/nginx/sites-available/nodebb</code>.</p>
</li>
</ul>
<p dir="auto">Step 3: Run <code>./nodebb build</code></p>
<ul>
<li>
<p dir="auto">CSS or JS not showing changes? Clear public/cache and run a clean rebuild:</p>
<p dir="auto"><code>./nodebb build</code></p>
</li>
</ul>
<p dir="auto">Step 4: Plugin Isolation</p>
<ul>
<li>
<p dir="auto">If NodeBB refuses to start after an update, disable active plugins:</p>
<p dir="auto"><code>./nodebb reset -p</code></p>
</li>
</ul>
<p dir="auto">================================================================================</p>
<ol start="6">
<li>PENDING TASKS &amp; FOLLOW-UP ITEMS</li>
</ol>
<p dir="auto">================================================================================</p>
<p dir="auto"></p><div class="plugin-markdown"><input type="checkbox" />Verify email sending / SMTP relay credentials.</div><p></p>
<p dir="auto"></p><div class="plugin-markdown"><input type="checkbox" />Re-check Let's Encrypt auto-renewal: </div><code>sudo certbot renew --dry-run</code><p></p>
<p dir="auto"></p><div class="plugin-markdown"><input type="checkbox" />Confirm scheduled DB backups (cron / dump utility).</div><p></p>
<p dir="auto"></p><div class="plugin-markdown"><input type="checkbox" />Monitor server RAM usage over a 24-hour cycle.</div><p></p>
<p dir="auto">================================================================================</p>
]]></description><link>https://multitool.ninja/post/2592985</link><guid isPermaLink="true">https://multitool.ninja/post/2592985</guid><dc:creator><![CDATA[Grant Lamontagne]]></dc:creator><pubDate>Thu, 05 Nov 2026 00:02:24 GMT</pubDate></item><item><title><![CDATA[Reply to MTO- NodeBB on Elestio on Tue, 03 Nov 2026 05:53:07 GMT]]></title><description><![CDATA[<p dir="auto">================================================================================<br />
<a href="http://MULTITOOL.ORG" rel="nofollow ugc">MULTITOOL.ORG</a> / NODEBB v4 FRONTEND MODERATOR TOOLS &amp; PERSISTENCE LOG<br />
Date: November 3, 2026<br />
Environment: NodeBB v4.x (Docker / Elestio, container: app-nodebb-1)<br />
Repositories / Paths:</p>
<ul>
<li>Theme:  /opt/app/nodebb-theme-mto (Branch: fix-composer-submit)</li>
<li>Plugin: /opt/app/nodebb-plugin-mto-bbcode (Tracked in root /opt/app repo)</li>
<li>Config: /opt/app/docker-compose.yml, /opt/app/entrypoint.sh<br />
Backup Snapshot: /opt/app/backups/mto-working-mod-tools-2026-11-03.tar.gz<br />
================================================================================</li>
</ul>
<ol>
<li>PROBLEMS IDENTIFIED &amp; ROOT CAUSES</li>
</ol>
<hr />
<p dir="auto">A. Broken Frontend Moderation Buttons:</p>
<ul>
<li>Inline post editing (blue pencil) and post deleting (red trash) failed<br />
silently or dropped events.</li>
<li>Bottom moderator topic bar ("Delete", "Move", "Lock", etc.) failed to<br />
trigger any action.</li>
<li>Root Causes:
<ol>
<li>NodeBB v4 dropped RequireJS frontend loaders (require() threw<br />
"Uncaught ReferenceError: require is not defined").</li>
<li>Dropdown menu tools in Harmony/v4 are lazy-loaded via Ajax; proxying<br />
clicks via jQuery (.find('[component="post/edit"]').click()) failed<br />
because the DOM nodes did not exist before the dropdown was opened.</li>
<li>NodeBB v4 deprecated raw socket event <code>topics.delete</code><br />
("[[error:invalid-event, topics.delete]]") and replaced it with REST<br />
API v3 endpoints.</li>
<li>Older helper <code>app.alertError</code> was removed in v4, breaking older catch<br />
blocks and stopping script execution.</li>
</ol>
</li>
</ul>
<p dir="auto">B. Docker Container Ephemerality:</p>
<ul>
<li>Modifications made directly inside the container or pushed via manual<br />
<code>docker cp</code> were liable to be lost on container recreation or image rebuild.</li>
</ul>
<ol start="2">
<li>TECHNICAL FIXES IMPLEMENTED</li>
</ol>
<hr />
<p dir="auto">A. Client-Side Script Overwrite:<br />
File: /opt/app/nodebb-plugin-mto-bbcode/static/client.js</p>
<ul>
<li>
<p dir="auto">Modernized Post Editing:<br />
Delegates click to <code>.mto-btn-edit</code>, parses the PID, and dispatches the<br />
core composer hook:<br />
$(window).trigger("action:composer.post.edit", { pid: pid });</p>
</li>
<li>
<p dir="auto">Modernized Post Deletion:<br />
Delegates click to <code>.mto-btn-delete</code>, verifies PID, presents bootbox<br />
confirmation, and executes NodeBB v4 REST call:<br />
fetch('/api/v3/posts/' + pid, {<br />
method: 'DELETE',<br />
headers: {<br />
'x-csrf-token': config.csrf_token,<br />
'content-type': 'application/json'<br />
}<br />
}).then(res =&gt; { if (res.ok) ajaxify.refresh(); });</p>
</li>
<li>
<p dir="auto">Modernized Topic Deletion:<br />
Delegates click on bottom bar <code>button[data-action="topic/delete"]</code>,<br />
retrieves <code>ajaxify.data.tid</code>, asks confirmation, and executes:<br />
fetch('/api/v3/topics/' + tid, {<br />
method: 'DELETE',<br />
headers: {<br />
'x-csrf-token': config.csrf_token,<br />
'content-type': 'application/json'<br />
}<br />
}).then(res =&gt; { if (res.ok) ajaxify.go("category/" + ajaxify.data.cid); });</p>
</li>
<li>
<p dir="auto">Topic Utility Actions (Move, Lock, Pin, Merge):<br />
Uses modern Bootstrap 5 dropdown programmatic activation fallback to<br />
populate and click the native NodeBB core controls:<br />
bootstrap.Dropdown.getOrCreateInstance(toolsBtn).show();</p>
</li>
</ul>
<p dir="auto">B. Profile Moderation &amp; Header Fixes:<br />
File: /opt/app/nodebb-theme-mto/templates/partials/account/header.tpl</p>
<ul>
<li>Added standard dropdown markup to expose user ban, unban, and account<br />
flag/purge actions directly on user profiles for moderators/admins.</li>
</ul>
<ol start="3">
<li>PERSISTENCE &amp; ARCHITECTURE VERIFICATION</li>
</ol>
<hr />
<p dir="auto">A. Docker Bind Mounts:<br />
In <code>/opt/app/docker-compose.yml</code>:<br />
- ./nodebb-theme-mto:/usr/src/app/node_modules/nodebb-theme-mto<br />
- ./nodebb-plugin-mto-bbcode:/usr/src/app/nodebb-plugin-mto-bbcode<br />
- ./entrypoint.sh:/usr/src/app/entrypoint.sh</p>
<p dir="auto">B. Entrypoint Auto-linking:<br />
In <code>/opt/app/entrypoint.sh</code>, the startup routine dynamically executes:<br />
ln -sfn /usr/src/app/nodebb-plugin-mto-bbcode /usr/src/app/node_modules/nodebb-plugin-mto-bbcode<br />
ln -sfn /usr/src/app/nodebb-theme-mto /usr/src/app/node_modules/nodebb-theme-mto<br />
<em>Result</em>: Any modification made directly on the host in <code>/opt/app/</code> is<br />
automatically live inside the container runtime across restarts and recreations.<br />
Manual <code>docker cp</code> is no longer required.</p>
<ol start="4">
<li>VERSION CONTROL &amp; BACKUP COMMITS</li>
</ol>
<hr />
<ul>
<li>
<p dir="auto">Theme Commit:<br />
Repo: /opt/app/nodebb-theme-mto (Branch: fix-composer-submit)<br />
Commit Hash: b63b164<br />
Message: "fix(theme): include moderation and ban dropdown in profile header"</p>
</li>
<li>
<p dir="auto">Plugin &amp; Compose Commit:<br />
Repo: /opt/app (Branch: main)<br />
Commit Hash: 1be7c9b<br />
Message: "your description" (Tracks client.js, library.js, full bbcode plugin)<br />
Parent Pointer: Commit e028caa ("chore: update theme commit reference")</p>
</li>
<li>
<p dir="auto">Complete System Archive:<br />
Location: /opt/app/backups/mto-working-mod-tools-2026-11-03.tar.gz<br />
Includes:</p>
<ul>
<li>/opt/app/nodebb-theme-mto</li>
<li>/opt/app/nodebb-plugin-mto-bbcode</li>
<li>/opt/app/docker-compose.yml</li>
<li>/opt/app/entrypoint.sh</li>
<li>/opt/app/nodebb-config</li>
</ul>
</li>
</ul>
<ol start="5">
<li>STANDARD REBUILD &amp; MAINTENANCE CHEATSHEET</li>
</ol>
<hr />
<p dir="auto">Whenever editing theme templates or plugin JS on the host in the future:</p>
<ol>
<li>
<p dir="auto">Apply your edits directly in <code>/opt/app/nodebb-theme-mto/</code> or<br />
<code>/opt/app/nodebb-plugin-mto-bbcode/</code>.</p>
</li>
<li>
<p dir="auto">Rebuild the NodeBB asset cache and restart the container:<br />
docker exec -it app-nodebb-1 ./nodebb build<br />
docker restart app-nodebb-1</p>
</li>
<li>
<p dir="auto">Hard refresh your browser:<br />
Ctrl + F5 (or Cmd + Shift + R)</p>
</li>
<li>
<p dir="auto">Commit the changes:</p>
<h1>For theme changes:</h1>
<p dir="auto">cd /opt/app/nodebb-theme-mto &amp;&amp; git add -A &amp;&amp; git commit -m "Commit message"<br />
cd /opt/app &amp;&amp; git add nodebb-theme-mto &amp;&amp; git commit -m "chore: update theme pointer"</p>
<h1>For plugin changes:</h1>
<p dir="auto">cd /opt/app &amp;&amp; git add nodebb-plugin-mto-bbcode/ &amp;&amp; git commit -m "Commit message"<br />
================================================================================</p>
</li>
</ol>
]]></description><link>https://multitool.ninja/post/2592826</link><guid isPermaLink="true">https://multitool.ninja/post/2592826</guid><dc:creator><![CDATA[Grant Lamontagne]]></dc:creator><pubDate>Tue, 03 Nov 2026 05:53:07 GMT</pubDate></item><item><title><![CDATA[Reply to MTO- NodeBB on Elestio on Mon, 02 Nov 2026 01:18:29 GMT]]></title><description><![CDATA[<p dir="auto">================================================================================</p>
<p dir="auto"><a href="http://MULTITOOL.ORG" rel="nofollow ugc">MULTITOOL.ORG</a> MIGRATION &amp; MAINTENANCE WORK LOG</p>
<p dir="auto">Date: November 1, 2026</p>
<p dir="auto">Environment: multitool.ninja (Elestio VPS / NodeBB Staging)</p>
<p dir="auto">Server Target: app-nodebb-1 / app-redis-1</p>
<p dir="auto">================================================================================</p>
<ol>
<li>LEGACY SMF SMILEYS PERSISTENCE FIX</li>
</ol>
<hr />
<ul>
<li>
<p dir="auto">Issue:</p>
<p dir="auto">Custom plugin 'nodebb-plugin-smurf-censor' containing 142 legacy SMF smileys</p>
<p dir="auto">needed permanent persistence against container rebuilds and npm pruning.</p>
</li>
<li>
<p dir="auto">Actions Taken:</p>
<ul>
<li>
<p dir="auto">Created a timestamped host backup:</p>
<p dir="auto">nodebb-plugin-smurf-censor-backup-2026-11-01.tar.gz</p>
</li>
<li>
<p dir="auto">Updated /opt/app/docker-compose.yml:</p>
<p dir="auto">Added bind mount:</p>
<p dir="auto">./nodebb-plugin-smurf-censor:/usr/src/app/nodebb-plugin-smurf-censor</p>
</li>
<li>
<p dir="auto">Updated /opt/app/entrypoint.sh:</p>
<p dir="auto">Added auto-symlink logic (SMURF_SRC to SMURF_DST) on container startup.</p>
</li>
<li>
<p dir="auto">Executed forced container recreate:</p>
<p dir="auto">docker compose up -d --force-recreate nodebb</p>
</li>
<li>
<p dir="auto">Verification:</p>
<p dir="auto">Symlink confirmed active:</p>
<p dir="auto">/usr/src/app/node_modules/nodebb-plugin-smurf-censor -&gt; /usr/src/app/nodebb-plugin-smurf-censor</p>
</li>
</ul>
</li>
</ul>
<ol start="2">
<li>MOBILE PAGINATION NAVIGATION REPAIR</li>
</ol>
<hr />
<ul>
<li>
<p dir="auto">Issue:</p>
<p dir="auto">Mobile visitors viewing multi-page topics on narrow viewports (&lt;768px) were</p>
<p dir="auto">routed to the latest reply without pagination controls, trapping them on the</p>
<p dir="auto">final page without an easy way to navigate backward.</p>
</li>
<li>
<p dir="auto">Actions Taken:</p>
<ul>
<li>
<p dir="auto">Diagnosed active styling entrypoint: verified theme uses 'theme.scss'</p>
<p dir="auto">in /opt/app/nodebb-theme-mto/ (rather than standalone style.css).</p>
</li>
<li>
<p dir="auto">Appended responsive media query rules (@media max-width: 767px) directly</p>
<p dir="auto">to /opt/app/nodebb-theme-mto/theme.scss:</p>
<ul>
<li>
<p dir="auto">Forced visibility and flex display on pagination containers.</p>
</li>
<li>
<p dir="auto">Set touch-friendly link padding (8px 12px) and font sizing.</p>
</li>
<li>
<p dir="auto">Preserved active, first, last, prev, and next buttons while collapsing</p>
<p dir="auto">overflow middle links.</p>
</li>
</ul>
</li>
<li>
<p dir="auto">Rebuilt NodeBB assets via Webpack (completed in ~6.1s) and restarted container.</p>
</li>
<li>
<p dir="auto">Cleaned up test files (style.css). Mobile navigation confirmed working.</p>
</li>
</ul>
</li>
</ul>
<ol start="3">
<li>FORUM BRAND FAVICON REPLACEMENT</li>
</ol>
<hr />
<ul>
<li>
<p dir="auto">Issue:</p>
<p dir="auto">Staging instance displayed default NodeBB favicon instead of the official</p>
<p dir="auto"><a href="http://Multitool.Org" rel="nofollow ugc">Multitool.Org</a> branding.</p>
</li>
<li>
<p dir="auto">Actions Taken:</p>
<ul>
<li>
<p dir="auto">Fetched live favicon directly from <a href="https://forum.multitool.org/favicon.ico" rel="nofollow ugc">https://forum.multitool.org/favicon.ico</a></p>
<p dir="auto">into persistent uploads and container public assets.</p>
</li>
<li>
<p dir="auto">Populated touch icon directory (/public/assets/images/touch/512.png).</p>
</li>
<li>
<p dir="auto">Extracted Redis credentials from NodeBB config.json and executed</p>
<p dir="auto">authenticated hset updates to the 'config' hash:</p>
<ul>
<li>
<p dir="auto">Set 'brand:favicon' to '/favicon.ico?v=2'</p>
</li>
<li>
<p dir="auto">Set 'brand:touchIcon' to '/favicon.ico?v=2'</p>
</li>
</ul>
</li>
<li>
<p dir="auto">Rebuilt assets, restarted container, and cleared browser favicon cache.</p>
</li>
<li>
<p dir="auto">Confirmed official logo rendering in the browser tab.</p>
</li>
</ul>
</li>
</ul>
<ol start="4">
<li>AUDIT &amp; ARCHITECTURAL DECISIONS</li>
</ol>
<hr />
<ul>
<li>
<p dir="auto">Inactive Core Plugins &amp; Themes:</p>
<ul>
<li>
<p dir="auto">Audited installed inactive plugins (2factor, emoji, emoji-android, and themes</p>
<p dir="auto">harmony, lavender, peace, persona).</p>
</li>
<li>
<p dir="auto">Decision: Leave installed but deactivated.</p>
</li>
<li>
<p dir="auto">Reasons:</p>
<ol>
<li>
<p dir="auto">Zero security attack surface: NodeBB/Express does not expose or execute</p>
<p dir="auto">inactive plugins.</p>
</li>
<li>
<p dir="auto">Dependency preservation: 'nodebb-theme-mto' directly inherits from</p>
<p dir="auto">'nodebb-theme-harmony'.</p>
</li>
<li>
<p dir="auto">npm stability: Avoids container package pruning that damages custom</p>
<p dir="auto">symlinked plugins.</p>
</li>
<li>
<p dir="auto">Emergency ACP recovery fallbacks remain intact.</p>
</li>
</ol>
</li>
</ul>
</li>
<li>
<p dir="auto">GearFeed (Pixelfed) Forum Bridge:</p>
<ul>
<li>
<p dir="auto">Evaluated automatic cross-posting from GearFeed into a dedicated forum board.</p>
</li>
<li>
<p dir="auto">Decision: Postpone until AFTER the legacy SMF database import.</p>
</li>
<li>
<p dir="auto">Reason: SMF import will flush the database and re-index category/user IDs.</p>
<p dir="auto">Setting up the bridge post-migration prevents duplicate work, ID conflicts,</p>
<p dir="auto">and orphan data.</p>
</li>
</ul>
</li>
<li>
<p dir="auto">Google AdSense Rollout Strategy:</p>
<ul>
<li>
<p dir="auto">Evaluated monetization schedule across SAKWiki, SAK Selector, <a href="http://EDCTV.org" rel="nofollow ugc">EDCTV.org</a>,</p>
<p dir="auto">and the forum.</p>
</li>
<li>
<p dir="auto">Decision: Hold off on forum AdSense until SMF migration is complete, the</p>
<p dir="auto">domain points to <a href="http://forum.multitool.org" rel="nofollow ugc">forum.multitool.org</a>, and public guest viewing is configured</p>
<p dir="auto">(prevents Google "thin content" or login wall crawl rejections).</p>
</li>
<li>
<p dir="auto">Strategy prepared for <a href="http://EDCTV.org" rel="nofollow ugc">EDCTV.org</a> (ensuring show notes/text density) and SAK</p>
<p dir="auto">Selector (clean manual ad placements avoiding auto-ad layout breakages).</p>
</li>
</ul>
</li>
<li>
<p dir="auto">Legacy Gallery 3 (<a href="http://gallery.multitool.org" rel="nofollow ugc">gallery.multitool.org</a>) Preservation:</p>
<ul>
<li>
<p dir="auto">Evaluated decommissioning obsolete Menalto Gallery 3 software without breaking</p>
<p dir="auto">15+ years of linked forum images.</p>
</li>
<li>
<p dir="auto">Decision: Do not import into GearFeed (avoids flooding timeline and breaking URLs).</p>
</li>
<li>
<p dir="auto">Solution provided to site tech: Extract raw image directories (/var/albums,</p>
<p dir="auto">/var/resizes), decommission the vulnerable PHP/MySQL G3 stack entirely, and</p>
<p dir="auto">serve the images as static files via Nginx with legacy rewrite rules.</p>
</li>
</ul>
</li>
</ul>
<p dir="auto">================================================================================</p>
<p dir="auto">END OF LOG</p>
<p dir="auto">================================================================================</p>
]]></description><link>https://multitool.ninja/post/2592706</link><guid isPermaLink="true">https://multitool.ninja/post/2592706</guid><dc:creator><![CDATA[Grant Lamontagne]]></dc:creator><pubDate>Mon, 02 Nov 2026 01:18:29 GMT</pubDate></item><item><title><![CDATA[Reply to MTO- NodeBB on Elestio on Fri, 30 Oct 2026 03:59:25 GMT]]></title><description><![CDATA[<p dir="auto">Smurf filter and MTO smileys moved over and set up.</p>
<h1>================================================================================<br />
MTO NODEBB - CUSTOM SMURF CENSOR &amp; LEGACY SMF SMILEY ENGINE BUILD LOG<br />
Date: October 30, 2026<br />
Host: nodebb-vklpj-u73921 (Elestio VPS)<br />
Container: app-nodebb-1<br />
Domain: multitool.ninja</h1>
<ol>
<li>SYSTEM ARCHITECTURE &amp; PERSISTENCE</li>
</ol>
<hr />
<ul>
<li>Custom Plugin Path on Host:<br />
/opt/app/nodebb-plugin-smurf-censor/</li>
<li>Mounted Inside Container via docker-compose.yml:<br />
/usr/src/app/nodebb-plugin-smurf-censor</li>
<li>NodeBB modules resolution:<br />
NodeBB resolves plugins strictly from /usr/src/app/node_modules/.<br />
Because node_modules is rebuilt/pruned on container updates, an automated<br />
symlink is recreated on boot via /opt/app/entrypoint.sh:<br />
/usr/src/app/node_modules/nodebb-plugin-smurf-censor -&gt; /usr/src/app/nodebb-plugin-smurf-censor</li>
<li>Asset Storage:<br />
141 legacy animated GIF/PNG smileys reside in:<br />
/usr/src/app/public/uploads/smileys/<br />
(Host mount: /var/lib/docker/volumes/app_nodebb-files/_data/smileys/)<br />
A persistent static fallback backup copy is preserved at:<br />
/opt/app/nodebb-plugin-smurf-censor/smileys-backup/</li>
</ul>
<ol start="2">
<li>CONFLICT RESOLUTION</li>
</ol>
<hr />
<ul>
<li>Problem: The stock 'nodebb-plugin-emoji' intercepted colon codes (e.g. <img src="https://multitool.ninja/assets/plugins/nodebb-plugin-emoji/emoji/android/1f601.png?v=b41cf6e2207" class="not-responsive emoji emoji-android emoji--grin" style="height:1.4em;width:auto;vertical-align:middle" title=":grin:" alt="😁" />,<br />
<img src="https://multitool.ninja/assets/plugins/nodebb-plugin-emoji/emoji/android/1f192.png?v=b41cf6e2207" class="not-responsive emoji emoji-android emoji--cool" style="height:1.4em;width:auto;vertical-align:middle" title=":cool:" alt="🆒" />, <img src="https://multitool.ninja/assets/plugins/nodebb-plugin-emoji/emoji/android/1f620.png?v=b41cf6e2207" class="not-responsive emoji emoji-android emoji--angry" style="height:1.4em;width:auto;vertical-align:middle" title=":angry:" alt="😠" />), causing broken image squares, duplicate scrapers, and missing<br />
emoji pack errors.</li>
<li>Fix: Uninstalled/deactivated 'nodebb-plugin-emoji'.<br />
Native OS emojis (Win + ., macOS shortcuts, mobile keyboards) continue to<br />
work natively in Unicode, while our custom plugin maintains exclusive control<br />
over all forum smileys.</li>
</ul>
<ol start="3">
<li>CORE COMPONENT MANIFEST</li>
</ol>
<hr />
<h2>File: /opt/app/nodebb-plugin-smurf-censor/package.json</h2>
<p dir="auto">{<br />
"name": "nodebb-plugin-smurf-censor",<br />
"version": "1.0.0",<br />
"description": "Smurf censor and classic SMF smiley engine",<br />
"main": "library.js"<br />
}</p>
<h2>File: /opt/app/nodebb-plugin-smurf-censor/plugin.json</h2>
<p dir="auto">{<br />
"id": "nodebb-plugin-smurf-censor",<br />
"name": "Smurf Censor",<br />
"library": "./library.js",<br />
"scripts": [<br />
"./client.js"<br />
],<br />
"css": [<br />
"./style.css"<br />
],<br />
"hooks": [<br />
{ "hook": "filter:post.save", "method": "filterPostSave" },<br />
{ "hook": "filter:parse.post", "method": "filterParse" },<br />
{ "hook": "filter:parse.raw", "method": "filterParseRaw" },<br />
{ "hook": "filter:posts.get", "method": "filterPostsGet" },<br />
{ "hook": "filter:topic.get", "method": "filterTopicGet" },<br />
{ "hook": "filter:topics.get", "method": "filterTopicsGet" },<br />
{ "hook": "filter:topic.create", "method": "filterTopicCreate" },<br />
{ "hook": "filter:topic.edit", "method": "filterTopicEdit" }<br />
]<br />
}</p>
<h2>File: /opt/app/nodebb-plugin-smurf-censor/library.js</h2>
<ul>
<li>Reads /opt/app/nodebb-plugin-smurf-censor/smileys.json at startup.</li>
<li>Word Filter / Censor:<br />
Replaces profane terms with "smurf", "smurfing", "smurfed", "smurfer",<br />
"smurfhole", "smurflicker", and pharmaceutical terms with "Smurfpills".<br />
Reroutes competitive/spam retail domains ([url=http://forum.multitool.org]multitool[/url], [url=http://forum.multitool.org]multitool[/url], [url=http://forum.multitool.org]multitool[/url])<br />
to <a href="http://forum.multitool.org" rel="nofollow ugc">multitool</a>.</li>
<li>Smiley Parsing Pipeline:<br />
Splits content by HTML tags (/(&lt;[^&gt;]+&gt;)/g) to prevent rewriting attributes.<br />
Transforms exact :name: shortcodes directly into:<br />
&lt;img src="/assets/uploads/smileys/&lt;file&gt;" alt=":code:" title="desc" class="forum-smiley emoji" /&gt;</li>
<li>Server Hooks:
<ul>
<li>filterPostSave: Executes before WebSocket broadcast so new posts are<br />
pre-rendered before pushing to clients.</li>
<li>filterParse / filterParseRaw: Parses strings, post objects, and composer data.</li>
<li>filterPostsGet: Guarantees full post hydration on page loads.</li>
<li>filterTopicGet / filterTopicsGet / filterTopicCreate / filterTopicEdit:<br />
Cleans topic titles through the smurf censor.</li>
</ul>
</li>
</ul>
<h2>File: /opt/app/nodebb-plugin-smurf-censor/client.js</h2>
<ul>
<li>Top Bar Smiley Strip:<br />
Appends the classic SMF quick-smiley bar directly below the composer<br />
formatting toolbar with active hover zoom animations.</li>
<li>[more] Modal Selector:<br />
Clicking [more] launches an overlay modal housing the full secondary<br />
and historical smiley catalog. Clicking any smiley inserts the normalized<br />
code at cursor position and closes the window.</li>
<li>Live Real-Time Typing Preview:<br />
Hooks 'filter:parse.raw', 'action:composer.preview', and text input listeners<br />
so that typing or inserting smileys instantly renders the animated GIF in<br />
the composer preview pane without delay.</li>
<li>Real-Time WebSocket Delivery (Zero Page Refresh):<br />
Initializes a MutationObserver on document.body coupled with hooks on<br />
'action:posts.loaded' and 'action:posts.edited'. When another member posts,<br />
new post DOM elements are scanned and rendered instantly.</li>
</ul>
<h2>File: /opt/app/nodebb-plugin-smurf-censor/style.css</h2>
<ul>
<li>Universal Reset:<br />
Forces img.forum-smiley to display inline-block, background transparent,<br />
border none, margin 0, padding 0 1px, vertical-align middle.</li>
<li>Card/Frame Suppression:<br />
Strips card wrappers and margins in light and dark modes. Preserves<br />
natural background readability for classic indexed GIFs.</li>
<li>Composer &amp; Modal Styling:<br />
Styles the .mto-smiley-bar, .mto-composer-smiley, .mto-more-btn,<br />
and popup modal grid.</li>
</ul>
<ol start="4">
<li>DOCKER &amp; SYSTEM HARDENING CONFIGURATION</li>
</ol>
<hr />
<p dir="auto">A. /opt/app/docker-compose.yml<br />
Under services -&gt; nodebb -&gt; volumes:<br />
- /opt/app/nodebb-plugin-smurf-censor:/usr/src/app/nodebb-plugin-smurf-censor</p>
<p dir="auto">B. /opt/app/entrypoint.sh<br />
Inserted above the final 'exit 0':</p>
<p dir="auto">SMURF_SRC=/usr/src/app/nodebb-plugin-smurf-censor<br />
SMURF_DST=/usr/src/app/node_modules/nodebb-plugin-smurf-censor<br />
if [ -d "$SMURF_SRC" ]; then<br />
ln -sfn "$SMURF_SRC" "$SMURF_DST"<br />
echo "MTO NodeBB startup: linked nodebb-plugin-smurf-censor into node_modules."<br />
else<br />
echo "MTO NodeBB startup: WARNING - $SMURF_SRC introuvable, plugin non lie."<br />
fi</p>
<p dir="auto">C. Persistent Archive<br />
Timestamped complete archive created on host:<br />
/opt/app/smurf-censor-and-smileys-backup-2026-10-30.tar.gz</p>
<ol start="5">
<li>REBUILD / DISASTER RECOVERY PROCEDURES</li>
</ol>
<hr />
<p dir="auto">If container is rebuilt from scratch or node_modules is completely pruned:</p>
<ol>
<li>
<p dir="auto">Restore plugin directory (if missing):<br />
cd /opt/app<br />
tar -xzvf smurf-censor-and-smileys-backup-2026-10-30.tar.gz</p>
</li>
<li>
<p dir="auto">Ensure docker-compose.yml contains the volume mount:<br />
/opt/app/nodebb-plugin-smurf-censor:/usr/src/app/nodebb-plugin-smurf-censor</p>
</li>
<li>
<p dir="auto">Ensure <a href="http://entrypoint.sh" rel="nofollow ugc">entrypoint.sh</a> has the symlink block for nodebb-plugin-smurf-censor.</p>
</li>
<li>
<p dir="auto">If smiley images in /usr/src/app/public/uploads/smileys are missing:<br />
docker exec -i app-nodebb-1 mkdir -p /usr/src/app/public/uploads/smileys<br />
docker cp /opt/app/nodebb-plugin-smurf-censor/smileys-backup/. app-nodebb-1:/usr/src/app/public/uploads/smileys/<br />
docker exec -i app-nodebb-1 chown -R node:node /usr/src/app/public/uploads/smileys</p>
</li>
<li>
<p dir="auto">Activate and rebuild NodeBB:<br />
docker exec -i app-nodebb-1 /usr/src/app/nodebb activate nodebb-plugin-smurf-censor<br />
docker exec -i app-nodebb-1 /usr/src/app/nodebb build<br />
docker restart app-nodebb-1</p>
</li>
<li>
<p dir="auto">Status Verification:<br />
docker exec -i app-nodebb-1 ls -la /usr/src/app/node_modules/nodebb-plugin-smurf-censor<br />
(Must output symlink -&gt; /usr/src/app/nodebb-plugin-smurf-censor)<br />
================================================================================</p>
</li>
</ol>
]]></description><link>https://multitool.ninja/post/2592465</link><guid isPermaLink="true">https://multitool.ninja/post/2592465</guid><dc:creator><![CDATA[Grant Lamontagne]]></dc:creator><pubDate>Fri, 30 Oct 2026 03:59:25 GMT</pubDate></item><item><title><![CDATA[Reply to MTO- NodeBB on Elestio on Wed, 28 Oct 2026 04:54:50 GMT]]></title><description><![CDATA[<h1>================================================================================<br />
<a href="http://MULTITOOL.ORG" rel="nofollow ugc">MULTITOOL.ORG</a> (MTO) MIGRATION &amp; SYSTEM AUDIT LOG<br />
Date: October 28, 2026<br />
Host Environment: nodebb-vklpj-u73921 (/opt/app)<br />
Container: app-nodebb-1 (NodeBB v4.16.4 on Node.js v24.22.1 / Redis)</h1>
<ol>
<li>SUMMARY OF CHANGES &amp; ACTIONS COMPLETED</li>
</ol>
<hr />
<p dir="auto">A. FULL SYSTEM &amp; COMPONENT AUDIT</p>
<ul>
<li>Audited active plugins in Redis (<code>plugins:active</code>) and the physical filesystem.</li>
<li>Verified 5 custom MTO components are present, validly formed, and loaded:
<ul>
<li>nodebb-plugin-mto-bbcode (legacy SMF BBCode parser, quick-mod bar, client scripts)</li>
<li>nodebb-plugin-mto-messages (custom private messaging module)</li>
<li>nodebb-plugin-mto-awards (badges / user awards system)</li>
<li>nodebb-plugin-treasury (ledger, subscriptions, and PayPal IPN listener)</li>
<li>nodebb-theme-mto (custom Harmony-based skin, brand header, widget areas)</li>
</ul>
</li>
<li>Audited all theme template anchors against registered Express backend routes.<br />
Confirmed that header buttons (Home, Search, Admin, Profile, Messages,<br />
Bookmarks, Members, Badges) map to live route endpoints.</li>
</ul>
<p dir="auto">B. PRIVATE MESSAGES (MTO-MESSAGES) NAVIGATION &amp; UX FIX</p>
<ul>
<li>Problem Identified: Clicking "MESSAGES" in the top navbar failed silently;<br />
only right-clicking "Open in new window" worked.</li>
<li>Root Cause: NodeBB's single-page router (Ajaxify) attempted to intercept<br />
the custom route (<code>/mto-messages</code>) without an in-memory client template,<br />
halting page transition.</li>
<li>Solution Implemented:
<ul>
<li>Patched <code>brand.tpl</code> inside the custom theme to include an inline<br />
navigation bypass:<br />
<code>onclick="window.location.href=this.href; return false;"</code></li>
<li>Now standard left-clicking routes cleanly and directly into the inbox.</li>
</ul>
</li>
</ul>
<p dir="auto">C. REAL-TIME UNREAD PRIVATE MESSAGE TRACKING &amp; BELL NOTIFICATIONS</p>
<ul>
<li>Problem Identified: Unread counters remained static or failed to clear.</li>
<li>Solution Implemented in <code>nodebb-plugin-mto-messages/library.js</code>:
<ul>
<li>Implemented per-thread read timestamps in Redis:<br />
Key: <code>mto:pm:read:&lt;threadId&gt;:&lt;uid&gt;</code></li>
<li>Thread views at <code>/mto-messages/:threadId</code> automatically update this<br />
timestamp to <code>Date.now()</code>.</li>
<li>Re-engineered endpoint <code>GET /mto-messages/unread-count</code> to dynamically<br />
compute unread threads where latest post timestamp &gt; user's lastRead timestamp.</li>
<li>Added NodeBB bell notification dispatch on message send (<code>notifications.create</code><br />
and <code>notifications.push</code>) to alert recipients across desktop/mobile.</li>
<li>Injected a lightweight client poller in <code>nodebb-plugin-mto-bbcode/static/client.js</code><br />
hooked to <code>action:ajaxify.end</code> and a 60-second interval to keep the red<br />
navbar badge (<code>.mtorg-pm-count</code>) updated in real time.</li>
</ul>
</li>
</ul>
<p dir="auto">D. TREASURY PLUGIN &amp; MULTI-SITE DONATION FEDERATION</p>
<ul>
<li>Audited the "OPERATIONAL FUNDS" sidebar widget; verified it is dynamically<br />
driven by <code>nodebb-plugin-treasury</code> via <code>renderFundsWidget</code> recalculating<br />
monthly targets, dates, receipts, and percentage progress against ledger entries.</li>
<li>Re-engineered PayPal IPN listener (<code>POST /treasury/ipn</code>) in<br />
<code>nodebb-plugin-treasury/library.js</code>:
<ul>
<li>Enhanced IPN <code>custom</code> payload parsing from <code>targetUid:actionType</code> to:<br />
<code>targetUid:actionType:sourceSite</code></li>
<li>Added fallback extraction from <code>item_name</code> to auto-detect "SAKSelector"<br />
or "EDC-TV".</li>
<li>Updated <code>TreasuryDB.recordTransaction</code> to record <code>projectId</code> ('sakselector',<br />
'edctv', or 'forum') and append site origin tags to transaction descriptions<br />
(e.g., <code>PayPal Donation [SAKSELECTOR]: donor@email.com</code>).</li>
<li>Verified that incoming satellite donations maintain <code>category: 'donation'</code>,<br />
allowing external contributions to automatically advance the forum's<br />
operational funds thermometer.</li>
</ul>
</li>
</ul>
<p dir="auto">E. PERSISTENCE &amp; HARDENING (PREVENTING REGRESSION ON REBOOT/UPDATE)</p>
<ul>
<li>Converted <code>node_modules</code> copies of custom plugins and theme into persistent<br />
symbolic links pointing directly to the root source directories.</li>
<li>Created host-level external backups in <code>/opt/app/mto-custom-backup/</code> to protect<br />
custom code against container recreations or image resets.</li>
<li>Created a one-line self-healing restoration script at <code>/opt/app/restore-mto.sh</code>.</li>
</ul>
<h1>================================================================================<br />
2. SATELLITE SITE INTEGRATION PAYLOAD SPECIFICATIONS</h1>
<p dir="auto">To feed incoming donations from SAKSelector and EDC-TV into the MTO Treasury,<br />
ensure external forms use the following parameters:</p>
<ul>
<li>POST Target URL: <a href="https://www.paypal.com/cgi-bin/webscr" rel="nofollow ugc">https://www.paypal.com/cgi-bin/webscr</a></li>
<li>Business: <a href="mailto:admin@def-it.com" rel="nofollow ugc">admin@def-it.com</a></li>
<li>IPN Notification URL (notify_url): <a href="https://multitool.ninja/treasury/ipn">https://multitool.ninja/treasury/ipn</a></li>
</ul>
<p dir="auto">SAKSelector Payload:</p>
<ul>
<li>item_name: SAKSelector Donation</li>
<li>custom: 0:donation:sakselector</li>
<li>return: <a href="https://sakselector.org" rel="nofollow ugc">https://sakselector.org</a></li>
</ul>
<p dir="auto">EDC-TV Payload:</p>
<ul>
<li>item_name: EDC-TV Donation</li>
<li>custom: 0:donation:edctv</li>
<li>return: <a href="https://edctv.org" rel="nofollow ugc">https://edctv.org</a></li>
</ul>
<h1>================================================================================<br />
3. CHECKLIST OF POTENTIAL FAILURE POINTS &amp; FAST REMEDIES</h1>
<p dir="auto"></p><div class="plugin-markdown"><input type="checkbox" />1. SYMLINKS OVERWRITTEN BY NPM / NODEBB BUILD</div><br />
- Risk: Running <code>npm install</code> inside the container can replace directory<br />
symlinks with static folder trees or delete unindexed packages.<br />
- Check:<br />
docker exec -it app-nodebb-1 ls -la /usr/src/app/node_modules/ | grep -E "nodebb-(plugin-mto|theme-mto|plugin-treasury)"<br />
- Remedy: If entries do not show <code>-&gt; /usr/src/app/...</code>, re-run:<br />
/opt/app/restore-mto.sh<p></p>
<p dir="auto"></p><div class="plugin-markdown"><input type="checkbox" />2. CONTAINER RECREATION / ELESTIO WATCHTOWER UPDATES</div><br />
- Risk: If Elestio updates or recreates the container image, any file not<br />
mapped to a persistent Docker volume will revert to default.<br />
- Check: Confirm Elestio "Auto-Update" is disabled for the NodeBB service.<br />
- Remedy: If a container reset occurs, run on the host:<br />
/opt/app/restore-mto.sh<p></p>
<p dir="auto"></p><div class="plugin-markdown"><input type="checkbox" />3. PAYPAL IPN DROPS OR SILENT REJECTIONS</div><br />
- Risk: PayPal changes TLS/SSL handshakes, or your firewall/reverse proxy<br />
blocks POST requests to <code>/treasury/ipn</code>.<br />
- Check:<br />
docker exec -it app-nodebb-1 grep "Treasury IPN" /usr/src/app/logs/output.log<br />
Check for "IPN unverified" or "Handshake error".<br />
- Remedy: Confirm SSL certificates are valid on the domain and that PayPal's<br />
IPN history dashboard reports HTTP 200 responses.<p></p>
<p dir="auto"></p><div class="plugin-markdown"><input type="checkbox" />4. PM UNREAD BADGE NOT DECREMENTING</div><br />
- Risk: User navigates via back-button cache or WebSocket disconnects.<br />
- Check: Open browser DevTools (F12) -&gt; Network tab, and verify that<br />
<code>/mto-messages/unread-count</code> returns valid JSON <code>{ count: X }</code>.<br />
- Remedy: Verify the thread visit endpoint is reached (<code>/mto-messages/:threadId</code>)<br />
which resets <code>mto:pm:read:&lt;threadId&gt;:&lt;uid&gt;</code> in Redis.<p></p>
<p dir="auto"></p><div class="plugin-markdown"><input type="checkbox" />5. REDIS OBJECT / WIDGET SYNC CONFLICT</div><br />
- Risk: Editing widgets in NodeBB ACP (<code>/admin/extend/widgets</code>) can<br />
inadvertently overwrite the custom <code>treasury_funds</code> or HTML containers.<br />
- Check: Ensure <code>widgets:global</code> still contains <code>treasury_funds</code> in the<br />
sidebar area via Redis CLI or inspection script.<br />
- Remedy: Re-drag the "Treasury Funds" widget into the Global Sidebar in ACP.<p></p>
<h1>================================================================================<br />
END OF LOG</h1>
]]></description><link>https://multitool.ninja/post/2592305</link><guid isPermaLink="true">https://multitool.ninja/post/2592305</guid><dc:creator><![CDATA[Grant Lamontagne]]></dc:creator><pubDate>Wed, 28 Oct 2026 04:54:50 GMT</pubDate></item><item><title><![CDATA[Reply to MTO- NodeBB on Elestio on Tue, 27 Oct 2026 23:21:31 GMT]]></title><description><![CDATA[<p dir="auto">Summary of What We Hardened on NodeBB TonightComposer Runtime Restored &amp; Persisted: Added the null-check to scheduler.js and baked it directly into /opt/app/entrypoint.sh so restarts/rebuilds never break the composer again.   Ghost Plugin Cleaned: Purged nodebb-plugin-poll from Redis plugins:active, eliminating asset compiler warnings and missing module errors.Theme Repository Synchronized: Committed the composer duplicate submit button, post count metadata, and button styling cleanly into git.   Registration Hardened: Active hCaptcha challenge enabled on registration without requiring SMTP email verification.   Brute-Force Throttle Active: Enforced a 60-second cooldown after 5 failed login attempts to prevent credential stuffing.</p>
]]></description><link>https://multitool.ninja/post/2592278</link><guid isPermaLink="true">https://multitool.ninja/post/2592278</guid><dc:creator><![CDATA[Grant Lamontagne]]></dc:creator><pubDate>Tue, 27 Oct 2026 23:21:31 GMT</pubDate></item><item><title><![CDATA[Reply to MTO- NodeBB on Elestio on Wed, 21 Oct 2026 03:52:12 GMT]]></title><description><![CDATA[<p dir="auto">Donations module is now set up.</p>
<h1>================================================================================<br />
ENGINEERING DAILY LOG: NODEBB TREASURY &amp; MEMBERSHIP PLUGIN</h1>
<p dir="auto">Date:        October 21, 2026<br />
Environment: NodeBB v4.16.2 on Elestio (nodebb-vklpj-u73921)<br />
Containers:  app-nodebb-1 (NodeBB), app-redis-1 (Redis)<br />
Host Root:   /opt/app<br />
Staging URL: <a href="https://multitool.ninja">https://multitool.ninja</a> (Target: <a href="http://multitool.org" rel="nofollow ugc">multitool.org</a>)<br />
Git Commit:  a91b6f5 ("feat(treasury): complete plugin verification, bind mount and auto-link")</p>
<hr />
<ol>
<li>EXECUTIVE SUMMARY</li>
</ol>
<hr />
<p dir="auto">Successfully verified, hardened, and locked in the end-to-end implementation<br />
of the custom Treasury &amp; Subscriptions plugin (nodebb-plugin-treasury). All<br />
ledger accounting, IPN webhooks, automated group provisioning, and expiration<br />
cleanup jobs were validated in the live container. Docker Compose bind-mounts<br />
and entrypoint startup scripts were permanently wired so the module survives all<br />
future Elestio updates, rebuilds, and container restarts.</p>
<hr />
<ol start="2">
<li>KEY ARCHITECTURE &amp; LOGIC</li>
</ol>
<hr />
<ul>
<li>
<p dir="auto">Webhook Route:<br />
Mounted at /treasury/ipn directly via Express router to cleanly bypass<br />
NodeBB's core /api/v3/* schema validation requirements.</p>
</li>
<li>
<p dir="auto">Double-Entry Ledger Math:<br />
All financial amounts and account balances are stored and calculated strictly<br />
in integer cents in Redis (lib/db.js) to avoid floating-point drift.</p>
</li>
<li>
<p dir="auto">Subscription Indexing &amp; Group Provisioning:<br />
When a valid subscription IPN is received:</p>
<ul>
<li>Writes sub details to Redis hash: treasury:sub:&lt;uid&gt;:&lt;planId&gt;</li>
<li>Indexes expiration in sorted set:  treasury:subscriptions:byExpiry</li>
<li>Adds user to target group:         groups.join(plan.groupName, uid)</li>
<li>Tracks user sub keys in:           treasury:user:&lt;uid&gt;:subs</li>
</ul>
</li>
<li>
<p dir="auto">Expiration &amp; Revocation Engine:</p>
<ul>
<li>Hourly background timer triggers: TreasuryDB.checkExpiredSubscriptions()</li>
<li>Queries sorted set using range:   ['-inf' to now] via getSortedSetRangeByScore</li>
<li>Calls NodeBB core:                groups.leave(sub.groupName, uid)</li>
<li>Purges hashes and keys:           treasury:sub:* and all tracking sets.</li>
</ul>
</li>
</ul>
<hr />
<ol start="3">
<li>VERIFICATION &amp; HARDENING STEPS COMPLETED</li>
</ol>
<hr />
<p dir="auto"></p><div class="plugin-markdown"><input type="checkbox" checked="true" />Security Hardening:</div><br />
- Removed all diagnostic bypass headers ('x-treasury-test').<br />
- Enforced strict requirement for PayPal 'VERIFIED' handshakes.<p></p>
<p dir="auto"></p><div class="plugin-markdown"><input type="checkbox" checked="true" />Expiry Engine Testing:</div><br />
- Fixed sorted set query lower-bound parameter in lib/db.js to use '-inf'.<br />
- Tested expired subscription record for UID 3 in 'Charter Members'.<br />
- Verified complete automated removal from NodeBB user group.<br />
- Verified cleanup of all Redis hash keys and sorted set indexes.<br />
- Confirmed active subscriptions (UID 1) remained intact and untouched.<p></p>
<p dir="auto"></p><div class="plugin-markdown"><input type="checkbox" checked="true" />Test Data Cleanup:</div><br />
- Purged ephemeral mock transactions and test subscription hashes from Redis.<p></p>
<hr />
<ol start="4">
<li>DEPLOYMENT &amp; CONTAINER PERSISTENCE SETUP</li>
</ol>
<hr />
<p dir="auto">To ensure zero data loss during container recreation or image pulls:</p>
<ol>
<li>
<p dir="auto">Host Directory:<br />
Source repository lives at /opt/app/nodebb-plugin-treasury</p>
</li>
<li>
<p dir="auto">Docker Compose Bind-Mount (/opt/app/docker-compose.yml):<br />
Added under app-nodebb-1 service volumes:</p>
<ul>
<li>./nodebb-plugin-treasury:/usr/src/app/nodebb-plugin-treasury</li>
</ul>
</li>
<li>
<p dir="auto">Startup Auto-Symlink (/opt/app/entrypoint.sh):<br />
Added startup routine to dynamically link into container node_modules:</p>
<p dir="auto">TREASURY_SRC=/usr/src/app/nodebb-plugin-treasury<br />
TREASURY_DST=/usr/src/app/node_modules/nodebb-plugin-treasury<br />
if [ -d "$TREASURY_SRC" ]; then<br />
ln -sfn "$TREASURY_SRC" "$TREASURY_DST"<br />
echo "MTO NodeBB startup: linked nodebb-plugin-treasury into node_modules."<br />
fi</p>
</li>
<li>
<p dir="auto">Verification:<br />
Recreated container via <code>docker compose up -d --force-recreate nodebb</code>.<br />
Verified symlink inside container:<br />
/usr/src/app/node_modules/nodebb-plugin-treasury -&gt; /usr/src/app/nodebb-plugin-treasury</p>
</li>
<li>
<p dir="auto">Git Tracking:<br />
Committed all 15 plugin files, templates, entrypoint, and compose configs<br />
under commit a91b6f5.</p>
</li>
</ol>
<hr />
<h1>STATUS: COMPLETE &amp; PRODUCTION-READY</h1>
]]></description><link>https://multitool.ninja/post/2591585</link><guid isPermaLink="true">https://multitool.ninja/post/2591585</guid><dc:creator><![CDATA[Grant Lamontagne]]></dc:creator><pubDate>Wed, 21 Oct 2026 03:52:12 GMT</pubDate></item><item><title><![CDATA[Reply to MTO- NodeBB on Elestio on Mon, 19 Oct 2026 13:08:34 GMT]]></title><description><![CDATA[<p dir="auto">Yes, work is definitely a four letter word.</p>
<p dir="auto">Still, great job man.   <img src="/assets/uploads/smileys/541.gif" alt=":tu:" title="Thumbs up!" class="forum-smiley emoji" /></p>
<p dir="auto">Def</p>
]]></description><link>https://multitool.ninja/post/2591397</link><guid isPermaLink="true">https://multitool.ninja/post/2591397</guid><dc:creator><![CDATA[Grant Lamontagne]]></dc:creator><pubDate>Mon, 19 Oct 2026 13:08:34 GMT</pubDate></item><item><title><![CDATA[Reply to MTO- NodeBB on Elestio on Mon, 19 Oct 2026 10:48:04 GMT]]></title><description><![CDATA[<p dir="auto">My testing will not affect the live setup.</p>
<p dir="auto">Posts completed during the night, now there's some post import bbcode to markdown that is supposed to work, but I don't see any activity yet... But I had to go to work...</p>
]]></description><link>https://multitool.ninja/post/2591382</link><guid isPermaLink="true">https://multitool.ninja/post/2591382</guid><dc:creator><![CDATA[Whoey]]></dc:creator><pubDate>Mon, 19 Oct 2026 10:48:04 GMT</pubDate></item><item><title><![CDATA[Reply to MTO- NodeBB on Elestio on Sun, 18 Oct 2026 22:48:51 GMT]]></title><description><![CDATA[<p dir="auto">I am holding off on any further modifications to NodeBB until Micah says it's clear to continue.</p>
<p dir="auto">Def</p>
]]></description><link>https://multitool.ninja/post/2591343</link><guid isPermaLink="true">https://multitool.ninja/post/2591343</guid><dc:creator><![CDATA[Grant Lamontagne]]></dc:creator><pubDate>Sun, 18 Oct 2026 22:48:51 GMT</pubDate></item><item><title><![CDATA[Reply to MTO- NodeBB on Elestio on Sun, 18 Oct 2026 17:46:31 GMT]]></title><description><![CDATA[<p dir="auto">So it was in a restart loop.</p>
<p dir="auto">89k topics took about 40 min once I got the hiccups sorted, it's now about 160k through the 2.4million replies, estimated time 13-17h...</p>
<p dir="auto">We definitely need a few days downtime to migrate all posts.</p>
<p dir="auto">Attachments is likely to be even more.</p>
]]></description><link>https://multitool.ninja/post/2591328</link><guid isPermaLink="true">https://multitool.ninja/post/2591328</guid><dc:creator><![CDATA[Whoey]]></dc:creator><pubDate>Sun, 18 Oct 2026 17:46:31 GMT</pubDate></item><item><title><![CDATA[Reply to MTO- NodeBB on Elestio on Sun, 18 Oct 2026 13:44:42 GMT]]></title><description><![CDATA[<p dir="auto">Finally got some progress with my local testing.</p>
<p dir="auto">SMF mysql restored (2gb)</p>
<p dir="auto">nodebb functional<br />
Import plugin functional<br />
started import this morning;</p>
<p dir="auto">1.5h for 9500 users<br />
1h for nearly 300000 PMs<br />
now into topics, it's been going for hours...</p>
<p dir="auto">I don't have any attachments setup for this first test, wanted to see how we go first with posts before I give it 50gb of files to dig through.</p>
<p dir="auto">It seems like it doesn't like repeated emails, so if there are profiles with the same email, one will override.</p>
<p dir="auto">Also, I believe passwords will not migrate; they will need to be regenerated and users will need to use recovery to update. For this PLEASE try to put some sort of notice/newsletter that all users ensure their profile has an updated email or they will be blocked when we migrate.</p>
<p dir="auto">Additionally based on the experience so far, looks like we will have to put the current site in read only mode, backup, download, migrate, create a db/attachments backup and upload migrated forum to new platform. This will take a few days, unless there is some way to just sync latest... still early to say.</p>
]]></description><link>https://multitool.ninja/post/2591298</link><guid isPermaLink="true">https://multitool.ninja/post/2591298</guid><dc:creator><![CDATA[Whoey]]></dc:creator><pubDate>Sun, 18 Oct 2026 13:44:42 GMT</pubDate></item><item><title><![CDATA[Reply to MTO- NodeBB on Elestio on Fri, 16 Oct 2026 20:59:12 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">@Grant Lamontagne <a href="/post/2591012">said</a>:<br />
I am working on the Treasury module now- if there are any more functional/operational changes you guys think should be made, let me know.  Currently it appears as if the forum is functioning as a forum should.</p>
<p dir="auto">Def</p>
</blockquote>
<p dir="auto">How about  a Like button with emojis ?</p>
<p dir="auto">Also, did we lose notifications, profile editing ?</p>
]]></description><link>https://multitool.ninja/post/2591123</link><guid isPermaLink="true">https://multitool.ninja/post/2591123</guid><dc:creator><![CDATA[SteveC]]></dc:creator><pubDate>Fri, 16 Oct 2026 20:59:12 GMT</pubDate></item><item><title><![CDATA[Reply to MTO- NodeBB on Elestio on Fri, 16 Oct 2026 11:25:29 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">@Grant Lamontagne <a href="/post/2591031">said</a>:<br />
I am hoping so.   <img src="https://multitool.ninja/assets/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=b41cf6e2207" class="not-responsive emoji emoji-android emoji--smile" style="height:1.4em;width:auto;vertical-align:middle" title=":D" alt="😄" /></p>
<p dir="auto">I have been noticing that the options for moderators are either well hidden or kind of limited.  Looking into making it easier for you guys to do your thing is high on my list.</p>
<p dir="auto">Def</p>
</blockquote>
<p dir="auto"><img src="/assets/uploads/smileys/541.gif" alt=":tu:" title="Thumbs up!" class="forum-smiley emoji" /></p>
]]></description><link>https://multitool.ninja/post/2591048</link><guid isPermaLink="true">https://multitool.ninja/post/2591048</guid><dc:creator><![CDATA[SteveC]]></dc:creator><pubDate>Fri, 16 Oct 2026 11:25:29 GMT</pubDate></item><item><title><![CDATA[Reply to MTO- NodeBB on Elestio on Fri, 16 Oct 2026 08:03:21 GMT]]></title><description><![CDATA[<p dir="auto">Sorry haven't been following much.</p>
<p dir="auto">I can generate sfs key, for when domain migrates.</p>
<p dir="auto">I haven't made any progress on my local migration attempt.</p>
<p dir="auto">Somehow my docker setup is confusing me and I seem to have some sort of duplicate running, preventing me from installing scripts on my local copy of nodebb.</p>
<p dir="auto">Gemini wasn't particularly helpful to figure it out yet.</p>
<p dir="auto">Also I should probably apply all your updates once content is imported to see if it's working correctly.</p>
<p dir="auto">Don't be afraid to leave some crap out for implementation later, that is if anyone noticed it is missing. The cleaner the base install the less headaches keeping up to date.</p>
]]></description><link>https://multitool.ninja/post/2591036</link><guid isPermaLink="true">https://multitool.ninja/post/2591036</guid><dc:creator><![CDATA[Whoey]]></dc:creator><pubDate>Fri, 16 Oct 2026 08:03:21 GMT</pubDate></item><item><title><![CDATA[Reply to MTO- NodeBB on Elestio on Fri, 16 Oct 2026 04:29:11 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/stevec" aria-label="Profile: SteveC">@<bdi>SteveC</bdi></a> <a href="/post/2591025">said</a>:<br />
Will there be a Moderate button at the top of the page for moderation log and reported posts ?</p>
</blockquote>
<p dir="auto">I am hoping so.   <img src="https://multitool.ninja/assets/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=b41cf6e2207" class="not-responsive emoji emoji-android emoji--smile" style="height:1.4em;width:auto;vertical-align:middle" title=":D" alt="😄" /></p>
<p dir="auto">I have been noticing that the options for moderators are either well hidden or kind of limited.  Looking into making it easier for you guys to do your thing is high on my list.</p>
<p dir="auto">Def</p>
]]></description><link>https://multitool.ninja/post/2591031</link><guid isPermaLink="true">https://multitool.ninja/post/2591031</guid><dc:creator><![CDATA[Grant Lamontagne]]></dc:creator><pubDate>Fri, 16 Oct 2026 04:29:11 GMT</pubDate></item><item><title><![CDATA[Reply to MTO- NodeBB on Elestio on Fri, 16 Oct 2026 03:40:26 GMT]]></title><description><![CDATA[<p dir="auto">Will there be a Moderate button at the top of the page for moderation log and reported posts ?</p>
]]></description><link>https://multitool.ninja/post/2591025</link><guid isPermaLink="true">https://multitool.ninja/post/2591025</guid><dc:creator><![CDATA[SteveC]]></dc:creator><pubDate>Fri, 16 Oct 2026 03:40:26 GMT</pubDate></item><item><title><![CDATA[Reply to MTO- NodeBB on Elestio on Fri, 16 Oct 2026 03:22:35 GMT]]></title><description><![CDATA[<p dir="auto">I cut it a bit short tonight- these nights seem to be catching up to me and I am having trouble focusing.  But, here is where I am at:</p>
<h1>Development &amp; Deployment Log: NodeBB Treasury &amp; Membership Plugin</h1>
<p dir="auto"><strong>Date:</strong> October 16, 2026</p>
<p dir="auto"><strong>Environment:</strong> NodeBB v4.16.2 running inside Docker (<code>app-nodebb-1</code>) on Elestio host (<code>nodebb-vklpj-u73921</code>) backed by Redis (<code>app-redis-1</code>). Staging URL: <code>[https://multitool.ninja](https://multitool.ninja)</code> (production domain cutover target: <code>multitool.org</code>).</p>
<hr />
<h2>1. Summary of Work Completed</h2>
<h3>A. Sidebar Widget Fixes &amp; Visual Polish</h3>
<ul>
<li>
<p dir="auto"><strong>Widget Crash Resolution:</strong> Resolved an unhandled <code>TypeError: Cannot read properties of undefined (reading 'renderAsync')</code> in <code>library.js</code> by capturing the Express <code>app</code> instance during <code>plugin.init({ app, router, middleware })</code> and wrapping <code>app.render</code> in a native Promise.</p>
</li>
<li>
<p dir="auto"><strong>Theme Icon &amp; Contrast Styling:</strong></p>
</li>
<li>
<p dir="auto">Removed the heart icon from the <strong>Make A Donation</strong> button and replaced it with a wrench/screwdriver tool motif (<code>fa-solid fa-screwdriver-wrench</code>).</p>
</li>
<li>
<p dir="auto">Locked button text and icons to deep charcoal (<code>#141414 !important; font-weight: 700;</code>) on an amber/yellow background (<code>#fca311</code>), eliminating washed-out white text in dark mode.</p>
</li>
<li>
<p dir="auto">Adjusted widget table numbers to soft muted body colors (<code>var(--bs-body-color)</code> / <code>text-body fw-semibold</code>) instead of harsh pure white.</p>
</li>
<li>
<p dir="auto"><strong>Header Simplification:</strong></p>
</li>
<li>
<p dir="auto">Removed the misaligned, clipped inline <code>fa-vault</code> icon from the top of the card.</p>
</li>
<li>
<p dir="auto">Eliminated the redundant uppercase <code>DONATIONS</code> header, leaving a clean, centered title: <strong>Operational Funds</strong>.</p>
</li>
</ul>
<h3>B. Member Privacy &amp; Forum Scoping</h3>
<ul>
<li>
<p dir="auto"><strong>Restricting Member-Facing Treasury View (<code>/treasury</code><img src="https://multitool.ninja/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=b41cf6e2207" class="not-responsive emoji emoji-android emoji--disappointed" style="height:1.4em;width:auto;vertical-align:middle" title="):" alt="😞" /></strong></p>
</li>
<li>
<p dir="auto">Removed all public access to raw transaction ledgers, individual line-item payouts, and internal account balance sheets to protect financial privacy.</p>
</li>
<li>
<p dir="auto">Transformed <code>/treasury</code> into a focused member contribution and goal progress page featuring monthly target metrics, quick-donation buttons, and a link to <code>/subscriptions</code>.</p>
</li>
<li>
<p dir="auto">Retained the double-entry ledger, project allocation tracking, and complete audit trail strictly inside the Admin Control Panel (<code>/admin/plugins/treasury</code>).</p>
</li>
<li>
<p dir="auto"><strong>Donation Calculation Scoping:</strong></p>
</li>
<li>
<p dir="auto">Updated <code>getForumDonationsMonthTotal()</code> in <code>library.js</code> to strictly tally credits where <code>category === 'donation'</code> or <code>category === 'forum-donation'</code> for the current calendar month.</p>
</li>
<li>
<p dir="auto">Excluded paid membership fees (<code>category: 'subscription'</code>), initial seed funding, merchandise sales, and cross-site external income from the public progress bar to maintain contest and giveaway eligibility rules.</p>
</li>
<li>
<p dir="auto">Updated the ACP transaction posting modal to distinguish between <strong>Forum Donation</strong>, <strong>Seed / Opening Balance</strong>, and <strong>Merch / External</strong>.</p>
</li>
</ul>
<h3>C. PayPal Integration &amp; Domain Agnosticism</h3>
<ul>
<li>
<p dir="auto"><strong>Public Donation Form Buttons:</strong></p>
</li>
<li>
<p dir="auto">Built direct donation form actions ($10, $25, $50, $100, and Custom) on <code>/treasury</code> submitting directly to PayPal's standard checkout via POST, avoiding brittle inline client-side scripts.</p>
</li>
<li>
<p dir="auto">Tagged submissions with <code>custom="{uid}:donation"</code> for backend tracking.</p>
</li>
<li>
<p dir="auto"><strong>Subscriptions Store Integration:</strong></p>
</li>
<li>
<p dir="auto">Added direct PayPal checkout forms to tier cards on <code>/subscriptions</code> passing <code>custom="{uid}:{planId}"</code>.</p>
</li>
<li>
<p dir="auto"><strong>Backend IPN Listener (<code>/api/v3/plugins/treasury/ipn</code><img src="https://multitool.ninja/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=b41cf6e2207" class="not-responsive emoji emoji-android emoji--disappointed" style="height:1.4em;width:auto;vertical-align:middle" title="):" alt="😞" /></strong></p>
</li>
<li>
<p dir="auto">Configured an unauthenticated POST webhook that performs an immediate 200 OK receipt and executes an asynchronous <code>cmd=_notify-validate</code> handshake back to <code>ipnpb.paypal.com</code>.</p>
</li>
<li>
<p dir="auto">Automatically joins members to designated NodeBB usergroups upon confirmed payment of subscription plans.</p>
</li>
<li>
<p dir="auto">Logs verified donation transactions directly into the default financial ledger in integer cents.</p>
</li>
<li>
<p dir="auto"><strong>Live Merchant Verification:</strong></p>
</li>
<li>
<p dir="auto">Updated the template merchant identity from placeholder <code>donations@multitool.org</code> to the live account (<code>Defender Web &amp; Tool</code>), successfully validating checkout generation for <code>$10.00 CAD</code>.</p>
</li>
<li>
<p dir="auto"><strong>Dynamic Domain Resolution for Production Cutover:</strong></p>
</li>
<li>
<p dir="auto">Injected <code>baseUrl = nconf.get('url')</code> into both controllers and templates.</p>
</li>
<li>
<p dir="auto">All form <code>return</code> and <code>notify_url</code> parameters now dynamically bind to whatever domain is active in <code>config.json</code> (<code>multitool.ninja</code> during testing, transitioning to <code>multitool.org</code> at launch without code edits).</p>
</li>
<li>
<p dir="auto"><strong>Crash Fix (<code>ReferenceError: donationsCents is not defined</code><img src="https://multitool.ninja/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=b41cf6e2207" class="not-responsive emoji emoji-android emoji--disappointed" style="height:1.4em;width:auto;vertical-align:middle" title="):" alt="😞" /></strong></p>
</li>
<li>
<p dir="auto">Resolved variable naming mismatch in <code>library.js</code> and wrapped controllers in robust <code>try/catch</code> error boundaries to prevent worker process drops and 502 Bad Gateway proxy errors.</p>
</li>
</ul>
<hr />
<h2>2. Technical Architecture &amp; File Reference</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>File Path</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>/opt/app/nodebb-plugin-treasury/library.js</code></td>
<td>Core plugin entrypoint: controllers, routes, widget renderer, PayPal IPN listener, and hourly subscription expiry cron.</td>
</tr>
<tr>
<td><code>/opt/app/nodebb-plugin-treasury/lib/db.js</code></td>
<td>Redis data access layer: double-entry ledger, subscriptions, projects, and audit logs.</td>
</tr>
<tr>
<td><code>/opt/app/nodebb-plugin-treasury/templates/treasury.tpl</code></td>
<td>Public donation and monthly operational goal view.</td>
</tr>
<tr>
<td><code>/opt/app/nodebb-plugin-treasury/templates/subscriptions.tpl</code></td>
<td>Public membership tiers and active subscription status store.</td>
</tr>
<tr>
<td><code>/opt/app/nodebb-plugin-treasury/templates/widgets/treasury-funds.tpl</code></td>
<td>Global sidebar widget template for operational funds progress.</td>
</tr>
</tbody>
<tbody>
<tr>
<td></td>
</tr>
<tr>
<td><code>/opt/app/nodebb-plugin-treasury/templates/admin/treasury-overview.tpl</code></td>
<td>ACP management interface for ledger, accounts, plans, and audit logs.</td>
</tr>
<tr>
<td><code>/opt/app/backups/treasury_*</code></td>
<td>Local restore point containing compressed plugin source and Redis database dump.</td>
</tr>
</tbody>
</table>
<hr />
<h2>3. Next Steps &amp; Implementation Plan</h2>
<h3>Phase 1: End-to-End Payment &amp; Webhook Verification</h3>
<ul>
<li><div class="plugin-markdown"><input type="checkbox" /></div><strong>Configure PayPal IPN in Dashboard:</strong> In the live PayPal merchant account, set the Instant Payment Notification (IPN) URL to <code>[https://multitool.ninja/api/v3/plugins/treasury/ipn](https://multitool.ninja/api/v3/plugins/treasury/ipn)</code> and enable IPN delivery.</li>
<li><div class="plugin-markdown"><input type="checkbox" /></div><strong>Live Test Transaction ($1.00 or test tier):</strong> Run a live subscription or direct donation test using a secondary PayPal account to verify that:</li>
<li>The payment completes successfully on PayPal.</li>
<li>The IPN callback receives a 200 OK and validates with <code>VERIFIED</code>.</li>
<li>The test user is automatically added to the target group (e.g., Charter Members) without admin intervention.</li>
<li>The amount is credited to the internal ACP ledger in integer cents.</li>
</ul>
<h3>Phase 2: Expiration &amp; Renewal Notifications</h3>
<ul>
<li><div class="plugin-markdown"><input type="checkbox" /></div><strong>Renewal Reminder Alerts:</strong> Hook into the hourly background cron in <code>library.js</code> (<code>TreasuryDB.checkExpiredSubscriptions</code>) to send automated NodeBB in-app notifications and emails to members 7 days and 1 day prior to subscription expiration.</li>
<li><div class="plugin-markdown"><input type="checkbox" /></div><strong>Grace Period / Expiration Handling:</strong> Confirm the automated group removal (<code>groups.leave</code>) fires accurately when <code>expiryDate &lt;= now</code> without breaking permissions.</li>
</ul>
<h3>Phase 3: Final Production Polish &amp; Cutover Checklist</h3>
<ul>
<li><div class="plugin-markdown"><input type="checkbox" /></div><strong>Seed Transaction Database Cleanup:</strong> Using <code>redis-cli</code> directly inside <code>app-redis-1</code>, clean up the category tag on the initial hypothetical seed transaction so the public widget begins cleanly at <code>$0.00</code> for live launch.</li>
<li><div class="plugin-markdown"><input type="checkbox" /></div><strong>DNS Cutover Verification:</strong> When switching from <code>multitool.ninja</code> to <code>multitool.org</code>:</li>
<li>Update <code>url</code> in <code>/usr/src/app/config.json</code>.</li>
<li>Update the IPN URL inside the PayPal merchant settings to <code>[https://multitool.org/api/v3/plugins/treasury/ipn](https://multitool.org/api/v3/plugins/treasury/ipn)</code>.</li>
<li>Run <code>./nodebb build</code> and restart container.</li>
</ul>
]]></description><link>https://multitool.ninja/post/2591023</link><guid isPermaLink="true">https://multitool.ninja/post/2591023</guid><dc:creator><![CDATA[Grant Lamontagne]]></dc:creator><pubDate>Fri, 16 Oct 2026 03:22:35 GMT</pubDate></item><item><title><![CDATA[Reply to MTO- NodeBB on Elestio on Fri, 16 Oct 2026 00:45:18 GMT]]></title><description><![CDATA[<p dir="auto">I am working on the Treasury module now- if there are any more functional/operational changes you guys think should be made, let me know.  Currently it appears as if the forum is functioning as a forum should.</p>
<p dir="auto">Def</p>
]]></description><link>https://multitool.ninja/post/2591012</link><guid isPermaLink="true">https://multitool.ninja/post/2591012</guid><dc:creator><![CDATA[Grant Lamontagne]]></dc:creator><pubDate>Fri, 16 Oct 2026 00:45:18 GMT</pubDate></item><item><title><![CDATA[Reply to MTO- NodeBB on Elestio on Thu, 15 Oct 2026 06:39:07 GMT]]></title><description><![CDATA[<ol>
<li><strong>User Intent</strong> — Diagnose and restore broken compose submit actions, implement a permanent mobile-friendly duplicate Submit button below the composer, retain custom profile card structures, restore the display of user post counts in post sidebars, and apply readable, high-contrast light and dark styling to post header Quote and Reply buttons.</li>
<li><strong>Key Information</strong> —</li>
</ol>
<ul>
<li>Core compose routes fire <code>action:composer.enhance</code> via <code>forum/compose</code>.</li>
<li>NodeBB core <code>client.js</code> was patched from <code>require(['composer'])</code> to <code>app.require('composer')</code> because global <code>require</code> was unavailable.</li>
<li><code>composer/scheduler.js</code> was patched with a null-check guard on <code>cancelBtn.addEventListener</code> to prevent unhandled <code>TypeError</code> crashes when <code>.dropdown-item.cancel-scheduling</code> was absent from the DOM.</li>
<li>Theme client scripts must be declared inside <code>plugin.json</code> (such as <code>static/lib/mto-topic-actions.js</code>) for NodeBB to compile them into the active bundle.</li>
<li>Post header Quote and Reply buttons are rendered in <code>templates/partials/topic/post.tpl</code> using <code>.mto-btn-quote</code> and <code>.mto-btn-reply</code> classes, requiring explicit styling across light and dark mode in <code>theme.scss</code>.</li>
<li>Author sidebar metadata is rendered in <code>templates/partials/topic/post.tpl</code> under <code>&lt;aside class="mto-post-author"&gt;</code> and supports <code>{formattedNumber(posts.user.postcount)}</code>.</li>
</ul>
<ol start="3">
<li><strong>Progress &amp; Completed Changes</strong> —</li>
</ol>
<ul>
<li><strong>Core Engine &amp; Scheduler Patches</strong>: Verified patches to <code>client.js</code> and <code>scheduler.js</code> in <code>node_modules</code> preventing silent client JS execution failures.</li>
<li><strong>Duplicate Mobile Submit Button</strong>: Implemented the duplicate submit button container inside <code>static/lib/mto-topic-actions.js</code> on <code>action:composer.enhanced</code>, verified working natively on compose views.</li>
<li><strong>Quote &amp; Reply Button Restyling</strong>: Added custom SCSS in <code>theme.scss</code> targeting <code>.mto-header-tools .mto-btn-quote</code> and <code>.mto-btn-reply</code>, restoring sharp border definition, solid background contrast, and crisp icons across both light and dark themes.</li>
<li><strong>Author Post Count Restoration</strong>: Added <code>&lt;div class="mto-post-author-stats"&gt;</code> displaying <code>Posts: {formattedNumber(posts.user.postcount)}</code> directly into <code>templates/partials/topic/post.tpl</code> beneath the author groups container, along with matching styles in <code>theme.scss</code>.</li>
<li><strong>Asset Compilation &amp; Container State</strong>: Completed <code>nodebb build client</code> and verified clean asset compiles followed by container restarts.</li>
</ul>
<ol start="4">
<li><strong>Active Context / Next Session</strong> — All primary functional fixes, duplicate submit controls, post count metadata displays, and header button styling updates are successfully compiled, verified, and running in production. Optional polish items left for the next session include suppressing the automatic <code>@username</code> pre-population when clicking per-post Reply buttons and any remaining profile sidebar layout enhancements.</li>
</ol>
]]></description><link>https://multitool.ninja/post/2590904</link><guid isPermaLink="true">https://multitool.ninja/post/2590904</guid><dc:creator><![CDATA[Grant Lamontagne]]></dc:creator><pubDate>Thu, 15 Oct 2026 06:39:07 GMT</pubDate></item><item><title><![CDATA[Reply to MTO- NodeBB on Elestio on Wed, 14 Oct 2026 14:27:47 GMT]]></title><description><![CDATA[<p dir="auto">You are right- the Submit button doesn't seem to work.</p>
<p dir="auto">smurf.</p>
<p dir="auto">I'll get on that ASAP.</p>
<p dir="auto">Def</p>
]]></description><link>https://multitool.ninja/post/2590821</link><guid isPermaLink="true">https://multitool.ninja/post/2590821</guid><dc:creator><![CDATA[Grant Lamontagne]]></dc:creator><pubDate>Wed, 14 Oct 2026 14:27:47 GMT</pubDate></item></channel></rss>