Home « Server software «
Documentation: users/edit.php
users/edit.php - Create a new user or edit an existing one
This page can be used by anonymous surfers that would like to register, by logged users that are updating their profile, or by associates that declare new users or new associates.On registration YACS attempts to stop robots by generating a random string and by asking user to type it.
A button-based editor is used for the description field. It's aiming to introduce most common codes supported by YACS.
This script attempts to validate the new or updated user description against a standard PHP XML parser. The objective is to spot malformed or unordered HTML and XHTML tags. No more, no less.
By default the provision of an e-mail address is optional, but this can be changed for communities relying on e-mail messages, such as education teams, etc. On new application, and when the parameter
user_with_email_validation is set to 'Y',
YACS ensures that an e-mail address is provided and saves a Subscriber profile.
Also, a confirmation message is sent to the e-mail address, that contains a validation feed-back web link.
When a subscriber clicks on this link, and if the parameter users_with_approved_members
is not set to 'Y', his profile is turned to a true Member.An overlay can be used to capture additional user data. This is defined in the configuration panel for users, and the same overlay class applies for all community users.
Restrictions apply on this page:
- associates are allowed to move forward
- surfer modifies his/her own profile
- this is a new post and registration is allowed
- permission denied is the default
Self-registration can be disabled by associates from the configuration panel for users, by setting the global parameter '
users_without_registration' to 'Y'.If the file
demo.flag exists, the script assumes that this instance
of YACS runs in demonstration mode, and associates profiles cannot be degraded.The edition time is not limited at all. Some Javascript code polls the server in the background to ensure that session data is not lost during all the time the browser window is opened.
Accepted calls:
- edit.php edit a new user profile
- edit.php/<id> modify an existing user profile
- edit.php?id=<id> modify an existing user profile
This script is a reference file of this system.
Voir aussi:
Licence: GNU Lesser General Public License
Auteurs:
- Bernard Paques bernard.paques@bigfoot.com
- Vincent Noël
Testeurs:
- Cloubech
- Dakoon
- Fw_crocodile
- GnapZ
- Manuel López Gallego
- Jérôme Douillé
Reste à faire:
- add a password hint https://www.godaddy.com/gdshop...xplination.asp?
- on subscriptor application, post a query page when there is no messaging facility (gnapz)
- select preferred language for alert messages
- if a profile is modified, send a message to the target user to let him know about it
- derive this to users/subscribe.php
- vcard: general(full name/nick name/birthday/email/homepage/phone#)
- vcard: location(street 1 & 2/city/state/postal code/country)
- vcard: work(company/department/position/role)
- vcard: about()