added "date of birth" as a users table field, added appropriate code to core
to get and set it, added "date" dialog field and updated registration, profile, and admin modify to use it to change a user's date of birth; added BDAY support to vCards and rigged user import/export to take it into account; cleaned up a few other matters while I was in that particular code
This commit is contained in:
@@ -84,7 +84,7 @@ if (op=="create")
|
||||
|
||||
// Create the new user account and set up its initial context.
|
||||
uc = rinput.engine.createNewAccount(rinput.sourceAddress,dlg.getValue("user"),dlg.getValue("pass1"),
|
||||
dlg.getValue("remind"));
|
||||
dlg.getValue("remind"),dlg.getValue("dob"));
|
||||
|
||||
// Set up the account's contact info.
|
||||
ci = uc.getContactInfo();
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
//
|
||||
// The Original Code is the Venice Web Communities System.
|
||||
//
|
||||
// The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
|
||||
// The Initial Developer of the Original Code is Eric J. Bowersox <erbo@ricochet.com>,
|
||||
// for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
|
||||
// Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
||||
// Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
||||
//
|
||||
// Contributor(s):
|
||||
|
||||
@@ -74,6 +74,7 @@ if ("GET"==rinput.verb)
|
||||
if (ci.privateEmail)
|
||||
dlg.setValue("pvt_email",1);
|
||||
dlg.setValue("url",ci.URL);
|
||||
dlg.setValue("dob",user.dateOfBirth);
|
||||
dlg.setValue("descr",user.description);
|
||||
dlg.setValue("photo",ci.photoURL);
|
||||
dlg.sendMessage("photo","setLinkURL","profile_photo.js.vs?tgt=" + vlib.encodeURL(target));
|
||||
@@ -175,6 +176,7 @@ if (op=="update")
|
||||
user.properties = props;
|
||||
|
||||
// Save off the user's description and preferences.
|
||||
user.dateOfBirth = dlg.getValue("dob");
|
||||
user.description = dlg.getValue("descr");
|
||||
user.locale = dlg.getValue("locale");
|
||||
user.timeZone = dlg.getValue("tz");
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
//
|
||||
// The Original Code is the Venice Web Communities System.
|
||||
//
|
||||
// The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
|
||||
// The Initial Developer of the Original Code is Eric J. Bowersox <erbo@ricochet.com>,
|
||||
// for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
|
||||
// Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
||||
// Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
||||
//
|
||||
// Contributor(s):
|
||||
|
||||
@@ -115,6 +115,7 @@ if ("GET"==rinput.verb)
|
||||
if (ci.privateEmail)
|
||||
dlg.setValue("pvt_email",1);
|
||||
dlg.setValue("url",ci.URL);
|
||||
dlg.setValue("dob",admuser.dateOfBirth);
|
||||
dlg.setValue("descr",admuser.description);
|
||||
dlg.setValue("photo",ci.photoURL);
|
||||
if (props.displayPostPictures)
|
||||
@@ -233,6 +234,7 @@ if (op=="update")
|
||||
admuser.properties = props;
|
||||
|
||||
// Save off the user's description and preferences.
|
||||
admuser.dateOfBirth = dlg.getValue("dob");
|
||||
admuser.description = dlg.getValue("descr");
|
||||
admuser.locale = dlg.getValue("locale");
|
||||
admuser.timeZone = dlg.getValue("tz");
|
||||
|
||||
Reference in New Issue
Block a user