file uploader in Moodle 2.9.5

file uploader in Moodle 2.9.5

by Michael Lynn -
Number of replies: 7

Hi,

I have upgraded one of our sites from Moodle 2.5.7 to 2.9.5 and copied back the theme we developed and custom local plugins etc. One problem is that the File Uploader seems to have styles missing, making it look "hollow" on IE9, Firefox and Chrome. Please see the attached screenshot.

 

Testing with the Developer Tools in Chrome I found that if I add the following styles:

yui3-panel-content yui3-widget-stdmod

 to the DIV with the styles:

file-picker fp-generallayout repository_upload

so it reads

file-picker fp-generallayout repository_upload yui3-panel-content yui3-widget-stdmod

 

The uploader looks 'better' but not as it did in 2.5.7. The top bar with the close button is twice the height.

Is there some setting or theme change I have to make for the File Uploader to look as normal?

Regards,

Michael.

Attachment file_uploader.jpg
Average of ratings: -
In reply to Michael Lynn

Re: file uploader in Moodle 2.9.5

by Mary Evans -

Hi Michael,

It maybe that your theme is old and needs updating? So can you first please tell me what the parent theme of your theme is, as this will be a clue to what may be wrong with the theme?

In the mean time you could tried to Purge all cache and see if that helps?

You might also like to enable Debugging and set it to DEVELOPER mode.

Thanks

Mary

In reply to Mary Evans

Re: file uploader in Moodle 2.9.5

by Michael Lynn -

Hi Mary,

I have purged the cache but it didn't fix the problem.

I have also set the Debugging to DEVELOPER mode but I can't see any obvious problems.

The parent theme in config.php is $THEME->parents = array('mmw');
I don't know if this is a standard Moodle theme or if it was customised for this site.

bootstrapbase is also present and correct in the theme directory.

Regards,

Michael.

In reply to Michael Lynn

Re: file uploader in Moodle 2.9.5

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

It almost looks as if you have a transparent background - can you isolate it with developer tools in chrome or firefox?

In reply to Michael Lynn

Re: file uploader in Moodle 2.9.5

by Mary Evans -

Hi Michael,

Thanks for the info...ummm that is interesting...is the 'mmw' theme on your server? Normally that configuration should have read either:

$THEME->parents = array('mmw', 'base');

or

$THEME->parents = array('mmw', 'bootstrapbase');

Without being able to replicate, it's not easy to get a correct fix for this, however as Emma pointed out the problem is obviously missing the background to the YUI widget.

It might be helpful if you could enable the setting to 'Allow theme change in URL' which is found on the the Themes settings page...@

Administration > Site Administration > Appearance > Themes > Themes settings

Once set you can change to another theme by adding ?theme=clean at the end of your Moodle site url. For example: http://moodle.com/?theme=clean to allow you to see how this works using IE9 & Chrome within the Clean theme.

If it works OK then this is purely a theme issue and most likely an old theme that needs some TLC.

Cheers

Mary

In reply to Michael Lynn

Re: file uploader in Moodle 2.9.5

by Michael Lynn -

Thanks for those suggestions. I tried $THEME->parents = array('mmw','base'); and $THEME->parents = array('mmw','bootstrapbase'); and although the background is no longer transparent, the position of the upload controls is at the bottom of the screen and the upload button is not accessible. It looks better with bootstrapbase. You're right that the theme needs TLC and I will work on that.

The file uploader works correctly with the clean theme.

In reply to Michael Lynn

Re: file uploader in Moodle 2.9.5

by Mary Evans -

Hi,

Would it be possible to send me a copy of this theme. At least then I may be able to figure out what parent theme is needs.

It's not as simple as you think. It may be that the parent theme 'mmw' is a stand alone theme?

Mary

PS: I have just sent you a Message via Moodle messenger.