Update: alternative banner rotator for Moodle

Just to add to my previous post regarding adding banner rotators to Moodle I’ve also integrated an alternative option for people who want to have titles on each tab in the rotator.

It’s based on the ubiquitous jQuery UI extension from http://jquerytools.org/ using the Tabs tool. For full documentation see here and to download the .js file go here

Use the same process as in the previous post to enable the Javascript (to make it easy select the Include jQuery 1.7.2 option so you get everything you need in one file)

The clever stuff comes in the CSS file I’ve tweaked to do the following…

  • 3 tabs equally spaced along the top for a nice neat block style header
  • allows either text or images to be used in the box with neat layout… text gets padded by about 15px but images sit seamlessly in the corner
  • default size of the content area is 540px wide and 250px high
  • removed borders for neat, clean look to suit the aardvark theme

As I’m feeling very generous this week the CSS file is being uploaded to SkyDrive now…. download, test and enjoy :)

If you find it useful please leave a comment on this post…

Shaun Daubney does it again… another awesome aardvark theme

It never rains but it pours… quite fitting that while it’s chucking it down outside I’m doing the same with Moodle theming posts!

I’ve taken my time getting into Moodle 2.2 as our 1.9 site had so much customisation I was finding it difficult to see something within the newer themes that would move us forward. Was considering just buying one in then saw the latest version of the aardvark theme (Blackbird) and the old enthusiasm came back :D

I think Shaun should change his middle name to “Awesome” as that’s what I kept saying when I first loaded up the theme, really does look the part and gave me the base I wanted to start tweaking.

Additions so far…

  • silk icon pack (see previous post and SkyDrive for download package if you want it for your site)
  • subtle gradient background tweak (sorry Mr. Goldfish!)
  • minor text styling, spacing and colour tweaks to give a nod to our current theme

One thing I noticed when about to demo to a colleague was that the menu wasn’t appearing when not logged in (and in IE this also made the entire top bar disappear). After asking on Moodle.org I had a thought that it was probably an intentional choice rather than a bug and sure enough found the answer in layout/general.php

The bit in caps was added by me, as were the 3 lines commented out afterwards…

<?php 

 /* TO SHOW MENU AT ALL TIMES - REMOVE THE 3 LINES BELOW */

 /* if (!isloggedin() or isguestuser()) { */
 /* } */
 /* else */

 if ($hascustommenu) { ?>
 <div id="menuitemswrap"><div id="custommenu"><?php echo $custommenu; ?></div></div>
<?php } ?>
 <?php include('profileblock.php')
 ?>

The menu now shows the entire time and displays correctly in IE, Chrome and Firefox

The profile dropdown is one of my favourite parts of the  theme, looking at the “TBC” block space it looked too tempting to not put something there so I took my SkyDrive \ Web Apps block I made for 1.9 and tried it in the gap… the result… very good :)

The SkyDrive icon came from the official Microsoft branding pack, get it here

One thing that’s driving me nuts is how to get the entire background of the icons to highlight (currently it only goes about half way up) and also need to add the auto hide function for non-Live@Edu users then I’ll put it in the usual place for anyone who wants it. Shame in a way that this will be replaced with Office 365, as yet no native Moodle integration exists (or seems to be planned) for the new system but if something appears I’ll be on it in a flash!

How to: add an image rotator in Moodle 2.2

Since using Moodle as our primary website one of the things I’ve been asked for a lot is to tidy up our front page and make it a bit less “blocky”. Problem is we still need to provide an area for notifications of new courses, events etc of which there can be 4-5 at a time.

Having seen a few websites that employ a sliding banner rotator I wondered if the same could be done in Moodle, intially leaving it as something I’d get someone else to do to save time. However since playing with the new aardvark release a couple of days ago I decided to give it a try… the results are rather pleasing :)

Note: make sure your site is in Theme Designer mode or remember to Clear Theme Caches after updating the file structure and config.php or your changes won’t take effect!

Here’s one I made earlier…

Yes I’ve been naughty and let the browser remember the site admin password…  panic over it’s only my local Wampserver ;)

Finding a suitable base…

A quick Google found this… Easy Slider

http://cssglobe.com/post/5780/easy-slider-17-numeric-navigation-jquery-slider

What you get in the download is a couple of .js files, some CSS and sample HTML files to work from… time to integrate this into the aardvark theme.

Step 1… create the file structure

Ref: http://docs.moodle.org/dev/Themes

First thing you need to do is add the .js files into your theme. This is nice and easy with Moodle 2. Open your theme’s root folder, you should see folders such as pix, style, lang etc. If it doesn’t already exist create a folder called javascript and place jquery.js and easySlider1.7.js in there.

I renamed easySlider1.7.js to easyslider.js as I don’t trust mixed case or punctuation in file names as a general rule… keep it all lowercase and make life easy for yourself :)

Create an additional .js file in the javascript folder called enableslider.js and paste the following into it…

$(document).ready(function(){ 
 $("#slider").easySlider({
 auto: true, 
 continuous: true
 });
 });

(you’ll notice this is the code from the Easyslider example files)

Next, rename and copy my updated CSS file (grab it from the SkyDrive link on the right) into the style folder in your theme (I called the renamed file easyslider.css) There’s some extra code (mainly for the demo pages) that isn’t required so I’ve removed it and also renamed the first 3 div IDs to be on the safe side so they won’t conflict with anything in Moodle.

Finally, create a folder called slider within the pix folder in the root of your Moodle installation (not theme folder). At the moment I’ve hard-coded the links to the slider images, not ideal and something I’ll look at changing when I have time. Copy in the sample files 01.jpg, 02.jpg, 03.jpg, 04.jpg, 05.jpg.

Optional: create a subfolder within pix/slider called controls and copy in btn_prev.gif and btn_next.gif if you want to try arrow instead of numeric navigation (let me know your results as they might not be pretty!)

Step 2… tweak config.php

Now you’ve got the files there let’s enable them. Open up config.php in your text editor of choice (I’d recommend Notepad2 )

Enable the CSS file by adding it to the sheets array… note you don’t have to put the file extension at the end

$THEME->sheets = array('core', 'autohide','easyslider');
////////////////////////////////////////////////////
// Name of the stylesheet(s) you've including in
// this theme's /styles/ directory.
////////////////////////////////////////////////////

Enable the Javascript functions by adding this to the bottom of the file…

////////////////////////////////////////////////////
// An array of additional Javascript files
// for image slider
////////////////////////////////////////////////////
$THEME->javascripts_footer = array(
 'jquery','easyslider','enableslider'
);

Step 3… change the settings to suit your needs

Open up the javascript/easyslider.js file with your text editor and change the settings for continuous, auto, speed etc to suit your needs. The author’s website has full documentation on what each setting does. At the moment I’m using the numeric mode so set that to true (you can try the arrow navigation buttons but not sure how they’ll look!)

Open up the style/easyslider.css file with your text editor and change colours and the overall width of the rotator as required. By default the width is set to 674px so just find \ replace all instances of that to make the change. Obviously you’ll need to make sure your images match the width set for the rotator or it’ll look a bit odd!

Step 4… paste in the code

Choose where you want your rotator to go (usually front page), open up the Moodle HTML editor and switch to code mode. Position the cursor where you want the slider to be and paste this in…

Note the hard-coded paths to images in the site’s pix folder… if \ when I sort this I’ll update the post accordingly

<div id="slider">
<ul>
<li><a href="http://templatica.com/preview/30"><img src="http://yourmoodlesite.com/pix/slider/01.png" alt="Image 01" /></a></li>
<li><a href="http://templatica.com/preview/30"><img src="http://yourmoodlesite.com/pix/slider/02.jpg" alt="Image 02" /></a></li>
<li><a href="http://templatica.com/preview/30"><img src="http://yourmoodlesite.com/pix/slider/03.jpg" alt="Image 03" /></a></li>
<li><a href="http://templatica.com/preview/30"><img src="http://yourmoodlesite.com/pix/slider/04.jpg" alt="Image 04" /></a></li>
<li><a href="http://templatica.com/preview/30"><img src="http://yourmoodlesite.com/pix/slider/05.jpg" alt="Image 05" /></a></li>
</ul>
</div>

Hit refresh and you should see your rotator appear!

How to… get a perfect Windows 7 managed Start Menu and Taskbar

Since we started testing Windows 7 we’d noticed that (amongst other things) Microsoft have it somewhat difficult to get a clean Start Menu and Taskbar set up for users without the detritus MS *think* we want to see on first logon.

We need to provide a standard desktop for training purposes that points users to Office, Internet browser and so on without distractions of the likes of Windows Snipping Tool or XPS Viewer. So we set off on a journey of discovery via Google to see how clever people on the Internet have got around the issue.

Initially we found the Microsoft XML Sysprep customisation method…

http://blogs.technet.com/b/askcore/archive/2010/03/16/how-to-customize-the-windows-7-start-menu-and-taskbar-using-unattend-xml.aspx

Looked OK at first but after testing but didn’t really work as we wanted…

  • leaves  the default junk in the Start Menu
  • only adds 4 “recent” programs rather than pinned ones
  • only allows adding 3 additional icons to the default taskbar items

Not good enough… so we keep going. There must be a better way… and there is!

http://brianleejackson.com/copy-taskbar-icons-windows-7-sysprep-v2

This script gets around the original Sysprep method being a bit lame by placing Pinned items in the taskbar (and also allows you to remove the irritating default icons). We’ll run this on the boot before Sysprepping to remove Media Player (as we want IE and Explorer for now).

Update: a better way to use this script is in conjunction with the Start Menu pin script below to control both via logon script GPOs. The good thing about Brian’s script is that it can unpin the default taskbar icons (other methods can’t do this) If you remove the last section of the code the file won’t try to delete itself.

However I wanted even more control so I could change settings “on the fly” without needing to recapture the profile… can we make it better? Yes we can!

This very nifty set of scripts allows various customisations and works with MDT and suchlike…

http://blogs.technet.com/b/deploymentguys/archive/2009/04/08/pin-items-to-the-start-menu-or-windows-7-taskbar-via-script.aspx

Even better it can be run as a standalone VBS so we can add and remove items line by line via a user logon script. I’ve put the files into NETLOGON so I can easily reference the VBS file from a batch file containing the list of programs I want pinned.

I’ve separated them out for ease of management but you could easily do the whole lot in one go. Just put /taskbar at the end if you want them there (or leave the switch off for the Start Menu). It’s all documented within the VBS file so download it and have a play.

Update: it also appears that there’s a Powershell script that can do the same thing… take your pick…

http://gallery.technet.microsoft.com/b66434f1-4b3f-4a94-8dc3-e406eb30b750

Doing the customisations this way also means we can quickly respond to any requests from users needing additional pinned items as requirements change. Finally all we needed was to clear the default junk from the Start Menu before adding the new pinned items but that’s simple via GPO…

User Policy\Admin Templates\Start Menu and Taskbar – Clear the recent programs list for new users

Combine this with a few extra settings…

User Policy\Admin Templates\Remove user folder link from Start Menu

Computer Configuration\Administrative Templates\Control Panel\User Accounts\Apply the default user logon picture to all users

Et voila… you have a clean, managed Start Menu and Taskbar that, if used with a mandatory profile will reset at each user logoff and that you can quickly and easily customise without needing to re-create the profile.

Now Microsoft why couldn’t you have just done that in the first place!!!

Updated silk icon pack for Moodle 2

Just been on my dev server at home to upload the updated version of the silk icon pack mentioned a couple of posts back  so without further ado see the link below…

pix_silkicons_moodle2.zip
https://skydrive.live.com/redir.aspx?cid=c8ff83fed8f228a4&resid=C8FF83FED8F228A4!430&parid=C8FF83FED8F228A4!423

You can put the icons into any Moodle 2 theme, just find your theme folder and rename the following folders…

  • pix_core
  • pix_plugins

Then extract the new ones from the archive and rebuild your theme caches for the changes to take effect.

There’s only a couple of differences over Gareth’s original set; I’ve added some more file type icons, replaced a couple of the silk icons (circular left \ right arrows etc) and added some more module icons that I use on my site.

If you find it useful leave a comment in the usual place :)

Windows 8 Consumer Preview…

Was waiting until I’d tried Windows 8 for a week or two posting this but now I’ve used it on a couple of different devices here’s my thoughts so far and tips from elsewhere that are easy to miss…

Vision
Have to give credit where it’s due on this one. Microsoft’s vision of building an end-to-end interface across a wide range of devices is a bold move and the new APIs and development options for Metro apps (along with the reach of Windows Store) should ensure plenty of new apps are ready when Windows 8 does hit the market. Question is… how is it looking so far?

On a tablet…
Was at a Microsoft event today and got to try Windows 8 on one of the new (as yet unreleased) Samsung tablets and you can see the optimisation for tablets working very well here. Felt very responsive and the screen swishes and gestures looked to work pretty well. Not so great if you have to use standard Win32 (desktop) apps though… I guess those will really need the tablet to be docked with a keyboard and mouse to be usable.

On a laptop…
I needed to reformat my Lenovo x100e  anyway so thought I’d give 8 a go on this to see how it works without touch and on a lower speed device. Before anyone says it yes I did photoshop the pic below as I couldn’t get a decent photo (but it is using an actual screenshot I took earlier)

Also of note that Windows 8 won’t run on older netbooks that don’t have at least 1024×768 screen resolution. Seems a shame that there’s hardware that will physically run the OS without problem from a speed perspective but loses out to the new interface.


On a general level I don’t like full screen switcher \ launchers (yes Ubuntu Unity I mean you!) so the process of having to move from a Win32 desktop app (e.g. Word) and go full screen to launch another (e.g. Photoshop) feels quite jarring and looks like that pain isn’t going to go away until the majority of apps get redesigned for Metro. I also hope GPOs will be available to control which tiles get placed at the front of the Start screen when it gets deployed on a network.

Interestingly the charms menu has a search option but it needs to go full screen to show the results, would be nicer if they showed up within the side panel so you don’t lose focus of your current window (e.g. how the wi-fi panel appears on the tablet pic above) I’m also missing pinned jump lists to quickly launch recent files from the Start Menu right now :(

With any luck Microsoft will release a theming engine by the time Windows 8 goes RTM so we can choose a skin for the tiles, background etc as the current primary colours \ flat 2D look isn’t to my taste. After all those years getting to full colour HD icons it feels like going back to the mid 80′s with flat primary colours! The splash screen animations for Metro apps also need speeding up as it feels like they’re delaying the app launch for no apparent reason apart from looking pretty.

A couple of other foibles I’ve found during general use…

  • on the Metro start screen you can move the mouse across to scroll the screen without manually grabbing scrollbars but in Metro apps (e.g. the Store) this doesn’t work. I have a real dislike for horizontal scrollbars so hoping this is just a pre-release buglet as using the scroll wheel on a mouse works fine (I guess I only notice this because I’m using the touchpad)
  • the theory of Metro apps is that you don’t close them and the OS manages multitasking but this didn’t work too well on the webcam app where it left the camera on after being switched to the background… hopefully will be fixed once the apps are finalised and found out that Alt+F4 still works as a manual override (the old tricks work best!) I’ve since found out that dragging the app to the bottom of the screen does it as well.
  • the URL bar ends up at the bottom of the screen in the Metro version of IE… it’s been at the top of the screen in every browser on every platform since the dawn of time so again on a personal level I find it somewhat annoying… it just feels wrong?
  • the mouse gestures in the corners of the screen feel like they need to be too precise to do quickly, maybe it’s the slight lag before the charms etc appear that do it but it somehow feels more forced than doing the same thing by touch. Windows key + C brings up the charms menu but I’d prefer the mouse to be slicker… half a second quicker animations could make all the difference I reckon.

Shutting it down
Not the most obvious thing when you first use 8 but the quickest route I’ve seen (from another forum) looks to be Winkey+I  (random?) then either mouse click or Up Arrow+Enter+U

Early conclusions
I really hated it when first using it… having seen it at home on a tablet I can see why some bits of the UI work the way they do but not 100% convinced it’s going to help rather than hinder productivity on a desktop as we know it today. With a few tweaks here and there the keyboard \ mouse experience could be improved (and may already have been done as Microsoft are saying they’ve already made thousands of code changes since the Consumer Preview was released)

That’s the crux of the issue I guess… Microsoft are designing Windows 8 for the hardware of tomorrow… where everything is touch enabled and perhaps where more powerful tablets take the role of desktop and portable device but how long will that take and what will happen in the meantime?  Will be interesting to watch as the future unfolds…

Office 365 now free for education staff… well done Microsoft :)

Just had this come through via email… good move by Microsoft to drop the charges for staff to use the system

http://blogs.office.com/b/microsoft_office_365_blog/archive/2012/03/14/new-lower-prices-for-office-365.aspx

“We are also excited to make pricing changes to Office 365 for education. In line with our longstanding commitment to education, we will make our “A2″ service plan free to not only students, but also to faculty and staff. A2 includes the core capabilities of Exchange, SharePoint, and Lync and the Office Web Applications. Exchange Online and Lync Online are available today for academic institutions, and we’ll launch the full Office 365 for education service starting this summer. You can get more information on our Office 365 for education offering here.”

http://www.microsoft.com/liveatedu/learn-about-office-365.aspx?locale=en-US&country=US

I’m attending a Microsoft event next week to get some more answers about where SkyDrive fits in with Office 365 and how the migration works then will start planning to see how it will work for us…

First steps towards a new theme…

Seeing as it’s a miserable day outside and the football only takes up part of my screen I thought I’d drop WampServer http://www.wampserver.com/en/ on my PC and install a local Moodle 2.2 dev site to have a play around with.

On our current 1.9 site we used a heavily customised version of Shaun Daubney’s excellent Aardvark theme so going to go the same again and installed his latest version for Moodle 2 http://moodle.org/mod/data/view.php?d=26&rid=4968

Had a silly moment wondering why it hadn’t appeared in the list then realised Moodle 2 is clever enough to have different themes for different devices… nice!

Having set Aardvark as the theme I was impressed by the simplicity of initial customisation… along with the built-in Moodle menu feature the footer, logo and background image options let you get going without even needing Firebug (although I’m sure it’ll be needed soon once I get down to CSS tweaking)

I really like the new profile bar at the top and can see potential for my Live@Edu block there, dropdown menu is nice and slick as well. However there was one thing that didn’t look right for me… the icons. In our current theme we used the excellent Silk icons from http://famfamfam.com/ so I jumped into the theme folder to have a look at replacing them…

…there’s quite a lot of them!

Before starting out on what could be a bit of a manual labour task I was going to post on here to see if someone wanted to help out but then wondered if someone’s already done it… a quick Google search later et voila!

http://stawebteam.wordpress.com/2011/04/08/developing-a-new-theme-for-moodle-2-0/

One copy \ paste later I now have Aardvark + Silk Icons :D

Update: here’s a quick screenshot of the new icon set in action, slightly tweaked from the set mentioned below as I wanted a few from our old theme…

Gareth J M Saunders… the wonky Moodle logo salutes you too!

Moodle 2.2 is go!

After a very informative event from JISC RSC London yesterday I now feel that Moodle 2 is going to be on our radar very soon (as in less than 6 months soon!) At one point I asked the question whether the move from 1.9 to 2.2 could be done or whether to go and hide under a table and pretend it isn’t happening… you can guess what the answer was!

 

I was going to summarise the salient points about the upgrade but Mike Hughes has already done it so without further ado check out his post…

http://citymoodle.wordpress.com/2012/02/29/making-the-leap-to-moodle-2/

One of the best things from yesterday was finally an answer to the question I’ve had since 2.x was released…

“can you explain to a tutor, in less than 4 sentences, how the new file system works”

Cue Rebecca Barrington from South Devon College who managed it with a few words and some nifty elbow moves! Good news is that there doesn’t seem too much to worry about now the early issues and questions have been ironed out and thus far feedback seems to be that it “just works”… I’ll take that! With what looks like single-instance storage reducing file storage requirements as well it’s looking like win-win now.

On a similar note the long awaited SkyDrive API is now out there so maybe, just maybe we might finally see something to link it to Moodle via the repository function… maybe dreams can come true after all!
http://blogs.msdn.com/b/uk_faculty_connection/archive/2011/12/09/announcement-of-skydrive-api.aspx

So getting back into the office today what happens next? From a personal point of view I think I’m going to go down the fresh install and re-import process. It’ll give us the chance to re-evaluate structures, clear out any crud and check all our users are accurate, plus leaving 1.9 there on the side “just in case”. Already put a request in for a 2.2 server which should be arriving sometime next week then let the fun begin!

After looking at our current site and furious scribblings from yesterday the initial plugin list is starting with…

  • Live@Edu plugin for 2.x (only released the other week and was a big worry for me)
  • ILP2, apparently new and much improved
  • OUWiki, sounds like a very nice bit of kit and much better than the standard Moodle module which has always seemed a bit underwhelming
  • Lightbox Gallery, was glad to hear this has been ported to 2.x as we make good use of it in our photography courses
  • Book, core feature wasn’t there early on but now upgraded
  • Course Awards with Moodle medals for high quality courses
  • Course Menu (looks like Moodle 2.x standard course navigation isn’t quite good enough without the additional block)
  • Spell check for HTML editor

First thing I’ll be doing is setting up the updated Live@Edu plugin to see what’s changed, hopefully they’ve used the newer Messenger Connect API to fix the irritating consent bug from the old system that’s been the bane of my life ever since putting it in! At the same time I’ll also look at updating my little Office Web Apps block to work in 2.x, hopefully shouldn’t need too much tweaking being a pretty basic item and when done will upload to the usual place :)

Once everything all up and running then we’ll need to update our Moodle introductory course to take advantage of the new funky features 2.x offers (conditional activities, completed items, new quiz types etc) to sell the vision to tutors and show them where we’re moving towards. Then there’s the small matter of deciding whether to keep with the portal strategy (website, intranet etc all based on Moodle) or split out into separate platforms (Joomla?) All this alongside moving to Windows 7, installing site-wide Ruckus Wi-Fi, implementing open-source MRBS room booking software and finishing off getting our last couple of physical servers onto VMware… it’s going to be a busy summer!

As always thanks go to RSC London for putting the event on and all those who shared their experiences for the greater good, this slightly wonky Moodle logo salutes you!

Live@Edu Moodle 2.x support

Great news this morning, looks like Moodlerooms have taken on development of the Live@Edu plugin and we will have a version for newer versions of Moodle by the end of the month :D

http://www.moodlerooms.com/news/news__node/125/

Fingers crossed this might also mean Office 365 in the future as well… time to break out a new dev server I think!

Follow

Get every new post delivered to your Inbox.