Connect Theme - Moodle 2 for IE6

Connect Theme - Moodle 2 for IE6

by Alex Mills -
Number of replies: 21

Hey Guys,

The Connect Theme was developed at the Schools of Isolated and Distance Education to bring IE6 support to Moodle 2. Unfortunately, Internet Explorer 6 is still the supported browser of the Western Australian Department of Education, so making Moodle 2 compatible is critical. This is an early version and will almost certainly have bugs and un-themed components.

Today we’re releasing it to the community to use and build upon. It comes in two parts, the core theme and the colour scheme. The core (Connect Core) provides the style and layout changes for getting the base themes working correctly in IE6. The colour scheme theme (Connect Royal) provide the css post processing functionality for Connect Core. The Royal theme contains no stylesheets, (though it can, just set the config accordingly) just a set of PHP variables in the lib.php file that can be changed. The variables are things like text, border and background colours. The gradients used are just images, which can be changed accordingly. This is a somewhat complicated system, but as shown in the link below, we can build a bunch of different colour schemes that use the core functionality. Updates to the core are automatically used by the child themes.

http://cl.ly/4S9V

We’re able to get around 95% of Moodle 2 working correctly and efficiently in IE6 with just style changes - nothing else is required. This theme is based on the first release Moodle 2.0.0. The browsers we tested on include IE6/7/9b, Safari 5, Webkit Nightly and Firefox 3/4. Chrome has a different 2D Graphics Engine to Safari so more testing may be needed with this browser.

Here are some of the basic changes required to get some of the more serious IE6 issues fixed:

Scrollbars in blocks - No matter what styling is applied, due to the number of html components inside some of the more complicated blocks, IE6 struggles and adds horizontal scrollbars. By setting the ‘.block ul’ selector overflow-x to ‘hidden’ fixes this issue.

Footer home button - The Home button located in the footer of most pages would have duplicate characters and layout issues. This is a known bug of IE6 where comments located within ‘floated’ html elements will cause the browser to paint duplicate characters of certain elements.

Tab bar - Even the single line tab bar breaks pretty badly in IE6. To get these working correctly requires a delicate hack using ‘absolute’ css properties, check the stylesheet for more details. This is a component that really needs cleaning up at the renderer level. The use of highly styled horizontal lists within lists is a performance drag even on modern browsers. Separate lists within the tab tree would be much cleaner.

Browsing the style sheets is the best way to see the changes we have made. As you can see, the theme design is very simple and engineered purely for cross-browser compatibility. We will be regularly evolving and updating the code. If you see any issues, post a comment here or I can be contacted at <span>alex.mills@det.wa.edu.au</span>.

Enjoy.

Connect Core - Download
Connect Royal - Download

Attachment Connect_Screen.jpg
Average of ratings:Useful (1)
In reply to Alex Mills

Re: Connect Theme - Moodle 2 for IE6

by Mary Evans -

Thankx Alex for adding these two themes to the Moodle Themes Repository.

I have approved them, but I am concerned that the Mac file types which are in the download will be confusing to users. Is there any way you could strip those Mac OS files from the zip and reload them? That would be a great help.

If you could send me a message when you have done this, that would be helpful too as I can re-approve the themes if they need it.  Sometime when Themes have been edited they need approving.

Thanks

Mary

In reply to Mary Evans

Re: Connect Theme - Moodle 2 for IE6

by Alex Mills -

Thanks Mary.

I forgot about the extras that Mac OS adds to zips so I have compressed them again using the unix system and updated the theme repository. They are now windows friendly smile

Regards,
Alex Mills

In reply to Alex Mills

Re: Connect Theme - Moodle 2 for IE6

by Mary Evans -

Themes are up...all done and dusted!

Thanks again,

Mary

In reply to Alex Mills

Re: Connect Theme - Moodle 2 for IE6

by Niyi Omikunle Ibadan -

Hi. I installed the theme but I kept getting the message that connect core is require. I have the two in my theme folder. I dont know how to move on. What am I missing please?

In reply to Niyi Omikunle Ibadan

Re: Connect Theme - Moodle 2 for IE6

by Alex Mills -

Just to be sure, you have placed the connect_royal and connect_core theme folders in the 'theme' directory? They are to be treated as seperate themes. Do both themes show up when you use the theme selector in Moodle?

In reply to Alex Mills

Re: Connect Theme - Moodle 2 for IE6

by Niyi Omikunle Ibadan -

Yes I did. I saw both in the theme selector with the connect_core having a message that not to be used or something. That is why I am suprised.

in truth, I did not know intitially that I needed connect_core so I installed only the connect_royal. After getting the connect_core needed message, I found our from the theme page so I downloaded and installed connect_core. When I was still getting the message, I deleted both and added them again, but I am still getting the same message.

Thank you

In reply to Niyi Omikunle Ibadan

Re: Connect Theme - Moodle 2 for IE6

by Alex Mills -

Sorry about the late reply.

Even if the the connect_core is installed, the connect_royal theme will still say that the core is required. It's just part of the theme description. As long as you have both installed, they should work.

In reply to Alex Mills

Re: Connect Theme - Moodle 2 for IE6

by Chad Outten -

Thanks for sharing, Alex. We've got some clients (still) using IE6, so your work may come in handy.

Cheers, Chad

In reply to Alex Mills

Re: Connect Theme - Moodle 2 for IE6

by Mike Shurance -

Nice work on these themes!

I'm new to theming in 2.0. Can you please tell me how I could change the royal blue colors to green both in the breadcrumbs area and the block headers?

Your help is appreciated!

In reply to Alex Mills

Re: Connect Theme - Moodle 2 for IE6

by Minh-Tam Nguyen -

we've been playing with this theme and it looks pretty nice.

However, there's a small bug if "Custom Menu Items" are enabled in the theme settings on the Moodle instance:

The Theme will print the header, then a little lost "s", then the custom menu and then the navigation as usual.

The Custom menu also doesn't seem to have any style associated to it, so it looks like it does in the Standard theme.

The little lost "s" is found in Connect Core at the end of line 51 in layout/general_layout.php

<?php if ($hascustommenu) { ?>s

 

(Thanks to Alan Arnold for finding this one.)

In reply to Alex Mills

Re: Connect Theme - Moodle 2 for IE6

by Bob H. -

Hey Alex!

Your awesome connect themes don't seem to be compatible with MOODLE 2.1

How can we fix this?

In reply to Bob H.

Re: Connect Theme - Moodle 2 for IE6

by Mary Evans -

In what way is it not compatible?

In reply to Mary Evans

Re: Connect Theme - Moodle 2 for IE6

by Bob H. -

Mary: It doesn't show in the theme selector (I put both connect_core and connect_royal in the themes directory).

In reply to Bob H.

Re: Connect Theme - Moodle 2 for IE6

by Mary Evans -

Have you tried enabeling DEBUGGING?

Site Administration > Development > Debugging

and see if this throws up and ERRORS.

Mary

In reply to Mary Evans

Re: Connect Theme - Moodle 2 for IE6

by Bob H. -

Mary: I enabled debugging and got nothing.

I forgot to mention I am using Moodle4Mac (Moodle 2.1.1+ and XAMPP 1.7.3 for Mac OS X).

I tried the theme on the 2.0.5+ package and it worked fine. But again, it didn't work for the 2.1.1+ version.

In reply to Bob H.

Re: Connect Theme - Moodle 2 for IE6

by Richard Oelmann -
Picture of Core developers Picture of Plugin developers Picture of Testers

Humberto,

Not sure about Moodle4Mac, but I've just checked the connect_royal theme (which uses connect_core as a parent, so i guess that means i've checked both) and it works fine on my set up.

OS - CentOS with LAMPP environment

Moodle version 2.1.2

Viewed using Firefox on Ubuntu11.04

Could the issue be specific to the Moodle4Mac?

 

Richard

In reply to Alex Mills

CSS

by Steve Kozyk -

Alex,

Thank you for your efforts in putting this great theme together.  It's appreciated.

I'm having a difficult time determining how to modify the CSS for the basic theme layout.  I've added new rules to all CSS files contained in the theme folder, but the changes aren't reflected in our site.  Furthermore I modified the config.php file to load an additional CSS file that I've created and it doesn't load it.

How and where do we make adjustments to the theme css?  For example, I'd like to change the #page ID to have a fixed width.  Where would I make this change?

Thank you in advance for your attention.

Steve

In reply to Steve Kozyk

Re: CSS

by Mary Evans -

Looks like you have not enabled Theme Designer Mode or for a quick fix try purging all Moodle caches. Settings > Site Administration > Development > Purge all caches

Theme Designer Mode is found in Themes settings

Settings > Site Administration > Appearance > Themes > Themes settings

HTH

In reply to Mary Evans

Re: CSS

by Ulises 2010 -

I have both theme instaled, but don't change anything.

I have moodle 2.4.6, I reed this theme it's compatible with Moodle 2.0.x, It's a problem of compatibitity?

In reply to Mary Evans

Re: CSS

by Ulises 2010 -

I have both theme instaled, but don't change anything.

I have moodle 2.4.6, I reed this theme it's compatible with Moodle 2.0.x, It's a problem of compatibitity?