users not allowed directly to edit profile page

users not allowed directly to edit profile page

Number of replies: 6

I made a link on the frontpage so when user log in it remmber him to edit his profile


using the following link

https://xxxxxxxxx/user/editadvanced.php


but when the user click it gives him erro



but when they go to the person icon , then profile then edit
will be in the following form 

https://xxxxxxxx/user/editadvanced.php?id=2&course=1&returnto=profile


woks fine,

so how allow them click directly on either link

Average of ratings: -
In reply to القناة الرسمية لكلية التجارة ، جامعة دمنهور

Re: users not allowed directly to edit profile page

by David Mudrák -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Plugins guardians Picture of Testers Picture of Translators

You won't be able to have a link to directly edit the profile as each user has their own URL to do that.

What you can do is to use the URL like https://your.moodle.site/user/profile.php which will open the user's own profile with the "Edit profile" link visible there.

HTH

In reply to David Mudrák

Re: users not allowed directly to edit profile page

thanks a lot for your effort, 
is there a direct link for Peronal messages on the moodle site?

In reply to القناة الرسمية لكلية التجارة ، جامعة دمنهور

Re: users not allowed directly to edit profile page

by David Mudrák -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Plugins guardians Picture of Testers Picture of Translators

The plain https://your.moodle.site/message/ should work.

In reply to David Mudrák

Re: users not allowed directly to edit profile page

by ess ma -

Many gratefull for you and your help.


Can i ask two more questions,

I want when any user forget password to send him reset email

BUT WHEN send them private messgaes on the site not send email to them just the private message?


To prevent site from sending email of PM i played with the mail server setting inside moodle but they will prevent from sending password reset email right??

So how to achieve both?

In reply to David Mudrák

Re: users not allowed directly to edit profile page

by Jon Bolton -
Picture of Particularly helpful Moodlers Picture of Testers

/user/edit.php will allow any logged in user to edit their own profile.

/user/editadvanced.php is for an admin user, which is why when a normal user clicks on the link, they get an error.

In reply to Jon Bolton

Re: users not allowed directly to edit profile page

by ess ma -

Thanks but unfortunately it worked but later on other users faced the same issue of not able to update there profile unless they go to profile then edit