Skip to content

Instantly share code, notes, and snippets.

@marxjohnson
marxjohnson / pagesnap.php
Created October 18, 2012 14:50 — forked from afiore/pagesnap
Save a webpage (and its linked assets) into a single HTML file.
#! /usr/bin/env php
<?php
/***
* PageSnap
*
* Script for archiving a HTML page (and associated media assets) into a single file.
*
* Requires:
*
@marxjohnson
marxjohnson / DrupalToWordpress.java
Created August 4, 2012 14:28
A tweaked version of a script from modeling-languages.com to convert Drupal 6 blog posts to Wordpress
/*
*
*
* Simple Drupal 6 to Wordpress 3 migrating class for the modeling-languages.com portal
*
*
* @version 0.1 10 June 2011
* @author Jordi Cabot
*
*
@marxjohnson
marxjohnson / 0051-Removed-requirement-from-city-and-country-fields-in-.patch
Created August 1, 2012 11:01
Patch for Moodle 2 to remove requirement from city and country fields in user profile. Copyright Richard Taunton Sixth Form College, UK. Licenced under GNU GPL.
From c106c6188887b169a237a2e14b675dab9e1aa777 Mon Sep 17 00:00:00 2001
From: Mark Johnson <[email protected]>
Date: Mon, 12 Sep 2011 13:46:00 +0100
Subject: [PATCH 51/78] Removed requirement from city and country fields in
user profile
---
user/editlib.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@marxjohnson
marxjohnson / 0038-Modified-Navigationlib-to-support-categories-in-My-C.patch
Created August 1, 2012 10:59
Patches for Moodle 2 to allow courses under specified categories to appear collapsed under headings in the Navigation block. Copyright Richard Taunton Sixth Form College, UK. Licenced under GNU GPL.
From da6261b0fe00a33c2c672c239df7d875f82e3457 Mon Sep 17 00:00:00 2001
From: Mark Johnson <[email protected]>
Date: Fri, 19 Aug 2011 10:32:23 +0100
Subject: [PATCH 38/78] Modified Navigationlib to support categories in My
Courses
My Courses in the Nav block doesn't support categories by default.
This hack implements a new setting, $CFG->mycoursescollapsecategories,
where an array of category IDs can be spefied. Any courses appearing in
My Courses that are under these categories will be collapsed underneath them.
@marxjohnson
marxjohnson / 0035-Removed-unwanted-Site-pages-from-navigation.patch
Created August 1, 2012 10:56
Patch for Moodle 2 to remove "Site Pages" from navigation block. Copyright Richard Taunton Sixth Form College, UK. Licenced under GNU GPL.
From ff4763bef9e2f1fec5386785e509870bb0f942bf Mon Sep 17 00:00:00 2001
From: Mark Johnson <[email protected]>
Date: Wed, 17 Aug 2011 11:59:11 +0100
Subject: [PATCH 35/78] Removed unwanted "Site" pages from navigation
---
blocks/navigation/block_navigation.php | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/blocks/navigation/block_navigation.php b/blocks/navigation/block_navigation.php
@marxjohnson
marxjohnson / 0020-MDL-26943-Added-submodule-support-for-local-plugins.patch
Created August 1, 2012 10:54
Patch for Moodle 2 to enable subplugins in Local plugins. Copyright Richard Taunton Sixth Form College, UK. Licenced under GNU GPL.
From 6c6ed071f4891a877323fc503a56ee42d66b929c Mon Sep 17 00:00:00 2001
From: Mark Johnson <[email protected]>
Date: Wed, 23 Mar 2011 12:16:25 +0000
Subject: [PATCH 20/78] MDL-26943 Added submodule support for local plugins
---
lib/moodlelib.php | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/lib/moodlelib.php b/lib/moodlelib.php
@marxjohnson
marxjohnson / 0015-Removed-items-with-gradetype-3-No-Grade-from-grader-.patch
Created August 1, 2012 10:47
Patch for Moodle 2 to remove grade items with grade type "no grade" from grader report (gradebook). Copyright Richard Taunton Sixth Form College, UK. Licenced under GNU GPL.
From 8f6a707b4019db72e0785bdd2f9d1e753c95aa05 Mon Sep 17 00:00:00 2001
From: Mark Johnson <[email protected]>
Date: Wed, 19 Jan 2011 08:24:19 +0000
Subject: [PATCH 15/78] Removed items with gradetype 3 (No Grade) from grader
report
---
grade/report/grader/index.php | 6 +-
grade/report/grader/lib.php | 4 +-
grade/report/grader/locallib.php | 624 ++++++++++++++++++++++++++++++++++++++
@marxjohnson
marxjohnson / 0008-Added-course-names-and-links-to-calendar-blocks.patch
Created August 1, 2012 10:46
Patch for Moodle 2 to add the course fullname to calendar block popups, and course links to the Upcoming Events block. Copyright Richard Taunton Sixth Form College, UK. Licenced under GNU GPL.
@marxjohnson
marxjohnson / 0006-Modified-mentees-block-to-sort-users-alphabetically.patch
Created August 1, 2012 10:43
Patch for Moodle 2 to modify the mentees block to sort users alphabetically. Copyright Richard Taunton Sixth Form College, UK. Licenced under GNU GPL.
From a0198387d484d0fe083ed1a32c0fe5f9f6806d6b Mon Sep 17 00:00:00 2001
From: Mark Johnson <[email protected]>
Date: Mon, 29 Nov 2010 15:01:08 +0000
Subject: [PATCH 06/78] Modified mentees block to sort users alphabetically
---
blocks/mentees/block_mentees.php | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/blocks/mentees/block_mentees.php b/blocks/mentees/block_mentees.php
@marxjohnson
marxjohnson / 0005-Assignment-remove-late-notifications.-Students-compl.patch
Created August 1, 2012 10:41
Patch for Moodle 2 to remove late homework notification to students. Copyright Richard Taunton Sixth Form College, UK. Released under GNU GPL.
From cfe154d2c78c9b143ecf9d132fe34885842e92c3 Mon Sep 17 00:00:00 2001
From: Mark Johnson <[email protected]>
Date: Mon, 29 Nov 2010 15:48:07 +0000
Subject: [PATCH 05/78] Assignment remove late notifications. Students
complained that homework was flagged up as late when
handed in if teacher hadn't marked it.
---
mod/assignment/lib.php | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)