superawesomeme / moodle-theme_aardvark

Aardvark theme for Moodle
https://moodle.org/plugins/view.php?plugin=theme_aardvark
6 stars 14 forks source link

Chat tool is broken in version 3.6.1 #25

Open pacomendez12 opened 5 years ago

pacomendez12 commented 5 years ago

In version 3.6.1 seems that something changed internally in moodle chat tool. Aardvark theme is not able to show chat window. Even if if choose any user and click to message him, nothing appears on the messages.

image

avbarbosa commented 5 years ago

I found that the main bug was the missing of the call to $OUTPUT->standard_after_main_region_html(). I managed to put before footer as done by the theme_bootstrapbase.

--- layout/footer.php.orig      2019-01-15 11:16:51.043971375 -0200
+++ layout/footer.php   2019-01-15 10:57:14.651915280 -0200
@@ -39,6 +39,7 @@
 $hasyoutube = (!empty($PAGE->theme->settings->youtube));
 $haswikipedia = (!empty($PAGE->theme->settings->wikipedia));
 ?>
+<?php echo $OUTPUT->standard_after_main_region_html() ?>
 <footer id="page-footer">
        <div class="row-fluid">
        <!-- Widget 1 -->

I am using release 3.2 but I think the information will be useful for you because it was not easy to understand what was happening.