Replace names with proper names

Administration tools ::: tool_proper
Maintained by RenaatRenaat Debleu
Rewrite names and fields of users to standardize naming

Replace names with proper names v5.0.4

Moodle 5.0, 5.1
Released: دۈشەنبە, 13 ئۆكتەبىر 2025, 4:02 PM

Moodle proper

The proper tool rewrites user names and user fields so a site can have more or less a policy how to write names. When using self registration, some users are using capitals, some do not know the existence of the shift button. With this plugin, after a new user registration, the enabled fields are automatically changed into lowercase, UPPERCASE, Propercase, or simply ignored.

Warnings

  • The proper admin tool does write immedately in the datatabase. Take a backup before using this plugin.
  • The proper function is not perfect, it has no idea about naming pecularities.
  • This plugin is 100% open source and has NOT been tested in Moodle Workplace, Totara, or any other proprietary software system. As long as the latter do not reward plugin developers, you can use this plugin only in 100% open source environments.

Command line tool

From the command line, it is possible to fix:

  • one user: php admin/tool/proper/cli/replace.php --id=22
  • all users: php admin/tool/proper/cli/replace.php --all

Admin tools

Check the global documentation about admin tools

Installation:

  1. Unpack the zip file into the admin/tool/ directory. A new directory will be created called proper.
  2. Go to Site administration > Notifications to complete the plugin installation.
  3. You will be able to configure the behaviour for each text field.

Requirements

This plugin requires Moodle 5.0+

Theme support

This plugin is developed and tested on Moodle Core's Boost theme and Boost child themes, including Moodle Core's Classic theme.

Plugin repositories

This plugin will be published and regularly updated on Github

Bug and problem reports / Support requests

This plugin is carefully developed and thoroughly tested, but bugs and problems can always appear. Please report bugs and problems on Github We will do our best to solve your problems, but please note that due to limited resources we can't always provide per-case support.

Feature proposals

Please issue feature proposals on Github Please create pull requests on Github We are always interested to read about your feature proposals or even get a pull request from you, but please accept that we can handle your issues only as feature proposals and not as feature requests.

Todo

  • implement exceptions

Status

Build Status Coverage Status Mutation score

Copyright

iplusacademy.org

Version information

Version build number
2025101200
Version release name
v5.0.4
Maturity
Stable version
MD5 Sum
87d4326c4efc0ebe18c2d15b1e64fbb0
Supported software
Moodle 5.0, Moodle 5.1

Version control information

Version control system (VCS)
GIT
VCS repository URL
VCS branch
main
VCS tag
v5.0.4

Default installation instructions for plugins of the type Administration tools

  1. Make sure you have all the required versions.
  2. Download and unpack the module.
  3. Place the folder (eg "mytool") in the "admin/tool" subdirectory.
  4. Visit http://yoursite.com/admin to finish the installation