Commit graph

70 commits

Author SHA1 Message Date
Colin Kuskie
33564cee94 Add POD to the ProfileField, formField method.
Fix all profile field defaults being ignored by the createAccount screen.
2008-06-12 20:59:12 +00:00
JT Smith
8500c4d506 Cleaned the pollution from the forms system. 2008-04-16 16:11:10 +00:00
JT Smith
93b5ca16e4 updating copyright year 2008-02-07 23:28:18 +00:00
JT Smith
fa09c41598 replaced return; with return undef; 2008-01-24 21:58:15 +00:00
Colin Kuskie
96178fd70c first round of Perl::Critic cleanups. Do not use return undef, use a bare return instead 2007-12-05 00:30:43 +00:00
Graham Knop
93b64fc46f profile field and dashbaord fixes 2007-10-25 06:07:26 +00:00
Doug Bell
705631f860 - fix: Recover Password by Profile Field can now work with subclasses of
WebGUI::Auth::WebGUI and with custom WebGUI::Form::Controls as profile 
   fields.
2007-07-31 02:01:15 +00:00
Graham Knop
abf5a15749 user profile edit form fixes 2007-07-20 22:32:46 +00:00
JT Smith
a7dde82421 updated copyright 2007-07-01 16:09:42 +00:00
Graham Knop
feb82c6d4b fix: image profile field edit errors 2007-06-27 13:07:13 +00:00
Colin Kuskie
21c4fcb75f This patch adds user invitations, a way for existing users on a site
to send an email to their friends and invite them to create an account
on the site.  The feature is enabled or disabled in the site Settings.
(Operation/Settings.pm)

It is implemented as a new operation, Invite (Operation/Invite.pm,
Help/Invite.pm, i18n/English/Invite.pm), and the option is displayed
as an option on the user's account screen. (Operation/Shared.pm).
The form is templated, and lives in the Invite namespace.  Once
the invitation is submitted, if the user's email address is not
already in WebGUI, an email is sent and a record is stored in
the userInvitations table.

When the friend gets the invitation, they are taken to the account
creation screen, which conveniently has their email address already
filled in.  This required changes in the Auth modules (Auth.pm, Auth/*.pm),
and ProfileField.pm.  The latter was so that profile fields can have
their values manually set.  The former changes handle inserting the
email address, bypassing the anonymous registration check, and
updating the record in ther userInvitations table.

I refactored some code out of the AdminConsole for finding the url
back to the site and added it to Session/Url.pm.  The method is
called getBackToSiteUrl.
2007-06-10 16:38:43 +00:00
Doug Bell
1bdbb186aa fix: new profile fields now default to a type of "ReadOnly"
fix: Added new templates for calendar events and editing
2007-05-29 07:14:20 +00:00
Doug Bell
07a40788bb add: User profile data table is now a flat table. 2007-05-28 21:35:34 +00:00
Colin Kuskie
b25f80e114 placeholder conversion for the ProfileField module 2007-03-04 05:35:11 +00:00
Colin Kuskie
7b97760236 fix a bug in the setting of private object data 2007-03-04 00:14:12 +00:00
Frank Dillon
6efbad606f fixed getEditableFields so it returns all valid registration fields in addition to editable and required fields 2007-02-23 18:50:30 +00:00
JT Smith
70071838bc Avatar profile field does not update immediatly when you are admin 2007-01-30 18:15:06 +00:00
Frank Dillon
8b4bfa1c90 fixed issue where default value was never being set 2007-01-18 21:49:13 +00:00
Martin Kamerbeek
5c62975421 fixed a small bug in WebGUI::ProfileField 2006-12-08 13:55:49 +00:00
Martin Kamerbeek
3984fc153d small clean up 2006-12-08 10:02:01 +00:00
Drake
e795f06fd8 Rollback r3340 since it broke specialState:init. 2006-12-06 17:49:22 +00:00
Drake
aa3b8b6d24 Profile field defaulting fixes. 2006-12-06 16:45:52 +00:00
Drake
631d8cb0e6 Switch to profile-based password recovery. 2006-12-06 11:57:36 +00:00
Drake
ca9d90c577 Implement RFE "Non Required Fields on User Registration". Associated upgrade.
Minor streamlining of profile field listing methods.

WebGUI::Operation::Profile::getRequiredProfileFields is now deprecated,
because it's specific enough to be not significantly more useful than
WebGUI::ProfileField::getRequiredFields, and because with this change
nothing in core uses it anymore.
2006-11-22 23:50:00 +00:00
Drake
c10b5b4fec Make handling of invalid values for "possible values" for list-based profile
fields slightly more robust.  It's still not ideal---the error goes to the
WebGUI error log, but the user should be given some indication that the
profile field is broken.
2006-11-22 15:52:32 +00:00
Drake
7604308b26 Minor fixes related to earlier Image form control alterations. 2006-11-08 00:27:25 +00:00
Roy Johnson
0ad578ffb9 trying to make image form controls optionally force image file types... not quite working yet 2006-11-07 23:47:37 +00:00
Colin Kuskie
3922cf7238 fix bad POD in new method 2006-08-31 21:09:29 +00:00
Drake
565119fa1a Multiple changes:
- Shift ProfileField API so that new returns undef on invalid fields.
    This makes it possible for Shortcut::www_saveUserPrefs to execute.
    The class methods in ProfileField are now also actually class methods.

    + Also fix up other modules that created dummy ProfileFields so that
      they don't need to do that anymore, because it's now invalid.

  - Merge contradictory-looking code from Shortcut's view and www_view
    into a reasonable compromise in view, and then have www_view call
    $self->view in a manner similar to that of the default Asset::view.

    + The profile field overrides still don't work, because there's no
      obvious mechanism for "transclude asset in context".  This may
      require some fiddling to get right...
2006-08-31 00:14:56 +00:00
Wouter van Oijen
2d9565775f POD fixes and removing debug output 2006-07-11 09:05:22 +00:00
JT Smith
2e1de9d214 - fix: Column Layout seems a little messed up
- Fixed the EMS default templates to expose all functionality.
 - Fixed a problem in the EMS where it wouldn't let you add any events.
 - fix: FieldName incorrect after adding profile field
 - fix: preload.perl for other roots than /data/WebGUI
 - Fixed a bug where polls weren't distributing karma.
2006-05-30 15:50:13 +00:00
Wouter van Oijen
e81ce2759a Fixed POD in 12 files reported by new test for invalid whitespace 2006-05-20 10:39:16 +00:00
Martin Kamerbeek
c98308af17 Fixed some bugs in the profile setting stuff 2006-05-03 15:08:55 +00:00
JT Smith
a7df0f7a55 fixing some bugs relaed to cs mail replies
fixed a bug in the user manager where the user would take on the username/alias of the visitor
fixed a bug in error handling where debug was being spewed for errors in approriately
2006-04-11 22:50:11 +00:00
Matthew Wilson
279233b367 [ 1441488 ] Sort Order of Profile Fields in Form "Create New Account"
fixed a few syntax things in Item.pm
2006-03-10 19:00:05 +00:00
Colin Kuskie
32f5e71fc4 forward port of profile field bugfix 2006-02-08 00:09:03 +00:00
Matthew Wilson
4a3121960f removal of dumpSession. 2006-01-26 05:39:16 +00:00
Matthew Wilson
150087f703 lots of operation and auth fixes. 2006-01-19 03:07:34 +00:00
Matthew Wilson
e33c7bebc3 an absolute slew of changes. 2006-01-18 01:45:55 +00:00
Matthew Wilson
09483e18c5 a ton of $session fixes (thanks to Colin), and a new $session checker, that supposedly, shouldn't be needed now. It can be backed out, however, easily. 2006-01-16 22:45:21 +00:00
JT Smith
a6e5450b64 more bug fixes 2006-01-13 19:32:26 +00:00
JT Smith
02c5a65857 updated profile field and profile category to use the new session api 2006-01-12 18:55:10 +00:00
JT Smith
877bf082a0 migrating paginator api to new session system
fixed a few old style session vars
2006-01-12 17:24:06 +00:00
JT Smith
a194408513 changing copyright year 2006-01-09 23:51:04 +00:00
JT Smith
024514c549 more session related changes 2006-01-09 19:56:26 +00:00
Colin Kuskie
bfe19ab773 forward port of 6.8 bugfix 2006-01-04 19:33:28 +00:00
JT Smith
19dba14c44 fixed typo 2005-12-16 18:48:01 +00:00
JT Smith
a16b470dd4 - Fixed a problem where profile data would be mixed between the current user
and the user your viewing the profile of.
2005-12-16 17:33:48 +00:00
Colin Kuskie
156de5ea88 Make label overrideable in formField so that required fields
can be highlighted with an asterisk in the Profile tab for Operation/User.pm
2005-12-12 18:30:48 +00:00
Matthew Wilson
f5f73c1681 - Converted all the max((assetData.)revisionDate) calls to use mysql5/(4.1)
nested queries.
 - fix [ 1323184 ] CS Submissions Not Sorting on multiple sites
 - fixed some major oversights in the new profile system.
2005-12-12 10:34:39 +00:00