is there a way to set default settings for new users? i'd like to enable privacy, email notifications, automatic follow created topics, sounds, ecc by default

Best posts made by manuel
-
default user settings?
-
RE: Missing profile navigation links
@julian said:
@planner Clear cache?
enh req: ./nodebb clear
and maybe do it automatically on ./nodebb upgrade -
RE: [nodebb-plugin-shoutbox] Shoutbox plugin
i tried a git pull and restarted nodebb, now i have the problem everywhere, so it's the emoji plugin
sorry
can some1 move my post to the correct topic please? -
Changelog
Can you write and keep up to date a changelog in this forum?
P.S.: changelogs on github & everywhere!
-
easyest way to change post author and date/time
what's the simplest way to change the author of a post? and to edit date and time?
-
RE: default user settings?
i've resolved this by adding this code to my custom sso login plugin (https://community.nodebb.org/topic/3322/jsconnect-sso)
User.setSetting(uid, 'dailyDigestFreq', 'week', null); User.setSetting(uid, 'notificationSounds', 1, null); User.setSetting(uid, 'followTopicsOnCreate', 1, null); User.setSetting(uid, 'followTopicsOnReply', 1, null); User.setSetting(uid, 'sendChatNotifications', 1, null);
Latest posts made by manuel
-
RE: JSConnect SSO
i also added this code to load default preferences (inside the "success" function when creating a new user)
User.setSetting(uid, 'dailyDigestFreq', 'week', null); User.setSetting(uid, 'notificationSounds', 1, null); User.setSetting(uid, 'followTopicsOnCreate', 1, null); User.setSetting(uid, 'followTopicsOnReply', 1, null); User.setSetting(uid, 'sendChatNotifications', 1, null);
-
RE: default user settings?
i've resolved this by adding this code to my custom sso login plugin (https://community.nodebb.org/topic/3322/jsconnect-sso)
User.setSetting(uid, 'dailyDigestFreq', 'week', null); User.setSetting(uid, 'notificationSounds', 1, null); User.setSetting(uid, 'followTopicsOnCreate', 1, null); User.setSetting(uid, 'followTopicsOnReply', 1, null); User.setSetting(uid, 'sendChatNotifications', 1, null);
-
RE: JSConnect SSO
@julian said:
.alt-logins .facebook
matches the facebook SSO login, so I believe you could use some custom js and css to change the HTML after-the-fact, although I will admit this is not an ideal solution.in this case how can i execute custom js on login page only?
-
RE: JSConnect SSO
I had to replace InternalOAuthError with Error because the first "is not defined"
-
RE: JSConnect SSO
@julian and when you say
NodeBB *requires* the following: id, displayName, emails. // Everything else is optional.
what is that "everything else"? I need to set the fullname, the username, and the url for profile picture
it's just that? http://passportjs.org/guide/profile/a little bit confusing is the variable "displayName" that will not be used for fullname but for username
how can I sanitize the username the way it will be accepted? I have to solve some [[error:invalid-username]]
-
RE: JSConnect SSO
any suggestion on how to customize the look using an image instead of the fontawesome icon and adding a text description?
strategies.push({ name: constants.name, url: '/auth/' + constants.name, callbackURL: '/auth/' + constants.name + '/callback', icon: 'fa-check-square', scope: (constants.scope || '').split(',') });
-
RE: easyest way to change post author and date/time
Temporarily I solved using Redis Commander https://joeferner.github.io/redis-commander/ and http://www.epochconverter.com/ for timestamp in milliseconds
I think a plugin would be more user friendly
-
RE: easyest way to change post author and date/time
I'm not doing this on regular basis, I mean how to do this with the default redis storage
NodeBB 0.6.1 -
easyest way to change post author and date/time
what's the simplest way to change the author of a post? and to edit date and time?
-
default user settings?
is there a way to set default settings for new users? i'd like to enable privacy, email notifications, automatic follow created topics, sounds, ecc by default