Wunderbyte-GmbH / moodle-theme_campus

Moodle theme for onlinecampus
4 stars 4 forks source link

Mail from Announcements Forum do not display header picture from frontpagebackground #16

Closed hermannkm closed 6 years ago

hermannkm commented 6 years ago

I am using a background picture in campus theme. This seems to be included in mails from the standard announcement forums.

bildschirmfoto 2018-05-28 um 16 58 57

As I run my site on https:// the link inserted into the mail, which is http://moodle.klocker-mark.eu/pluginfile.php/1/theme_campus/frontpagebackgrou= ndimage/1501210797/norcia2.png does/can not work. Perhaps this is moodle related and not campus.

dasistwas commented 6 years ago

The image has to be available publicly without any login. So you can use for example links to images on your moodle site, that can be accessed without login or you link images on wikimedia.org, etc.. You can not use images from courses, etc., that require login.

hermannkm commented 6 years ago

OK, sorry, but where is the configuration for these images? This link is an exact copy of the link campus theme generates for my site without login. Is the layout for the emails produced by the theme -- or did I change this manually (really sorry, if I forgot)?

gjb2048 commented 6 years ago

Odd, as the code is:

$hdbackgroundimage = $PAGE->theme->setting_file_url('frontpagebackgroundimage', 'frontpagebackgroundimage');

which uses the core setting_file_url method which should be returning https.

If you've changed to https recently, then do a 'Purge all caches'.

dasistwas commented 6 years ago

maybe switching to https did not work out 100%. I recommend to use https conversion tool: https://moodle.klocker-mark.eu/admin/tool/httpsreplace/index.php

dasistwas commented 6 years ago

And update your image there: https://moodle.klocker-mark.eu/admin/settings.php?section=theme_campus_forum

hermannkm commented 6 years ago

Thank you, the last one worked instantly!