URL

User profile fields ::: profilefield_url
Maintained by Easter Island / Rapa Nui May 2017Russell England
Custom user profile field which stores and displays a url

URL 2025072900

Moodle 4.5, 5.0
Released: Wednesday, 30 July 2025, 7:29 PM

URL user profile field

Custom user profile field which stores and displays a url

There are currently 2 core custom user fields that allow urls.

  • Social custom field - but the label is fixed
  • Text custom field - allows a url but only if a parameter has been specified

The url custom field allows for a custom label and a url without parameters

Instructions for use

  1. Go to Site admin > Users > Accounts > User profile fields (Or direct to /user/profile/index.php)
  2. Select "Create a new profile field" and choose "URL" from the menu
  3. Add the details and optionally choose the "link target" for where to open the link
  4. Save
  5. Edit a user profile
  6. Scroll down to "Other fields"
  7. Enter a url - note this must be a valid url eg: http://www.moodle.org
  8. Save
  9. View the user profile
  10. The url label and link will be displayed in the "User details" block

Installing via uploaded ZIP file

  1. Log in to your Moodle site as an admin and go to Site administration > Plugins > Install plugins.
  2. Upload the ZIP file with the plugin code. You should only be prompted to add extra details if your plugin type is not automatically detected.
  3. Check the plugin validation report and finish the installation.

Installing manually

The plugin can be also installed by putting the contents of this directory to

{your/moodle/dirroot}/user/profile/field/url

Afterwards, log in to your Moodle site as an admin and go to Site administration > Notifications to complete the installation.

Alternatively, you can run

$ php admin/cli/upgrade.php

to complete the installation from the command line.

License

2025 Russell England http://www.russellengland.com

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

Version information

Version build number
2025072900
Maturity
Unknown
MD5 Sum
b1378fdac370300c26bb113e6f47a352
Supported software
Moodle 4.5, Moodle 5.0
  • Latest release for Moodle 4.5
  • Latest release for Moodle 5.0

Version control information

Version control system (VCS)
GIT
VCS repository URL

Default installation instructions for plugins of the type User profile fields

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