PluginEnabled( "SavedSearchMailings"); $SSFactory = new SavedSearchFactory(); $Searches = $SSFactory->GetSearchesForUser($User->Id()); # if no saved searches found if (count($Searches) < 1) { $Who = AmEditingMySelf() ? "You don't": "This user doesn't"; # add message indicating no saved searches ?>
have any saved searches.
$Search) { $SafeSearchId = defaulthtmlentities($SearchId); $SafeEncodedSearchId = defaulthtmlentities(urlencode($SearchId)); $SafeSearchName = defaulthtmlentities($Search->SearchName()); $SearchParams = $Search->SearchParameters(); ?>
View Edit
Id(), SavedSearchMailings::GetFrequencyOptions($User), $Search->Frequency()))->PrintHtml(); } ?>
GetResource(); foreach ($Fields as $Field) { # skip fields the user isn't allowed to edit if (!$Resource->UserCanEditField($GLOBALS["G_User"], $Field)) { continue; } $SafeDisplayName = defaulthtmlentities($Field->GetDisplayName()); $IsTallRow = $Field->Type() === MetadataSchema::MDFTYPE_FILE || $Field->Type() === MetadataSchema::MDFTYPE_IMAGE; ?>
> :
SignalEvent( "EVENT_APPEND_HTML_TO_FORM", array("PageName" => "EditUser", "FormName"=>"UserInformation", "Labels" => array(), "InputElements" => array(), "Notes" => array())); } # ----- MAIN ----------------------------------------------------------------- ?>

# Edit User Information

IsHookedEvent("EVENT_USER_PASSWORD_CHANGED"); $SafeLastLogin = defaulthtmlentities(GetPrettyTimestamp( $H_UserToEdit->Get("LastLoginDate"), TRUE, "(never logged in)", FALSE)); $CustomFields = CWUser::GetCustomUserFields(); $HasCustomFields = count($CustomFields) > 0; $AdditionalHtml = GetAdditionalFormHtml(); ?>

Login Information
User Name | Get("UserName") ?>
Password | (edit your own password on the user preferences page)
> | Change Password | (must be at least 6 characters long) The `EVENT_USER_PASSWORD_CHANGED` event won't be called because the old password isn't specified here, which means that changing the password from this page could cause inconsistencies, especially for user syncing plugins. There is a least one plugin that hooks into that event, so have the user change his or her password on the user preferences page, if at all possible.
Last Logged In |
Access Information
IsActivated()) { ?>
Disable User | /> | (you cannot disable your own account)
Activate Account |
Access Privileges | Get("UserId") == $GLOBALS["G_User"]->Get("UserId") && $GLOBALS["G_User"]->HasPriv(PRIV_SYSADMIN)) { ?> Note: You cannot disable the system or user account administration privileges from your own account.
Account Information
Real Name | " size="25" maxlength="40" />
E-mail | " size="40" maxlength="80" />
Web Site | " size="40" maxlength="120" />
Address | " size="40" maxlength="80" />
Address Cont'd | " size="40" maxlength="80" />
City | " size="20" maxlength="40" />
State | " size="2" maxlength="2" />
Zip Code | " size="10" maxlength="10" />
Country | " size="25" maxlength="40" />
Additional Settings
Saved Searches

" . $H_UserName . "." : $Message .= "."; ?>

Please return to the user editing page and re-enter the user name.