What’s new in Moodle 2.6

Moodle 2.6 was released this month and you can download the stable version via the Moodle’s official website.

While updating all of our premium themes to work with this version we noticed some nice UI/UX improvements made by the Moodle development team and thought we’d take some screenshots to share with you. (The theme used in the screenshots is “Ergo”)

1) Configuration dropdown menu

Configuration related actions are grouped into relevant dropdown menus. The interface looks cleaner and decluttered. See the comparison figure below.

moodle-2.6-new-config-menu

2) Brand new look for the TinyMCE text editor

See the comparison figure below.

moodle-compare-text-editors

3) New category and course management interface

Fewer clicks are required from the admins to add/edit/move categories and courses.

moodle-2.6-cat-course-management

4) New course format

The old “SCORM format” has been replaced by a more versatile “Single Activity format” which allows all available activities to be used as the course format.

moodle-2.6-course-format-new

There are other new features in this release and if you are interested you can watch the short overview video from Moodle below:

How to customise CSS in our premium Moodle themes

We’ve got more and more customers who have bought our premium Moodle themes deciding to apply small changes/tweaks to the theme CSS file to meet their own design needs (eg. change button colours, background images/colours etc). If you are in this situation please read on. In this tutorial I will explain how to customise CSS so you won’t lose your changes when there is an update available for the theme. (Yes, we update all our premium themes regularly to fix reported bugs and add improvements – all customers get free updates.) The key to retaining your theme CSS changes is simple: ALWAYS override the existing theme CSS rules and NEVER edit the original theme CSS in place. There are two ways of doing this.  

Method One (Basic)

What you need to do initially: Open the theme css file (general.css) and go to the bottom of the file and write your CSS changes there. This will duplicate some CSS rules, but the ones lower down override the existing ones above. What you need to do when you receive a theme update from us: 1) Copy the CSS code you wrote from your current CSS file and paste the code into the bottom of the new CSS file (below all existing code) and save. 2) Replace the old CSS file with the new one which now has your code at the bottom. This method is easy to follow but it does require you to copy and paste your own code whenever there is a theme update.  

Method Two (Advanced)

What you need to do initially: 1) Create a CSS file under the theme style folder and give it a name. I’m going to use custom.css as the file name for demonstration purpose.

create-css-file

2) Open the config.php file under the theme folder. Go to line 9 and add the new CSS file name “custom”(without the “.css” file extension) AFTER the main CSS file “general” as shown in the figure below. Save the config.php file. The theme is now reading CSS rules from this file.

add-css-in-config

3) Write your CSS code changes in the new CSS file (custom.css) and save. What you need to do when you receive a theme update from us: Replace your old CSS file (general.css) with the new one we provide. This method requires more work initially but will save you from doing any manual copying and pasting work in the future.  

Conclusion

It’s completely up to you which method you pick as they all serve the same purpose – prevent you from losing your CSS customisations when there is a theme update available.
Tip: When you are doing your theme customisation you may need to clear your theme cache regularly to see the changes you’ve made.

100% Money-Back Guarantee

We confidently offer a 100% money-back guarantee with all of our Moodle/Mahara themes. If you decide you don’t want to use it and email us why within 14 days of buying, we promise you a full refund.

How to clear Moodle theme caches

“Why are changes not applied when I update my Moodle theme files, even when I clear my browser cache?” I was puzzled by this question when I started out designing themes for Moodle many years ago. If this is also an issue for you, read on. The answer is actually really simple – Moodle caches files at server level. Clearing the browser cache is not going to get you anywhere, You need to clear the Moodle theme caches

“So how do I clear Moodle theme caches?” you may ask. There are three options and I will go through them with you.

Note: The theme used in the screenshots is our premium Moodle theme Brizzle.

Option 1 – Quick way to clear Moodle theme caches This option is recommended if the changes only need to be applied once. For example, there is a new release of your Moodle theme and you need to update your current theme.

Log in as an administrator and go to: Settings > Site administration > Themes > Theme selector. Click the “Clear theme caches” button as shown in the figure below.

Option 2 – Quick way to clear site-wide Moodle caches Similar to option 1. The only difference is that option 1 only clears Moodle theme caches, and option 2 clears all Moodle caches.

Log in as an administrator and go to: Settings > Site administration > Development > Purge all caches Click the “Purge all caches” button as shown in the figure below

Option 3 – Suitable for Moodle theme designers while developing themes on a development site When this option is enabled, Moodle will clear the theme cache automatically every time you refresh your browser. However, it’s not recommended on a production site as leaving this option on will affect your site’s performance and significantly slow your site down.

Log in as an administrator and go to: Settings > Site administration > Themes > Theme settings Tick the “Theme designer mode” checkbox and click the “save changes” button at the bottom of the page.

How to add a Facebook Comments Box to your Moodle site

Adding a Facebook Comments Box enables users to easily make comments, which is a nice way to enhance the social media aspects of your site. In this tutorial, I’m going to show you how to add the Comments Box to your Moodle site’s side column, which, in my opinion, is the best place to hold it.

To see an example, you can visit the live demo for our premium Moodle themes here.

Below is a preview of the end result on our theme demo site (themes used from left to right: Ace, Brizzle and Cantata).

screenshot

Before we do anything in Moodle, we need to get the Comments Box from Facebook first.

Get Facebook Comments Box

1) Go to the Facebook developers plugin page:
https://developers.facebook.com/docs/reference/plugins/comments/

2) Configure the Comments Box settings depending on your specific needs.

screenshot

3) Once you are happy with the settings, you can click the “Get Code” button to generate the code. Keep the page open because you’ll need it later on.

screenshot

Ok, now it’s time to do something in Moodle – log into Moodle as an administrator. (Here I’m using our premium theme Cantata as an example in the tutorial).

Step 1

Turn editing on and add a HTML block to your Moodle site by selecting the “HTML” option from the “Add a block” drop down menu as shown in the figure below.

screenshot

Step 2

Now you should see that a new HTML block has been added. Click the configuration icon, which is the second icon, as shown in the figure below (your Moodle site’s configuration icon will look different).

screenshot

Step 3

On the “Configuring a (new HTML block) block” page, turn on the HTML Source Editor for the “Content” text field by clicking the HTML icon in the editor menu as shown below.

screenshot

Step 4

Copy and paste the code from the previous Facebook page into the HTML Source Editor.

screenshot

Step 5

Since Moodle’s source editor will try to automatically strip out the required empty markup we are adding, we need to apply a little trick here. Otherwise, the Comments Box will not show up on your Moodle site but luckily the trick is very simple. All you need to do is to add an HTML space “ ” (without the quotation marks) inside of the empty div to trick Moodle to keep the empty div – see the figure below.

screenshot

Step 6

Enter a block title and configure the other options before saving, and you are done.

screenshot

Moodle Themes – “Ace” and “Brizzle”

We have launched our first two premium Moodle Themes “Ace” and “Brizzle” and they have proved to be very popular. I thought I’d write a quick guide to illustrate options available in their theme settings page for our old and future customers alike.

The two themes all have their own Theme Settings page (located under: Settings > Site administration > Appearances > Themes) where you can make the following theme-related customisatons.

1)Customisable logo

Upload your logo to your web server and then enter the logo URL into the logo form field as shown in the figure below.

2)Header widget area

There is a block space in the page header for customised HTML content – see the figure below.

This widget area is best for social media elements such as Twitter and Facebook. You can follow another tutorial here to learn how to do so.

3) Footer widget area

There is  a block space in the page footer for customised HTML content – see the figures below.

This widget area is ideal for putting in your site copyright note – you can customise the HTML code below to have a similar copyright notices to the ones shown in the figures below. Remember you need to use the HTML source editor for entering any HTML code.

<p style="text-align: center;">&copy; Company Name.</a></p>

If you are interested in our premium Moodle Themes and would like to find out more, you can visit the themes page for more information and live demos.

We are planning to make more premium Moodle Themes in the near future, so watch this space or follow us on Twitter to get notified of any theme related news or updates. All our premium Moodle themes (current and in the future) will include the following as standard:

  • Customisable logo
  • Header widget area – ideal for social media (tutorial)
  • Footer widget area – ideal for copyright notice
  • Moodle custom menu (tutorial)
  • Compatible with all modern web browsers.
  • Free future updates for the theme’s major Moodle release (we’ll always provide 2.x updates for Moodle v2 themes)

6 User Experience related new features in Moodle v2.3 – A quick visual guide

Moodle v2.3 was released on 25th June 2012. Below is a quick visual guide I put together to illustrate the 6 new features in this release which, in my opinion, greatly improve Moodle’s user experience.

The screenshots used in this visual guide were taken from our premiere Moodle theme Ace, which is fully compatible with the Moodle 2.3 release.

1) Drag and drop files


Please Note:

This feature only works in browsers which support the HTML5 “Drag and Drop” and “File” APIs (this means it will not work in Internet Explorer versions 9 and below).

From your computer directly into Moodle’s course.

screenshot

From your computer directly into Moodle’s file picker

screenshot

2) Drag and drop to re-arrange Moodle course sections or Moodle side blocks

Rearrange course sections.

screenshot

Rearrange side blocks.

screenshot

3) Quick and easy re-naming

You can edit the course activity/resource names without leaving the course page.

screenshot

4) New way to add an activity/resource

A nice popup window is used to present all the available Moodle activities/resources in a much more user friendly way.

screenshot

5) New course layout – defeat Moodle’s “scroll of death”

Now in the course settings, you can tell Moodle to “show one section per page” to avoid the “scroll of death” issue.

screenshot

6) New file picker


The new file picker can display not only the file names but also the relevant file thumbnails as well. This new feature provides users with better visual clues when they need to identify certain uploaded files.

screenshot

How to generate and issue a course certificate to learners using the Moodle certificate module

Not long ago I was asked if it is possible for Moodle to generate and email a certificate to learners who have passed a particular exam (Moodle Quiz). After looking into the matter, I’ve found a way to do just that by using a great Moodle module called “Certificate

Scenario:

You’ve set up a Moodle training course where you have added an exam using a Moodle quiz. The pass mark for the quiz is 60%. A course certificate will be generated and emailed to learners who get a score equal to or greater than 60%.

Solution:

Step 1

Download and install the Certificate module to your Moodle site.

Step 2

Go to the desired course as a course teacher/manager, and click “Editing settings” under “Course administration” as shown in the figure below.

screenshot

Step 3

On the “Editing course settings” page, enable completion tracking. Save the changes.

screenshot

Step 4

Turn editing on and update the existing exam (Moodle quiz). Make sure the “Activity completion” section is configured as shown in the figure below. Save the changes.

screenshot

Step 5

Go back to the course page and add “Certificate” as a Moodle activity.

screenshot

Step 6

Configure the certificate. There are lots of settings available for you to customise based on your needs, but I’m not going to cover everything here. For comprehensive information, you can check out Moodle’s official documentation here

In the figures below you can see some of the settings I used for making this tutorial.

screenshot
screenshot
screenshot

Step 6

Based on the scenario, we need to make sure the “Grade condition” and “Activity completion condition” are configured correctly as shown in the figure below.

screenshot

Step 7

Now it’s testing time – you need to log out and log back in as a student. Take the exam. If you pass the exam you should be able to see the certificate link.

screenshot

Step 8

Click the certificate link and you should see the instruction as shown in the figure below.

screenshot

Step 9

Click the “Get your certificate” button and your certificate will be generated and emailed to you.

screenshot
screenshot

Conclusion

I hope you find this tutorial useful. For the certificate design, there are quite a few default options which come with the module to get you started. However, if you are feeling adventurous you can also customise the design by following the Moodle documentation here

How to add Twitter and Facebook buttons to your Moodle site

Adding Twitter and Facebook like buttons to a website is always a good idea if you’d like to spread the word about your site through social networking. In this tutorial I will walk you through how to add the commonly seen buttons to your Moodle site.

First things first. Before we do anything in Moodle, Let’s get the buttons from Twitter and Facebook’s official websites.

Get Twitter “Share a link” button

1) Go to Twitter’s official buttons page: http://twitter.com/about/resources/buttons

2) Select “Share a link” and enter the desired options as shown in the figure below.

screenshot

3) Once you are happy about the button’s preview, you can keep the page open for later use.

Get Facebook “like” button

1) Go to the Facebook developers plugin page: http://developers.facebook.com/docs/reference/plugins/like/

2) Configure the like button as shown in the figure below. For the like button to work in Moodle you can only use the IFRAME version rather than the HTML5/XFBML version.

screenshot

3) Once you are happy with the button’s preview, you can click the “Get Code” button. In the popup window you need to choose the IFRAME option as shown in the figure below. Keep the page open for later use.

screenshot

Ok, now the buttons are ready for use we can dive into Moodle to add the buttons.

Step 1

In a new window, Log into Moodle as an administrator. Select the “HTML” option from the “Add a block” drop-down menu.

screenshot

Step 2

Now you should see that a new HTML block has been added. Click the configuration icon, which is the second icon, as shown in the figure below. (Your Moodle site’s configuration icon will look different )

screenshot

Step 3

On the “Configuring a (new HTML block) block” page, turn on the HTML Source Editor for the “Content” text field by clicking the HTML icon in the editor menu as shown below.

screenshot

Step 4

Copy and paste the relevant buttons’ code from the previous Twitter and Facebook pages into the HTML Source Editor and click the “Update” button.

screenshot

Step 5

Enter a block title and configure other options before saving.

Step 6

You need to turn off editing to see the changes.

screenshot

Conclusion:

Using a Moodle HTML block to add Twitter and Facebook buttons is only one way of doing it. If your Moodle theme offers you extra block/widget areas to enter HTML code you can take advantage of those as well.

For example, in our premium Moodle Theme “Ace”, you can go to the theme settings page and add the Twitter and Facebook buttons to the page’s header as shown below.

screenshot

How to add a promotional banner to your Moodle front page

If you have seen our new premium Moodle Theme’s demo site, you will notice that there is a promotional banner placed on the Moodle’s front page. By default, Moodle’s front page is the site landing page, and landing page is always an ideal place for a promotional banner to attract immediate attention from visitors.

In this tutorial I will show you how to add a banner on your Moodle front page.

Step 1

Log into Moodle as an administrator and navigate to the “Front page settings” page.

Settings > Front page settings > Editing settings.

screenshot

Step 2

On the “Front page settings” page you will find an option called “Include a topic section”. Make sure the box for this option is ticked. Save the changes.

screenshot

Step 3

Navigate to the front page. Click the “Turn editing on” link which is located right underneath the “Front page settings”.

screenshot

Step 4

Now you should see the “Add a resource…” menu appear on the top of the front page content area. Select the “label” option from the menu as shown in the figure below.

screenshot

Step 5

In the “Label text” editor you can upload and insert your banner image by clicking the image icon in the menu bar.

screenshot

Step 6

Click the “Save and return to course” button and you should see your banner appear on the front page.

screenshot

Hopefully you find this tip useful. In fact, you can not only add a banner image but also text/video/flash to the front page using this method. So just play around with it and you might develop some creative ideas for your site’s landing page.

How to use Dropbox as a Moodle file repository

Dropbox is a popular online file storage app. Imagine it as a type of online USB drive, which you can access anywhere in the world as long as you have a computer and internet connection. If you have a Dropbox account and also use Moodle, you will be glad to know that in Moodle 2.x you can connect the two together and use Dropbox as a Moodle file repository.

Step 1

Sign up for a Dropbox account if you don’t already have one here: https://www.dropbox.com/

Step 2

Log into your Dropbox account and go to the “Dropbox for Developers” page by following the link here – https://www.dropbox.com/developers

screenshot

Step 3

Navigate to the “My apps” page and create your Dropbox app by clicking the “Create an App” button.

screenshot

Step 4

Enter an app name, description and select the access level to be “Full Dropbox” and click the “Create” button.

Note: the app name needs to comply with Dropbox’s branding guide, otherwise your app won’t be approved later when you apply for production status.

screenshot

Step 5

Now you should be directed to the app’s configuration page, where you can find the App Key and App secret as shown in the figure below. later you will need to enter the key and secret in Moodle.

screenshot

Step 6

Log in to Moodle as an administrator and navigate to the “Manage repositories” option and enable Dropbox.

screenshot

Step 7

Once Dropbox is enabled, you will be directed to the configuration page where you can enter the Dropbox app key and secret from Step 5. Click “save” and you are done.

screenshot

Step 8

Now you need to go back to the Dropbox Developers page and apply for production status for the app.

Step 9

Upon Dropbox’s approval (you should get an email from them), you can start using Dropbox as your Moodle’s file repository.

screenshot

How to use Google Docs as a Moodle file repository

Google Docs is another wonderful free online service provided by Google. It can be used as an online office suite where you can easily create or edit documents, spreadsheets and presentations. It can also be used as an online file repository, which enables you to access your docs from any computer with an internet connection.

In this tutorial, I am going to show you how to use Google Docs as your Moodle file repository.

Important: If you are using a Moodle 2.1.1 installation, the Google Docs repository may not work due to a known bug which affects this version. To be safe, it is recommended to upgrade your Moodle to the latest version. There is a forum post on the official Moodle site about this where you can find out more about this issue for Moodle 2.1.1.

Step 1

You need to have an account with Google to be able to use Google Docs, so sign up for one, if you don’t already have a Google account.

Since only files in Google Docs format will show up in Moodle’s File Picker later, you need to make sure all the uploaded files (eg. Word, PowerPoint, PDF) are converted to Google Docs format. Google Docs will do the conversion for you when you are uploading the files, as long as you remember to tick the two options as shown in the figure below.

screenshot

Step 2

Log in to Moodle as an administrator and navigate to the “Manage repositories” option and enable Google Docs.

Site administration > Plugins > Repositories > Manage repositories

screenshot

Once Google Docs is enabled, you will be directed to the configuration page where you can enter a new name for the repository.

screenshot

Step 3

Go to a course and turn editing on. Select “File” from the “Add a resource” drop-down list.

Note: Only “File” supports Google Docs.

screenshot

Step 4

On the “Adding a new File” page, click the “Add…” button. A Moodle File Picker will appear and Google Docs should be listed as one of the available repositories. Select Google Docs as the repository and click the “Login” button to log into your Google account.

screenshot

Step 5

You will need to grant Moodle access to your Google account by clicking the “Grant access” button.

screenshot

Step 6

Now you should see all your Google docs as shown in the figure below, and you can select any file you like for using in the course.

screenshot

How to use Flickr as a Moodle image repository

Like Youtube is known as a great online video repository, the Yahoo-owned service Flickr has gained it’s popularity as a great online image repository. It is reported that there are now 6 billion images hosted on Flickr and the number is still growing.

And again, just like Youtube videos, Flickr images can be used to enrich your teaching / training material. In this tutorial, I’m going to show you how to use Flickr as your Moodle site’s image repository. This tutorial has three parts – Part One is about things you need to do in Flickr; Part Two contains all the Moodle-related steps; In Part Three, a test is carried out to check everything is working as it should.

Part One : Flickr

Step 1

If you don’t already have a free Flickr account, you need to sign up for one.

Step 2

Make sure you are logged into Flickr, and follow the link here to get a Flickr API key for your Moodle site.

Step 3

Once you click the link provided above, you should see a screen like the one shown below. Click the “Get Another Key” button to proceed.

screenshot

Step 4

Now you should arrive at the “App Garden” page, and you need to click the “APPLY FOR A NON-COMMERCIAL KEY” button.

screenshot

Step 5

On the “Tell us about your app” page, fill in the form and submit.

screenshot

Step 6

Ok, now the API key is generated for you! Copy the key. (Ctrl+C on PC or Cmd+C on Mac)

screenshot

 

Part Two: Moodle

Step 1

Log into your Moodle site as an admin user, and navigate to the “Manage repositories” option:

Settings > Site administration > Plugins > Repositories > Manage repositories

screenshot

Step 2

On the “Manage repositories” page, find “Flickr public” (NOT “Flickr”) and choose “Enable and Visible” from it’s options drop-down list.

screenshot

Step 3

On the “Flickr public configuration” page, paste the API key into the relevant box as shown below. Save and you are all good to go.

screenshot

 

Part Three: Testing

Congratulations, you have just set Flickr up as your Moodle site’s image repository! Now let’s test it out by adding a Flickr image to a course.

Step 1

Go to a course and turn editing on. Choose “Label” from the “Add a resource…” drop-down list.Click the image icon on the editor menu bar like shown below.

screenshot

Step 2

After clicking the “Find or upload an image…” button, another popup window called “File picker” will appear where you will see “Flickr public” as a repository option. Click the “Flickr public” button and you can start searching the images using the search form on the right-hand side pane.

screenshot

Step 3

I’ve done a search for “Moodle” and I got 126 pages of related images!

screenshot

Step 4

I decided to pick a poster about new features in Moodle 2.0. By default, when you save the image, the image will be stored in your Moodle site. However, if you have limited server space or bandwidth you might want to check the “Link external” option and let Flickr host the image. The drawback of the latter method is that if the image is deleted from Flickr by the user, it will also disappear from your Moodle site as you are only providing a shortcut pointing to the image on Flickr, so if the actual image gets deleted/moved the shortcut would no longer work.

screenshot

Step 5

Click the “Select this file” button and the image should be inserted into the editor. Save and return to the course and you will see the Flickr image has been inserted into the course.

screenshot

And that’s it. Now you know how to use Flickr as your image repository for Moodle – we hope you enjoyed our tutorial.