WebLoginPE v. 1.3.0
WebLoginPE is a progressively enhanced (PE), advanced web user management snippet for MODx. WebLoginPE manages user registration, activation, login, logout, password recovery, extended profiling, profile editing, viewing and contacting other users, and user profile removal. WebLoginPE started off as a rewrite of the MODx weblogin snippet so I could make an AJAX login for my site.
WebLoginPE is easy to setup and use, but extremely customizable. You can let WebLoginPE provide the forms and display templates for every view the user might see, or you can use a chunk to customize ANY view. If you are so inclined, you can manage how WebLoginPE will handle selects, radios and checkboxes so that the user's choice is remembered and already selected/checked when they view or edit their profile.
WebLoginPE strives to be standards compliant. The default forms and views are valid XHTML 1.1, however, you can create your own forms and views to use with WebLoginPE in any format you like. WebLoginPE provides the processing and the basic structure. You can use CSS and JavaScript to enhance your forms and views any way you can imagine. Even the sky is no limit for what you can do.
The latest version can always be downloaded from the MODx Repository.
Questions, suggestions, bug reports and feature requests should be posted in the official support thread at the MODx community forums.
Installation/Upgrade
- Upload the "webusers" folder and all it's contents to /assets/snippets/ in your MODx installation.
- Log into the MODx Manager.
- Go to "Resources" > "Manage Resources" > "snippets" and click "New snippet"
- Give this snippet a name of
WebLoginPE
and a description of<strong>1.2.0</strong> A progressively enhanced, complete Web User management snippet.
- Open the file "webusers.snippet.php" and copy it's contents to the "Snippet code" area back in the manager.
- Save the snippet.
New Installation
- Upload "webusers.class.php", "webusers.templates.php", the "js" folder, the "lang" folder and the "Default Forms" folder to "/assets/snippets/webusers" in your MODx installation and OVERWRITE or REPLACE the existing files.
- Paste the NEW contents of webusers.snippets.php into the existing WebLoginPE snippet as described above in "New Installation".
Upgrade from 1.0 - 1.2.0
Change Log
- New Parameter: &disableServices which will accept a comma separated list of services to disable. You can disable individual services like "deleteprofile" and "viewprofile" as well as entire types like "register" and "users".
- New Parameter: &prefixTable If your custom table does not use the MODx table prefix, you can use &prefixTable=`0` (default is 1).
- New Parameter: &usersList lets you specify multiple lists of users and a format for each list on &type=`users` and &type=`manager`.
- New Parameter: &tableCheck When you run WebLoginPE, it checks for the existence of the extra user attributes table and creates it if it does not exist. In 1.3.0 it also creates some new Web Access Service Events for plugins if they do not already exist. By setting &tableCheck to 0 (default is 1) you can skip these checks for a little speed bump.
- New Type: &type=`manager` displays a list of web users with links to edit their profile or delete their profile. Definitely use Access Permissions on this page!
- Added MODx System Events for most services. See the API documentation for full details.
- Print CSS by Dimitri Hilverda (Dimmy) added to documentation
09/13/2007 v. 1.3.0
- WebLoginPE will now function under PHP4. No functions or services were lost.
- Case insensitive login.
- Added &type=`users` to view all web users and individual user profiles.
- Added form input confirmation by with the use of name="inputname.confirm".
- WebLoginPE messages/errors are now templateable and set in a placeholder so you can display them anywhere on your page or in your forms.
- email address are verified against a simple regular expression to see if they match a standard email address format.
- New parameter &inputHandler for super-fine control of your form's <select>, <select multiple>, <input type="radio" /> and <input type="checkbox" /> form elements.
09/02/2007 v. 1.2.0
- Added parameter &pruneDays to specify number of days to wait before deleting non-activated user accounts (users who have registered but never logged in).
- Modified ®Required to eliminate the need for the &captcha parameter.
- &captcha is now depreciated.
- Added extended user profile fields with the parameter &customFields.
- Extended profile table defaults to `web_user_attributes_extended`, but can be overridden with the &customTable parameter.
- Added parameter ®SuccessId to redirect after successful registration.
- Added parameter ®SuccessPause to specify a delay (in seconds) before redirecting. Defaults to 5 seconds to give the user time to read the confirmation message.
- Added parameter ®isterSuccessTpl to display a custom chunk instead of redirecting. (only works if ®SuccessId is not set).
- Added new service "viewprofile" for &type=`profile` to allow users to view the profile of other users.
(?service=viewprofile&username=Scotty%20Delicious) - Added parameter &viewProfileTpl to specify a template for the new "viewprofile" service.
- Added a simple JavaScript file to force IE compliance with HTML element <button>
- I think there is more that I am forgetting.
08/23/2007 v. 1.1.1
- Added parameter ¬ify to specify email addresses to be notified of new user registrations.
- Added parameter ¬ifyTpl to specify notification email message body.
- Added parameter ¬ifySubject to specify notification email subject line.
- Converted all PHP mail() function calls to use the PHPMailer class included with MODx.
- Added "Terms of Service" agreement and checkbox to the default instant registration template.
- Fixed placeholders [+user.dob+] and [+user.lastlogin+]. If they are empty or "0", the placeholder is set to "Unknown".
- Fixed the Instant Login Form so that if there is an error, the fields are filled with the $_POST values so the user doesn't have to fill in all the fields again.
08/20/2007 v. 1.0.2
- Added parameter ®Required to specify required input fields by name attribute.
- Added sanity checks for chunk templates.
- Added file_exists check for language file. Falls back to English (default) if language file is not found.
- Added a cookie for persistent login. can be a checkbox named "rememberme" or a select named "stayloggedin".
08/19/2007 v. 1.0.1
- Initial Public Release.