added some safeguards for the mail to community members/conference
participants: to wit, any user can opt-out from ALL those mailings with one setting; each message now carries a standard disKlaimer indicating how the user can opt-out (and it's REAL opt-out, not this fakey stuff the spammers do)
This commit is contained in:
@@ -148,6 +148,9 @@ public class AdminModifyUserDialog extends ContentDialog
|
||||
addFormField(new CDFormCategoryHeader("User Preferences"));
|
||||
addFormField(new CDCheckBoxFormField("pic_in_post","Display user photos next to conference posts",
|
||||
"(where applicable)",YES));
|
||||
addFormField(new CDCheckBoxFormField("no_mass_mail",
|
||||
"Don't send user mass E-mail from community/conference hosts",
|
||||
null,YES));
|
||||
addFormField(new CDLocaleListFormField("locale","Default locale","(for formatting dates/times)",true));
|
||||
addFormField(new CDTimeZoneListFormField("tz","Default time zone",null,true));
|
||||
addCommandButton(new CDImageButton("update","bn_update.gif","Update",80,24));
|
||||
@@ -289,6 +292,8 @@ public class AdminModifyUserDialog extends ContentDialog
|
||||
photo_control.setLinkURL("adminuserphoto?uid=" + admuser.getUID());
|
||||
if (props.getDisplayPostPictures())
|
||||
setFieldValue("pic_in_post",YES);
|
||||
if (props.getMassMailOptOut())
|
||||
setFieldValue("no_mass_mail",YES);
|
||||
setFieldValue("locale",admuser.getLocale().toString());
|
||||
setFieldValue("tz",admuser.getTimeZone().getID());
|
||||
|
||||
@@ -348,6 +353,7 @@ public class AdminModifyUserDialog extends ContentDialog
|
||||
ci.setPrivateEmail(YES.equals(getFieldValue("pvt_email")));
|
||||
ci.setURL(getFieldValue("url"));
|
||||
props.setDisplayPostPictures(YES.equals(getFieldValue("pic_in_post")));
|
||||
props.setMassMailOptOut(YES.equals(getFieldValue("no_mass_mail")));
|
||||
|
||||
// Store the completed contact info.
|
||||
admuser.putContactInfo(ci);
|
||||
|
||||
@@ -141,6 +141,9 @@ public class EditProfileDialog extends ContentDialog
|
||||
addFormField(new CDFormCategoryHeader("User Preferences"));
|
||||
addFormField(new CDCheckBoxFormField("pic_in_post","Display user photos next to conference posts",
|
||||
"(where applicable)",YES));
|
||||
addFormField(new CDCheckBoxFormField("no_mass_mail",
|
||||
"Don't send me mass E-mail from community/conference hosts",
|
||||
null,YES));
|
||||
addFormField(new CDLocaleListFormField("locale","Default locale","(for formatting dates/times)",true));
|
||||
addFormField(new CDTimeZoneListFormField("tz","Default time zone",null,true));
|
||||
addCommandButton(new CDImageButton("update","bn_update.gif","Update",80,24));
|
||||
@@ -241,6 +244,8 @@ public class EditProfileDialog extends ContentDialog
|
||||
photo_control.setLinkURL("userphoto?tgt=" + URLEncoder.encode(target));
|
||||
if (props.getDisplayPostPictures())
|
||||
setFieldValue("pic_in_post",YES);
|
||||
if (props.getMassMailOptOut())
|
||||
setFieldValue("no_mass_mail",YES);
|
||||
setFieldValue("locale",uc.getLocale().toString());
|
||||
setFieldValue("tz",uc.getTimeZone().getID());
|
||||
|
||||
@@ -285,6 +290,7 @@ public class EditProfileDialog extends ContentDialog
|
||||
|
||||
// Save off the properties.
|
||||
props.setDisplayPostPictures(YES.equals(getFieldValue("pic_in_post")));
|
||||
props.setMassMailOptOut(YES.equals(getFieldValue("no_mass_mail")));
|
||||
uc.setProperties(props);
|
||||
|
||||
// Save off the user's description and preferences.
|
||||
|
||||
Reference in New Issue
Block a user