Posts made by Patrick Malley

Thank you for your help, David.

  1. My only issue with editing any code other than my theme is that updates will delete my changes.  Too much of this and I create a headache for myself later.  I will try lightening img files as much as possible per your suggestion.
  2. I will spend some creative time thinking about my header problems . . . thanks for your suggestions.
  3. But, I like images!  Here's a real general question if you wouldn't mind:  If I use the background images for forum posts as you did in your first kubrick theme, will each of the images need to be loaded onto a page seperately?  In other words, if a thread reaches 30 posts, do each of the images that make up the forum post need to be loaded 30 times?  And, would this unnecessarily bloat the page?  (I think I know the answer - yes- could you confirm?)
  4. I was running on Beta 1 of 1.6.  I thought I was more up-to-date than that.  I uploaded Beta 5 last night.  I will have to see if this fixes the problem later tonight. 

Thanks for all your help.

Moodle in English -> Themes -> Various CSS Questions

by Patrick Malley -
I have been working on my first attempt at a Moodle theme for about a month now and have a couple questions about CSS in general.
  1. If I disable img files from being displayed by using "display:none" will those images still need to be loaded? Will disabling these images lighten a page?
  2. My header is currently about 15k - which is bigger than I would like. Does anyone know of any extreme compression methods that does not compromise quality? - I want to keep it as one file if possible.
  3. Should I be concerned that my "Web Page Speed Report" comes back saying that my site is bloated due to excessive code and images. My site CSS is no bigger than the Moodle.org site.
  4. What can I do to prevent the following (it appears that these topics are outside the #page id? Has anyone else encountered such a problem with a fixed-width theme?):report
That should be all for now. Thanks!
Average of ratings: -
I have one more question that I'll simply post here to make this easier:

Here is what happens when I 'hide' a section in the Topic Course format:
  • resize.content disappears! I tried to get fancy with CSS and I put in something to the effect of #course-view .topics .hidden .content {visibility:visible}, which works in FF but not in MSIE.
I'll play around a bit more but thought I would check with all of you to see if this is common. My guess is that my CSS configuration is causing the bug. If you have heard of this, please help! shy
First make sure that you have turned on your topic section within your site settings.  Then, from your front page:
  1. Turn editing on
  2. click the edit img to edit your topic section summary.
  3. paste the code from the MoodleDocs Page into the WYSIWYG editor on the summary edit page.
  4. Complete the code with your desired parameters/content.
Within your chosen theme's file in your Moodle directory you will find three CSS files.  Open one of those files and paste the CSS code at the end and save.  If this is the only CSS you plan to edit, it shouldn't matter where you put it.

This should give you the look that you desire.