44 Commits

Author SHA1 Message Date
Paul Holden
0ac237d542
MDL-74500 user: method to determine whether to show profile fields.
The new API replaces identical behaviour in existing calling code, but
allows for profile field types to override/separate the logic used to
show the field and determine whether it's empty
2024-01-30 11:33:52 +00:00
Juan Leyva
c0560689fc MDL-77468 user: Fix invalid check for group belonging 2023-04-11 09:29:58 -03:00
Paul Holden
f8790390d0 MDL-72458 user: add timezone to user profile page. 2022-05-10 13:17:06 +01:00
Bas Brands
f9e1c2587a MDL-28452 core_user: migrate social profile fields
Create a new profile field type, move all existing content of the fields
'icq', 'skype', 'aim', 'yahoo', 'msn' and 'url' in the mdl_user table to
theses new profile fields if needed.

AMOS BEGIN
MOV [aimid,core],[aimid,courseimage,profilefield_social]
MOV [yahooid,core],[yahooid,profilefield_social]
MOV [skypeid,core],[skypeid,profilefield_social]
MOV [icqnumber,core],[icqnumber,profilefield_social]
MOV [msnid,core],[msnid,profilefield_social]
MOV [webpage,core],[webpage,profilefield_social]
AMOS END
2021-04-21 11:22:25 +02:00
sam marshall
5e72715e4f MDL-71099 Lib: Move new user_fields class from core to core_user
This class would belong more appropriately within the 'user' API
(core_user) instead of within the 'core' API, since it is
directly related to user data.

Since the class has only just been added to Moodle, now is a good
time to move it.
2021-03-25 13:47:23 +00:00
sam marshall
3f003455f3 MDL-45242 Lib: Replace direct references to ->showuseridentity 2021-03-08 09:20:18 +00:00
Paul Holden
a7e0ba1e71 MDL-65552 user: escape idnumber field on output.
This commit also corrects parameter definition of the field to
match core_user.
2021-03-03 23:15:07 +08:00
hiendinh
c3b7e5fe16 MDL-70439 Profile: Indicate user email address settings on own profile 2021-01-27 13:37:18 +07:00
Ilya Tregubov
0511eb9d6c MDL-70310 user: Remove yahoo icon since domain no longer exists. 2021-01-07 09:14:44 +02:00
Simon Mok
10768bbd9e MDL-67460 profile: User profile link to use HTTPS 2020-11-24 20:37:26 +08:00
Paul Holden
2175216110 MDL-66648 user: consistent checks for linking to full profile.
The access checks for displaying a link to a users' full profile
now match the checks performed on the full profile page itself.
2020-09-14 20:22:07 +01:00
Mathew May
16d77f1884 MDL-67883 core: Make core ready for MoodleNet. 2020-06-05 11:47:42 +08:00
Daniel Poggenpohl
a009aad404 MDL-67016 profile: current user should see his own courses 2019-10-31 14:35:56 +01:00
David Balch
565f3f25f0 MDL-60548 profile: Show profile email when 'maildisplay' allows it.
Adds 'email' to hiddenuserfields, which allows:
 * user to view email on their own profile,
 * users with cap site:viewuseridentity to view email on any profile (admins/teachers)
 * admin to veto display of email to users without site:viewuseridentity (except viewing their own)
 * unprivileged users to view if the profile's maildisplay permits it.

Changes in user/lib.php include removal of is_siteadmin() test, which
is redundant due to checks via has_capability().

Fixes regression from 2.9 (MDL-45774).
2018-01-15 12:21:09 +00:00
David Mudrák
04985346a2 MDL-57564 enrol: Make use of the new default sort parameter
Now when enrol_get_my_courses(), enrol_get_users_courses() and
enrol_get_all_users_courses() methods automatically reflect the
navsortmycoursessort setting by default, we do not need to manually
compose the sorting any more.
2017-12-06 23:15:17 +01:00
Marina Glancy
b47fda7191 MDL-60029 core_user: new api functions rearranged 2017-10-10 10:34:55 +08:00
Mike Churchward
860f59b13c MDL-60029 core_user: Added new api function to reduce db calls. 2017-10-09 14:10:38 +08:00
Paul Holden
546bc40c13 MDL-55345 user: correct userid when linking to iplookup from profile 2016-10-05 15:08:38 +01:00
Marina Glancy
c6745991b1 MDL-55844 profile: display formatted course name 2016-09-05 13:05:56 +08:00
Jakub Kania
81475d2602 MDL-54667 core_lib: Fix the param name in edit profile link 2016-05-30 16:34:02 +08:00
Marina Glancy
c4e868d5f0 MDL-50851 user: use new tag API for interests 2016-01-10 15:25:47 +08:00
Ankit Agarwal
d955a20926 MDL-49566 myprofile: Fix bugs in myprofilelib 2015-12-29 11:22:42 +08:00
David Monllao
96a6b6b20b Merge branch 'MDL-51712-master' of git://github.com/xow/moodle 2015-10-19 15:42:55 +08:00
John Okely
8290c31cbe MDL-51712 myprofile: Fix capability checks 2015-10-16 14:38:07 +08:00
Andrew Nicols
5a3fdd3337 MDL-50647 profile: Styling fix 2015-10-16 12:01:31 +08:00
Andrew Nicols
c2c369bf02 Merge branch 'MDL-49984-master' of git://github.com/barbararamiro/moodle 2015-10-16 11:48:04 +08:00
Barbara Ramiro
1da2e3a623 MDL-49984 Profile: Decluttering, grouping and adding white space to easily find info 2015-10-15 12:36:43 +08:00
Andrew Nicols
3648d7963a Merge branch 'MDL-51427-master' of git://github.com/marinaglancy/moodle 2015-10-13 10:13:43 +08:00
Adrian Greeve
0305ee2781 MDL-50917 navigation: Allow users with permission to access preferences. 2015-09-22 10:57:51 +08:00
Marina Glancy
70fb46c87f MDL-51427 user: correctly use strings for phone1 and phone2
Thanks to Olumuyiwa Taiwo for original patch

AMOS BEGIN
  CPY [phone,core],[phone1,core]
AMOS END
2015-09-16 13:37:46 +08:00
Frederic Massart
2b7848050d MDL-50677 user: Prefix custom fields node name in profile tree 2015-08-27 17:28:02 +08:00
Bruce Silver
edd99023a6 MDL-50962 user: Profile fields display properly
The department and idnumber fields were not displaying
properly on the user profile pages.
2015-08-17 10:33:05 +08:00
Dan Poltawski
b4947d16d1 MDL-50653 myprofilelib: fix stray ending dl tag
(That is outputing content, rest of function is not!)
2015-07-07 08:53:38 +01:00
Dan Poltawski
fad8ee28f1 Merge branch 'MDL-50120-master' of git://github.com/FMCorz/moodle 2015-05-07 10:52:25 +01:00
Frederic Massart
69a3587196 MDL-50120 core_user: Profile edit redirects to profile or preferences 2015-05-07 14:31:03 +08:00
Dave Cooper
7193ea2cd2 MDL-49845 profile: changed 'My preferences' display logic 2015-05-04 14:02:17 +08:00
John Okely
4887d15228 MDL-49983 navigation: Remove 'my' from user context navigation 2015-05-04 12:38:50 +08:00
Ankit Agarwal
b647db20e1 MDL-49928 userprofile: Reorder blocks 2015-04-29 10:15:00 +05:30
Dave Cooper
f13a911317 MDL-49849 profile: Split site access information into it's own section 2015-04-22 14:08:18 +08:00
Simey Lameze
6592a11994 MDL-49844 core: add header to web page link 2015-04-15 14:33:07 +08:00
Frederic Massart
08cb34a5a6 MDL-49819 profile: Move email to top and interests to lower location 2015-04-13 15:31:22 +08:00
Adrian Greeve
3a13707a0a MDL-49819 navigation: Admin section in user profile update.
The Admin section will now only show when the admin or someone
    with similar capabilities views the user profile. The edit profile
    link has also been moved.

    Part of MDL-45774.
2015-04-13 14:41:24 +08:00
Adrian Greeve
45367bdf0c MDL-49688 navigation: First review fixes and version bump.
Part of MDL-45774.
2015-04-10 17:18:03 +08:00
Ankit Agarwal
b19cc4ef25 MDL-45898 myprofile: Redesign my profile page
Part of MDL-45774.

Contributions by John Okely, Jetha Chan and Damyon Wiese (squashed branch).

AMOS BEGIN
CPY [coursebadges,core_badges], [badges,core_badges]
AMOS END
2015-04-10 17:17:32 +08:00