Group badges not showing
-
Add a console.log to where I posted here https://github.com/NodeBB/NodeBB/blob/master/src/user/profile.js#L223. See what gets saved into groupTitle field when you hit save on the edit profile page. Also log the value of
meta.config.allowMultipleBadges
-
@pitaj said in Group badges not showing:
@phenomlab it does seem to be the same issue. They mention they're running a lot of plugins which is what made me think of recommending disabling them.
I've disabled the ones that I've added and aren't part of the base build, but the issue still persists.
-
@phenomlab console.log is a function you have to pass something to it
console.log(groupTitles, data.groupTitle, meta.config.allowMultipleBadges);
Also put it one line below, so it's below the closing curly brace.
-
The issue seems to be that on your forum the
serializeObject
dependency is pointing to something else. Maybe it is outdated.It should look like this
On your forum it is
And because of that when you click save changes on the profile edit page it is not converting the multiple group selections into a proper array.
-
@baris said in Group badges not showing:
What is your commit hash?
git rev-parse HEAD
?6b4ef46eadce177d51b609bf75df8acdaab61f0a
And the version of persona theme?
Installed 11.0.17
Did you make any modifications to the theme tpl files?
Yes, but only the addition of DIV containers, and breadcrumbs where I wanted them to be displayed.
-
@phenomlab said in Group badges not showing:
6b4ef46eadce177d51b609bf75df8acdaab61f0a
The issue seems to be the flatpickr dependency. It is overriden
serializeObject
which breaks core. -
@baris said in Group badges not showing:
The issue seems to be the flatpickr dependency. It is overriden serializeObject which breaks core.
How can I fix that ?
-
@baris said in Group badges not showing:
Here you go
* [email protected] (installed, enabled) * [email protected] (installed, disabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, disabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, disabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * nodebb-plugin-social-poster (not installed, enabled) * [email protected] (installed, disabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, disabled) * [email protected] (installed, enabled)
-
I am not sure which one includes flatpickr, it could also be included in your custom header in the ACP as a script tag? You can try searching for flatpickr in node_modules with
grep -rnw "flatpickr" node_modules/
If you can't find it there check custom header tab in ACP. -
@phenomlab said in Group badges not showing:
nodebb-plugin-poll
Looks like its this one. https://github.com/NodeBB/nodebb-plugin-poll/blob/master/plugin.json#L42 Try disabling poll plugin and try again.
-
@baris said in Group badges not showing:
@phenomlab said in Group badges not showing:
nodebb-plugin-poll
Looks like its this one. https://github.com/NodeBB/nodebb-plugin-poll/blob/master/plugin.json#L42 Try disabling poll plugin and try again.
No change sadly.