If "system.inet_addr" gives me the @domain.com portion, then what variable name gives me the "first.last" portion?
In the end, I want "first.last@domain.com", but for the life of me, I can't find the variable name that sbbs uses for the "first.last" portion.
Any help would be appreciated.
In JavaScript, the user.email property will give you the user's email address on the BBS.
Re: User's Email Variable Name
By: Digital Man to ansunent on Tue Dec 20 2022 21:04:27
In JavaScript, the user.email property will give you the user's email address on the BBS.
I tried that, but it was at the registration page on webv4, and after that the system has them actually use their login to, well, "log in". So, I'm assuming the system won't display their email address back to them because they're not logged in yet even though they are registered.
If you know they're user number, you can create a new User instance and read/display the 'email' property. The user doesn't have to be logged in.
Re: User's Email Variable Name
By: Digital Man to ansunent on Tue Dec 20 2022 21:29:54
If you know they're user number, you can create a new User instance and read/display the 'email' property. The user doesn't have to be logged in.
I'm not certain how I would be able to do that unless their user number is assigned at the point that registration is successfully submitted, but I may have missed something.
I'm not sure exactly what you're trying to accomplish, but if you know the user's alias or real name, it's trivial in JS to replace the spaces in their real name or alias with '.' and append '@' + system.inet_addr to the result and display it to the user.
Re: User's Email Variable Name
By: Digital Man to ansunent on Thu Dec 22 2022 20:43:43
I'm not sure exactly what you're trying to accomplish, but if you know the user's alias or real name, it's trivial in JS to replace the spaces in their real name or alias with '.' and append '@' + system.inet_addr to the result and display it to the user.
I'm hoping to make a message like "newuser.msg" on the web side immediately after the users submits their registration so they'll know their new email address.
Re: User's Email Variable Name
By: Digital Man to ansunent on Fri Dec 23 2022 06:22 pm
Wow I know it maybe all in my mind but v320a seems faster, but then again
that may be me.
Only thing I see is when trying to add Synchronet games it is still
looking for the old file format and not a ini file.
And when jsexec update it updated: checking 3.19 file bases?
Checking for 3.20 config files
Checking for 320 user base
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 409 |
Nodes: | 16 (2 / 14) |
Uptime: | 49:55:58 |
Calls: | 8,571 |
Calls today: | 1 |
Files: | 13,222 |
Messages: | 5,929,240 |