Hi,
I am trying to create a custom html link that will take my users directly to their "Edit Profile" page. So far, I have this:
"/moodle/user/edit.php?id='.$user->id.'&course='.$course1->id.'"
Can anyone tell me what is incorrect about this syntax? It bounces back this:
"You are trying to use an invalid course ID"
Obviously, the syntax needed to determine the correct course is wrong. But I do not know what syntax to use to add additional parameters.
"moodle/report/log/user.php?id='.$user->id.'&course='.$course1->id.'"
PS:
I got the idea from this link, which opens my users' main profile page. I created a custom nav link at the top pf my LMS:
"http://digitalliteracyproject.com/lms/user/view.php?id='.$user->id.'"
This link was originally posted by Grant Swaim in 2008 after claiming he had tweaked the following PHP script(by John Isner) to work as an html link:
global $CFG,$USER;
$url = $CFG->wwwroot . '/user/edit.php?id=' . $USER->id . '&course=1';
What is the language Grant used to create his link to a user's profile page?
And second, what is the syntax needed to create a link to go to their Edit Profile" page?