"My profile" link

"My profile" link

by Gustav W Delius -
Number of replies: 0

We have found it convenient to replace the "Edit profile" link in the People box on the course home pages by a "My profile" link. Most people prefer to have a look at the profile before editing it. The "My profile" link brings them to their profile first and there they can then press the "Edit profile" button if needed. The change is of course minimal and simple, requiring only a change of the line

$editmyprofile = "<a title=\"$fullname\" href=\"../user/edit.php?id=$USER->id&course=$course->id\">".get_string("editmyprofile")."</a>";

to

$editmyprofile = "<a title=\"$fullname\" href=\"../user/view.php?id=$USER->id&course=$course->id\">".get_string("myprofile")."</a>";

in cvs:moodle/course/topics/format.php and cvs:moodle/course/weeks/format.php. Furthermore the line

$string['myprofile'] = 'My profile';

needs to be added to cvs:moodle/lang/en/moodle.php

Average of ratings: -