Updated AFTERBURNER theme for Moodle 3.0 & 3.1

Re: Updated AFTERBURNER theme for Moodle 3.0 & 3.1

by Malte H -
Number of replies: 7

Hi Mary,

i updatet moodle from Version 2.7 to 3.19. I use your theme afterburner. I updated it to the latest version 2016080900.

In the new moodle versions it is possible to quick access the Dashboard and other things like profile, grades, messanges and  so on.

Quick access the Dashboard is available from the user menu top right of the screen once logged in: 

https://docs.moodle.org/34/en/Dashboard

In your theme afterburner i missed this functionality. Is it possible to upgrade?

Thanks a lot
Malte

In reply to Malte H

Re: Updated AFTERBURNER theme for Moodle 3.0 & 3.1

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Hi it can be done, but I need to check where the Base theme adds it.

I'll take a look and add a link to the Moodle github page when I find it.

All you would need to do is copy the code into the Afterburner's layout/default.php file.

I'll get back to you as soon as possible with the link and further instructions.

Cheers

Mary

In reply to Mary Evans

Re: Updated AFTERBURNER theme for Moodle 3.0 & 3.1

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Here's the link...

https://github.com/moodle/moodle/blob/MOODLE_31_STABLE/theme/base/layout/general.php#L83

all you need now are the instructions.

Hopefully!

BRB

M

In reply to Mary Evans

Re: Updated AFTERBURNER theme for Moodle 3.0 & 3.1

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Here are the instructions!

In the default.php found in the Afterburner theme's layout directory.

Find the line of code highlighted in this link...

https://github.com/lazydaisy/moodle-theme_afterburner/blob/master/layout/default.php#L91-L93

Using Notepad or a Text Editor add the code from the Base theme which I posted in my earlier comment.

}
echo $OUTPUT-> user_menu();
if(!empty($PAGE->layout_options(['langmenu'])) {

Hope this helps?
Mary
In reply to Mary Evans

Re: Updated AFTERBURNER theme for Moodle 3.0 & 3.1

by Malte H -

Hi Mary,

thank you very much for helping me. I have followed your instructions. It worked!! wink

After adding the green colored code first I see the login twice.

So I delete the line highlighted in this link:

https://github.com/lazydaisy/moodle-theme_afterburner/blob/master/layout/default.php#L89

After that it's perfect.

Thanks a lot.

Malte




In reply to Malte H

Re: Updated AFTERBURNER theme for Moodle 3.0 & 3.1

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Cool...glad you got it to work.

Thanks for letting me know!

Cheers

Mary

In reply to Mary Evans

Re: Updated AFTERBURNER theme for Moodle 3.0 & 3.1

by Malte H -
Hi Mary,

after updating Moodle to version 3.1.10 and Afterburner to version 2016080900 the titles of the course sections appear twice.

Please take a look at the screenshot.

Do you have any idea to fix this problem?

I´ll glad to hear from you!
Malte

In reply to Malte H

Re: Updated AFTERBURNER theme for Moodle 3.0 & 3.1

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Hi, sorry for not answering you earlier.

The duplicated topic headings was caused by a badly created change in Moodle and never got fixed for the older themes. 

If I get time I will try and update the Base theme too as that should pass to any child theme

Mary