Possibility of docking blocks by default

Possibility of docking blocks by default

av Philippe Decloitre -
Antal svar: 6

Hi everyone,

I would like users to come to the course with all the blocks docked (by default).

Is this possible?


Many thanks

Philippe

Medeltalet av utvärderingarna: -
Som svar till Philippe Decloitre

Re: Possibility of docking blocks by default

av Philippe Decloitre -

I wonder if there is no answser to my question, or if there is anyone out there blinkning


Medeltalet av utvärderingarna: -
Som svar till Philippe Decloitre

Re: Possibility of docking blocks by default

av Developer@ Monarch Media, Inc. -

Hi,

To achieve the specified request, in moodle page -- blocks/moodleblock.class.php --, change 0 to 1 in the function html_attributes().

Before Change: if ($this->instance_can_be_docked() && get_user_preferences('docked_block_instance_'.$this->instance->id, 0))


After Change: if ($this->instance_can_be_docked() && get_user_preferences('docked_block_instance_'.$this->instance->id, 1))

Medeltalet av utvärderingarna:Useful (1)
Som svar till Developer@ Monarch Media, Inc.

Re: Possibility of docking blocks by default

av Philippe Decloitre -

Hi,

Many thanks for  your answer!

I will check it out right away and come back with feedback.

Cheers

Medeltalet av utvärderingarna: -
Som svar till Developer@ Monarch Media, Inc.

Re: Possibility of docking blocks by default

av Philippe Decloitre -

Hi there!

I changed O to 1 in the php file and purged all caches.

Anything else to be done? So fare no changes ledsen

Thanks blinkning


Medeltalet av utvärderingarna: -
Som svar till Philippe Decloitre

Re: Possibility of docking blocks by default

av Developer@ Monarch Media, Inc. -
Hi,

It is sufficient. Please review the site by login using new user/student account and let me know your findings.
Medeltalet av utvärderingarna:Useful (1)
Som svar till Developer@ Monarch Media, Inc.

Re: Possibility of docking blocks by default

av Philippe Decloitre -

Brilliant!

It does work!  Albeit only for those enrolled henceforth.

I'm voting you up all the same!!

Cheers leende

Medeltalet av utvärderingarna: -