@julian What kind of push notification have you set up for yourself?
saikarthikp9
Posts
-
Recognizing a new post has arrived via API -
How to create a "New Topic" button in header@baris What do you use to create these gifs? Thanks!
-
Can we please update the "Email Taken" error message?Thanks @julian
-
Can we please update the "Email Taken" error message?Can we make this more descriptive? Possibly:
"Email address is already taken."
"Account with email already exists, please login or use another email ID" -
Tags Title Case@baris Please enlighten me.
-
Tags Title CaseIs there a reason we can't specify tags in title case (capital first letter)? It auto-switches to small letters.
-
''Footer'' not showing and ''Home'' icon missing from navigation menuYou need to use the Customize nodebb plugin. A lot of features don't come built into the base installation. Based on the features you need for your forum, you need to find and install plugins.
For the footer, you need to move the widget from the Draft section to the Global Footer section for it to show up.
-
Looking for a Node BB Specialist...@Yan-Koyfmann if @julian is unable to meet your needs, please reach out to me at [email protected]
-
Unable to upload images/files@baris, nevermind, I just had to restart the app on Cloudron, not sure why.
-
Unable to upload images/files@baris
OS: Ubuntu 22.04.3
NodeJS: v18.18.0
npm: 9.8.1I am hosted on Contabo using Cloudron.
-
Unable to upload images/filesError log on the Forum UI:
![yqqpsok1x9vvywpsowj4.jpg]( Something went wrong installing the "sharp" module Cannot find module '../build/Release/sharp-linux-x64.node' Require stack: - /run/nodebb/node_modules/sharp/lib/sharp.js - /run/nodebb/node_modules/sharp/lib/constructor.js - /run/nodebb/node_modules/sharp/lib/index.js - /app/code/src/image.js - /app/code/src/posts/uploads.js - /app/code/src/posts/index.js - /app/code/src/plugins/index.js - /app/code/src/groups/index.js - /app/code/src/user/index.js - /app/code/src/events.js - /app/code/src/meta/themes.js - /app/code/src/meta/index.js - /app/code/src/start.js - /app/code/require-main.js - /app/code/app.js Possible solutions: - Install with verbose logging and look for errors: "npm install --ignore-scripts=false --foreground-scripts --verbose sharp" - Install for the current linux-x64 runtime: "npm install --platform=linux --arch=x64 sharp" - Consult the installation documentation: https://sharp.pixelplumbing.com/install)
-
How do I create a registration interstitial?@julian said in How do I create a registration interstitial?:
The hook is fired on POST /register so that the user can be redirected to the interstitial during the registration process. So you do need to have it respond there in order for the flow to work.
Interesting, the flow still seems to work perfectly (the custom interstitials do show up on redirect to
/register/complete
) with the following code right at the beginning of the hook handler:const url = data.req.originalUrl; if (!url.startsWith("/register/complete")) { return data; }
How is that possible?
-
How do I create a registration interstitial?@julian for some clarity, please help me with the following:
-
Since
filter:register.interstitial
is fired on bothregister
andregisterComplete
, we can ignore the hook fired byregister
by checking ifdata.req.originalUrl
starts with/register/complete
and return early if it does NOT. Right? -
When calling the
next()
function in the callback with an error, is there a way to send a list of errors rather than only 1 message likenext(new Error("Error"));
? -
The following check is not required if we do not plan to update interstitials in the future, right?
@julian said in filter:register.build equivalent for the GDPR page (/register/complete)?:
// if data.userData.uid is present it means this is an EXISTING user, not a new user. Check their hash to see whether they consented. -
-
How do I create a registration interstitial?@julian Thanks so much for your detailed response. I took it as a challenge when I saw your meme and was successfully able to add interstitials with custom fields!! Feeling great
-
How do I create a registration interstitial?@julian, please share your insights on this.
-
How do I create a registration interstitial?This is my plugin code for the hook
filter:register.interstitial
plugin.registerInterstitial = function (params) { const url = params.req.originalUrl; console.log("url", URL); var customInterstital = { template: "partials/customRegistration", data: { test: "test from customInterstital", }, callback: async (userData, formData) => { console.log("customInterstital callback"); console.log(userData); console.log(formData); userData.test = formData.test; }, }; params.interstitials.unshift(customInterstital); return params; };
@baris @julian, when I try to test this, the logs show me the following warning: Interstitial callbacks processed with no errors, but one or more interstitials remain. This is likely an issue with one of the interstitials not properly handling a null case or invalid value.
Also, the other interstitials (email, gdpr) disappear but the custom one I made still stays on the screen. The devtools logs also shows this:
Error: Cannot find module './registerComplete'
What am I doing wrong?
-
Harmony theme mobile menubar is glitchy@baris yes. No issues when I disable that setting, which I don't mind. Thanks.
-
Harmony theme mobile menubar is glitchySorry. iPhone. Google chrome.
-
Harmony theme mobile menubar is glitchyI am not allowed to upload a video, but basically go to community.nodebb.org and just scroll down and up, then try to access the menubar, it just keeps disappearing randomly and it is hard to use.