OK - I have finally found a way to correct this. I wanted teachers (non editing) to be able to change their profile from the admin block in the same way that editing teachers and students could do - without having to click on the link at the bottom of the page.
I edited moodle/blocks/admin/block_admin.php
I went to the line that reads:
if (isteacher($this->instance->pageid)) {
If you scroll down a few lines, underneath the line:
if ($isteacheredit) {
you will see the following lines:
$fullname = fullname($USER, true);
$editmyprofile = '<a title="'.$fullname.'" href="'.$CFG->
wwwroot.'/user/edit.php?id='.$USER->id.'&course='.$this->instance->pageid.'">'.get_string('editmyprofile').'</a>';
if (empty($USER->description)) {
$this->content->items[]= $editmyprofile." <blink>*</blink>";
} else {
$this->content->items[]= $editmyprofile;
}
$this->content->icons[]='<img src="'.$CFG->pixpath.'/i/user.gif" height="16" width="16" alt="" />';
I simply moved all of these lines so they can underneath:
if (isteacher($this->instance->pageid)) {
and came before:
if ($isteacheredit) {
This worked a treat. Have tested it and it seems ot be working everywhere just fine.
Relief!
Nikki