My Moodle: How do I block the editing button on my Moodle page?

My Moodle: How do I block the editing button on my Moodle page?

por Daniela Toda -
Número de respostas: 11
Hi,

I'm new in using Moodle, and newer in using my Moodle, as far as I can see, the proposal of my Moodle is the possibility of the student's personal configuration. That's a great idea, but here in our institution, we'd like to standarlize the my Moodle page, including the principal boxes and some others that we think that's important. But we also want to block the editing option for the students, in the way my Moodle page would be standart to everybody.


I realize that's not the idea of using my Moodle, but we want that anyway.

Thank you!
Em resposta a 'Daniela Toda'

Re: My Moodle: How do I block the editing button on my Moodle page?

por Jon Witts -
You can put sticky blocks on the My Moodle page that students can then not edit, but without some serious changes to core code, I don't think you could stop them editing it altogether...
Em resposta a 'Daniela Toda'

Re: My Moodle: How do I block the editing button on my Moodle page?

por Hubert Chathi -
There is a moodle/my:manageblocks capability. If you remove that capability from the Authenticated Users role, then only authorized users can edit their blocks. (Note that, for some reason, the edit button still appears, even though they cannot modify the blocks.)
Em resposta a 'Hubert Chathi'

Re: My Moodle: How do I block the editing button on my Moodle page?

por Daniela Toda -
Thank you Hubert!
I'm trying to do waht you said, but I really think that I don't get what you said. Could you give me more details?

Thank you
Em resposta a 'Daniela Toda'

Re: My Moodle: How do I block the editing button on my Moodle page?

por Daniel Rivera -
Hi Daniela,

Here's a screencast showing how it's done.

http://screencast.com/t/SlEXlktX1

Hope it helps! Let me know.

Dan


Em resposta a 'Daniel Rivera'

Re: My Moodle: How do I block the editing button on my Moodle page?

por Daniela Toda -
Thank you Daniel, it was very helpful!
Em resposta a 'Daniela Toda'

Re: My Moodle: How do I block the editing button on my Moodle page?

por Divya muvvala -
Hi Daniela, I tried ur way to remove edit button on MyMoodle page. But i can still see the edit button when i login as student. I m wondering if i missed anything.
Em resposta a 'Divya muvvala'

Re: My Moodle: How do I block the editing button on my Moodle page?

por Divya muvvala -
I removed the edit function from my/pagelib.php. So now the edit block on MyMoodle page does not work but the button still appears.
Em resposta a 'Divya muvvala'

Re: My Moodle: How do I block the editing button on my Moodle page?

por Ger Tielemans -
the edit button is created by the function print_header in pagelib.php, so add there your hide button condition?
Em resposta a 'Ger Tielemans'

Re: My Moodle: How do I block the editing button on my Moodle page?

por Phil Coultier -
Hi Ger, it would be great if you could post the line of code for this.

Thanks,

Phil
Em resposta a 'Phil Coultier'

Re: My Moodle: How do I block the editing button on my Moodle page?

por John St -
Find this line in my/pagelib.php

print_header($title, $header,$navigation,'','',true, $button, $loggedinas.$langmenu);

You can edit the above to remove the button. This is what I did to remove the button:

print_header($title, $header,$navigation,'','',true);

I would have preferred hiding the button with css, and not touching core code, but there are no selectors applied to it that make it different from the normal turn editing on button...