Hi all,
So, I'm way new to some of these more recent sbbs features. It's been a while. The code I created for my bbs nearly 10 years ago in js, is having an odd issue. First, I don't use the newuser modules provided by sbbs. I have my new user creation as part of my login.js script.
Problem I'm having is, my account creation process doesn't really support this Avatar Chooser (though it's way cool, I'll add it later). I don't understand why when my newuser process begins, it loads this avatar chooser module. I'm in no way calling for it in my login.js routines.
Re: Disable Avatar Chooser during newuser creation.an
By: ispyhumanfly to All on Sat Feb 24 2018 04:31 am
Hi all,
So, I'm way new to some of these more recent sbbs features. It's been a while. The code I created for my bbs nearly 10 years ago in js, is having
odd issue. First, I don't use the newuser modules provided by sbbs. I have my new user creation as part of my login.js script.
Problem I'm having is, my account creation process doesn't really support this Avatar Chooser (though it's way cool, I'll add it later). I don't understand why when my newuser process begins, it loads this avatar chooser module. I'm in no way calling for it in my login.js routines.
It's installed by default in SCFG->External Programs->Online Programs->Main, >with "execute as event" set to "New User". Just change that setting to "No".
I don't understand why when my newuser process begins, it loads this
avatar chooser module. I'm in no way calling for it in my login.js
routines.
It's installed by default in SCFG->External Programs->Online Programs->Main, with "execute as event" set to "New User". Just change that setting to "No".
On Fri, 23 Feb 2018 22:18:34 -0800, "Digital Man" <digital.man@VERT>
wrote:
Re: Disable Avatar Chooser during newuser creation.
By: ispyhumanfly to All on Sat Feb 24 2018 04:31 am
Hi all,
So, I'm way new to some of these more recent sbbs features. It's been a while. The code I created for my bbs nearly 10 years ago in js, is having an
odd issue. First, I don't use the newuser modules provided by sbbs. I have my new user creation as part of my login.js script.
Problem I'm having is, my account creation process doesn't really support this Avatar Chooser (though it's way cool, I'll add it later). I don't understand why when my newuser process begins, it loads this avatar chooser module. I'm in no way calling for it in my login.js routines.
It's installed by default in SCFG->External Programs->Online Programs->Main, >with "execute as event" set to "New User". Just change that setting to "No".
I'd like it to ask, but if you say no, then never ask again. They can
always use a menu option later to add an avatar.
Re: Disable Avatar Chooser during newuser creation.
By: Digital Man to ispyhumanfly on Fri Feb 23 2018 10:18 pm
I don't understand why when my newuser process begins, it loads this
avatar chooser module. I'm in no way calling for it in my login.js
routines.
It's installed by default in SCFG->External Programs->Online Programs->Main, with "execute as event" set to "New User". Just change that setting to "No".
Thanks, DM. It's always something simple, right? ;)
You're talking about during logon, not new user create, right? There's already a modopts.ini setting to stop prompting during logon. We could tie that to a user flag which when set means "stop prompting me", but I hate to burn a generic user flag like that.
Re: Re: Disable Avatar Chooser during newuser creation.
By: Digital Man to Nelgin on Sat Feb 24 2018 13:03:36
You're talking about during logon, not new user create, right? There's already a modopts.ini setting to stop prompting during logon. We could tie that to a user flag which when set means "stop prompting me", but I hate to burn a generic user flag like that.
What's triggering the avatar chooser on logon right now?
If it's the
absence of an avatar for that user, we could just add an "I don't want an avatar" option to the chooser; it could set and disable an avatar for that user.
Re: Re: Disable Avatar Chooser during newuser creation.I
By: echicken to Digital Man on Sat Feb 24 2018 07:35 pm
Re: Re: Disable Avatar Chooser during newuser creation.
By: Digital Man to Nelgin on Sat Feb 24 2018 13:03:36
You're talking about during logon, not new user create, right? There's already a modopts.ini setting to stop prompting during logon. We could tie that to a user flag which when set means "stop prompting me", but
hate to burn a generic user flag like that.
What's triggering the avatar chooser on logon right now?
This bit of code in logon.js:
} else if(!(user.security.restrictions&UFLAG_G)
&& console.term_supports(USER_ANSI)
&& options && options.set_avatar == true) {
var avatar = Avatar.read_localuser(user.number);
if(!avatar || !avatar.data) {
alert("You have not selected an avatar.");
if(console.yesno("Select avatar now"))
load("avatar_chooser.js");
}
}
If it's the
absence of an avatar for that user, we could just add an "I don't want an avatar" option to the chooser; it could set and disable an avatar for that user.
Yeah, sure. If the avatar is disabled, then it doesn't really matter what value
(avatar) its set to. Maybe it could just be set to an empty string in that >case.
On Sat, 24 Feb 2018 18:48:12 -0800, "Digital Man" <digital.man@VERT>
wrote:
Re: Re: Disable Avatar Chooser during newuser creation.
By: echicken to Digital Man on Sat Feb 24 2018 07:35 pm
Re: Re: Disable Avatar Chooser during newuser creation.
By: Digital Man to Nelgin on Sat Feb 24 2018 13:03:36
You're talking about during logon, not new user create, right? There's already a modopts.ini setting to stop prompting during logon. We could tie that to a user flag which when set means "stop prompting me", but I
hate to burn a generic user flag like that.
What's triggering the avatar chooser on logon right now?
This bit of code in logon.js:
} else if(!(user.security.restrictions&UFLAG_G)
&& console.term_supports(USER_ANSI)
&& options && options.set_avatar == true) {
var avatar = Avatar.read_localuser(user.number);
if(!avatar || !avatar.data) {
alert("You have not selected an avatar.");
if(console.yesno("Select avatar now"))
load("avatar_chooser.js");
}
}
If it's the
absence of an avatar for that user, we could just add an "I don't want an avatar" option to the chooser; it could set and disable an avatar for that user.
Yeah, sure. If the avatar is disabled, then it doesn't really matter what value
(avatar) its set to. Maybe it could just be set to an empty string in that >case.
Could you do something like if avatar is null then prompt them to
choose one. If it's just empty then don't prompt otherwise if there's
a value then there's already an avatar?
Super cool feature by the way. I consider it a real advancement for BBSs in general. I just need to bypass this for now until I can properly update my login.js routines.
Another cool feature added in Synchronet 3.17 was the voting feature. Users can post polls for other users to vote on (including multiple-choice polls), and for regular messages, you can submit an upvote or a downvote.
| Sysop: | Winzlo |
|---|---|
| Location: | Minnesota, USA |
| Users: | 11 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 495938:21:39 |
| Calls: | 82 |
| Files: | 1,070 |
| D/L today: |
27 files (11,920K bytes) |
| Messages: | 286,960 |