I added a message option to send me an email everytime a new user was verified by the emailvar.js. It's working correctly, and I'm very satisfied with my efforts to make it work. The message it send to my email is as follows:
-+- Snipit ----
msgtxt = "New Member, Alias: " + user.alias + ", #: " + String(user.number) + ", Joined " + system.name + " Today " + (new Date());
-+- Snipit ----
expands as follows in the message:
New Member, Alias: Tuff, #: 191, Joined Valhalla Home Services Today Sun Jul 10 7:15:32
I would rather it to be somewhat like this:
New Member Joined Valhalla Home Services Today Sun Jul 10 7:15:32.
Alias: Tuff
Number: 191
Is there a way to do this. For the like of me, I can't find a way to do this formatting. I'm successful in doing it in one line, but I'm trying to learn more. Thanks in advance.
Re: JS Formatting
By: DesotoFireflite to All on Sun Jul 10 2022 07:24 am
I added a message option to send me an email everytime a new user was
verified by the emailvar.js. It's working correctly, and I'm very
satisfied with my efforts to make it work. The message it send to my
email is as follows:
-+- Snipit ----
msgtxt = "New Member, Alias: " + user.alias + ", #: " +
String(user.number) + ", Joined " + system.name + " Today " + (new
Date()); -+- Snipit ----
expands as follows in the message:
New Member, Alias: Tuff, #: 191, Joined Valhalla Home Services Today
Sun Jul 10 7:15:32
I would rather it to be somewhat like this:
New Member Joined Valhalla Home Services Today Sun Jul 10 7:15:32.
Alias: Tuff
Number: 191
Is there a way to do this. For the like of me, I can't find a way to
do this formatting. I'm successful in doing it in one line, but I'm
trying to learn more. Thanks in advance.
msgtxt = "New Member Joined " + system.name + " Today " + new Date() + ".\r\n"; msgtxt += "\r\n Alias: " + user.alias;
msgtxt += "\r\n Number: " + user.number;
msgtxt += "\r\n";
Re: JS Formatting
By: Digital Man to DesotoFireflite on Sun Jul 10 2022 02:40 pm
Re: JS Formatting
By: DesotoFireflite to All on Sun Jul 10 2022 07:24 am
I added a message option to send me an email everytime a new user was
verified by the emailvar.js. It's working correctly, and I'm very
satisfied with my efforts to make it work. The message it send to my
email is as follows:
-+- Snipit ----
msgtxt = "New Member, Alias: " + user.alias + ", #: " +
String(user.number) + ", Joined " + system.name + " Today " + (new
Date()); -+- Snipit ----
expands as follows in the message:
New Member, Alias: Tuff, #: 191, Joined Valhalla Home Services Today
Sun Jul 10 7:15:32
I would rather it to be somewhat like this:
New Member Joined Valhalla Home Services Today Sun Jul 10 7:15:32.
Alias: Tuff
Number: 191
Is there a way to do this. For the like of me, I can't find a way to
do this formatting. I'm successful in doing it in one line, but I'm
trying to learn more. Thanks in advance.
msgtxt = "New Member Joined " + system.name + " Today " + new Date() + ".\r\n"; msgtxt += "\r\n Alias: " + user.alias;
msgtxt += "\r\n Number: " + user.number;
msgtxt += "\r\n";
WOW, that was simple enough. I had no idea you could do it this way, but after looking at it, it makes perfect sense.
I wish there was a tips and tricks info site on js, that I could explore.
Thanks again for the assist.
I would rather it to be somewhat like this:
New Member Joined Valhalla Home Services Today Sun ...
Alias: Tuff
Number: 191
On 7/10/22 04:24, DesotoFireflite wrote:
I would rather it to be somewhat like this:
New Member Joined Valhalla Home Services Today Sun ...
Alias: Tuff
Number: 191
var msg = [
"New member joined..." + new Date().toString(),
"",
"Alias: " + user.alias,
"Number: " + String(user.number)
].join("\r\n");
msgtxt = "New Member Joined " + system.name + " On " + new Date() + ".\r\n";
msgtxt += "\r\n Name & Alias..: " + "Alias: " + user.alias + ", " + " Real Name: " + user.name;
msgtxt += "\r\n Number........: " + user.number;
msgtxt += "\r\n Handle........: " + user.handle;
msgtxt += "\r\n Birthdate.....: " + user.birthmonth + "/" + user.birthday + "/" + user.birthyear;
msgtxt += "\r\n Location......: " + user.location;
msgtxt += "\r\n IP Address....: " + user.ip_address;
msgtxt += "\r\n Email Address.: " + user.netmail;
msgtxt += "\r\n Gender (M/F/X): " + user.gender;
msgtxt += "\r\n";
Re: Re: JS Formatting
By: DesotoFireflite to Tracker1 on Sun Jul 17 2022 09:02:16
readability is a thing...
Sysop: | Chris Crash |
---|---|
Location: | Huntington Beach, CA. |
Users: | 578 |
Nodes: | 8 (0 / 8) |
Uptime: | 29:20:33 |
Calls: | 10,736 |
Calls today: | 1 |
Files: | 5 |
Messages: | 443,196 |
Posted today: | 1 |