Posts made by David Scotson

Moodle in English -> Themes -> Bootstrap for Moodle project

by David Scotson -
Hi, I'd like to announce my Bootstrap for Moodle 2.3 project, and ask for some help getting it finished.

Bootstrap is a project from Twitter that provides "Simple and flexible HTML, CSS, and Javascript for popular user interface components and interactions." -- http://twitter.github.com/bootstrap/

I've started adapting their CSS to Moodle and created half a theme from it, which I've attached to this post

The idea is that if your current theme inherits from the base theme then you can try to inherit from this instead and the boring bits that no-one generally bothers to theme will get an upgrade, while still retaining the general look of your theme. It's easier to show than to desrcibe so I'll add a few screenshots in another post.

It's mostly ready for use but I'd love if other themers gave this a try and gave me some feedback on anything I've missed. Moodle's a pretty big bit of software and it's hard to check every page in every browser all by yourself.
Average of ratings: Useful (7)

Moodle in English -> Themes -> New base theme for Moodle 2.3?

by David Scotson -

I'm currently working on a theme for my institution's upcoming rollout of Moodle 2.3. In the draft release notes it mentions that this version of Moodle will be dropping support for IE6 and 7 and I wondered if anyone had taken the opportunity to drop all the HTML/CSS/Javascript hacks and workarounds required to theme those browsers and start afresh with the new baseline of currently supported browsers.

I'm having to do some of this anyway, and I've already tried to seperate out as much generic Moodle theme stuff as I can into a base theme which my institution's theme then inherits from but I'd be happier if I was contributing to a wider effort rather than going it alone. Has anyone else looked at this yet or have any plans to do so?

Average of ratings: -
There's a couple of things we're looking at where we'd want to make an entire Moodle read-only, namely

1. An archive moodle server that holds an entire previous year, frozen in time, so people can refer back to notes and discussions without changing or adding to them.

2. A personal Moodle archive that lets you download your courses and take them with you to refer to on a desktop.

Martin mentions an easy way to achieve the read-only effect with roles here:
http://moodle.org/mod/forum/discuss.php?d=88427

I'm just wondering if there are any easy hacks or tweaks anyone can think of that would make a Moodle run faster / with less resources if you knew for a fact that the content wasn't going to change.

I can think of a few things to try but it would be good to here from anyone who's actually done it.
Average of ratings: -
Hi,

`.book_content pre.file` means "any pre section with the class '`file`', somewhere inside any item (e.g. div, p etc.)with a `.book_content` class.


`.book_content pre .file` (with the space) means "any item (e.g. pre, p, span etc.) with the class '`file`', somewhere inside a pre tag which is in turn inside any item with a `.book_content` class.

They won't interfere with each other since you'd need to have a `pre class="file"` inside another pre class="file"` in order for both to apply to the same section.

For your second question, in _theory_ `pre` is used for any preformatted text where you want to put in linebreaks like poetry for instance. On the other hand `code` is for designating computer code, things to type into command line prompts etc.

So if you want multiple lines of computer code, you really should use both.

But from you example it seems like you might want to refer to a variable or command inside a normal paragraph of text like when I refered to CSS class names above. If you put those in pre tags they'll be in a paragraph of their own. In code tags they'll just sit in the flow of the sentence.

edit: annoyingly there appears to be a filter running on these forums that grabs any such code tags and reformats them in pre tags as if they were PHP so I can't really demonstrate it live.