<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>James&#039; Tools and Tricks &#187; Moodle</title>
	<atom:link href="http://jrudd.org/tag/moodle/feed/" rel="self" type="application/rss+xml" />
	<link>http://jrudd.org</link>
	<description>Tools, Tips and Hints for managing a network.</description>
	<lastBuildDate>Sun, 08 Jan 2012 03:50:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Moodle Structure Problems</title>
		<link>http://jrudd.org/2009/06/moodle-structure-problems/</link>
		<comments>http://jrudd.org/2009/06/moodle-structure-problems/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 07:10:44 +0000</pubDate>
		<dc:creator>James Rudd</dc:creator>
				<category><![CDATA[Moodle]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[Meld]]></category>
		<category><![CDATA[mysqldump]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://jrudd.org/wordpress/?p=106</guid>
		<description><![CDATA[Recently I discovered our Moodle gradebook was playing up and not correctly recording marks from assignments as well as been unable to assign categories from quizes.
I tracked the problem down to the Moodle database losing all its default entries for its tables.]]></description>
			<content:encoded><![CDATA[<p>WARNING: DO NOT ATTEMPT ANY OF THIS IF YOU DO NOT FULLY UNDERSTAND IT. YOU CAN DESTROY YOUR MOODLE SITE.</p>
<p>Recently I discovered our Moodle gradebook was playing up and not correctly recording marks from assignments as well as been unable to assign categories from quizes.</p>
<p>I tracked the problem down to the Moodle database losing all its default entries for its tables. The cause is unknown but is quite likely the <a title="UTF Convert" href="http://moodle.org/mod/forum/discuss.php?d=97592">UTF conversion utility</a> I ran previously to make the system compatible with Asian languages for LOTE.</p>
<p>To fix this problem I needed to recreate the Moodle DB structure and then reimport the data.</p>
<h2>Backup</h2>
<p>First make a backup. I made a mistake the first time I tried repairing this and the backup I made saved me.</p>
<pre class="brush: bash; title: ; notranslate">mysqldump -u backupacc -p -Q --opt moodle &gt; moodleBackup.sql</pre>
<p>I created a duplicate site with a clean DB (copy the moodle folder and create a new DB) and went through the install. This needs to have all your modules and blocks to ensure all tables are created.</p>
<p>I then dumped the structure from this new DB and the old DB and compared them using Meld (or any other diffing program will work).</p>
<pre class="brush: bash; title: ; notranslate"> mysqldump -u backupacc -p --no-data --skip-add-drop-table moodletest2 &gt; moodleGoodStruc.sql
mysqldump -u backupacc -p -d --skip-add-drop-table moodle &gt; moodleOldStruc.sql</pre>
<p>Using Meld determine if there are any extra tables or fields in your current system that don&#8217;t exist in the clean one.</p>
<p>Then you need to determine if it is safe to delete those tables / field in your main DB or if they need to be added to the clean system. e.g. grade_items_history.decimals and grade_items_history.display were in the main DB but not the new one. After searching for it discovered they can be removed (<a href="http://tracker.moodle.org/browse/MDL-15985">MDL-15985</a>).</p>
<p>After getting them to match you need to dump your Moodle data from your main site.</p>
<p>You can speed up the next steps by reducing the size of backup_log if you wish. Just do a</p>
<pre class="brush: sql; title: ; notranslate">
Delete
FROM `mdl_backup_log`
WHERE `time` &lt;1242777600
</pre>
<p>Where the time code is <a href="http://converteverything.com/conversions/unix_time.htm">calculated as a unix time code</a> from about a month before todays date. This can reduce alot of space of your DB, and improve import/export times.</p>
<pre class="brush: bash; title: ; notranslate">mysqldump -u backupacc -p  --no-create-info --extended-insert --complete-insert moodle &gt; moodleData200906171559.sql</pre>
<p>You need the <strong>&#8211;complete-insert</strong> option to ensure each insert is labelled with field name, in case field order is different. I didn&#8217;t do this the first time and needed to restore the backup.</p>
<h2>Testing Merge</h2>
<p>Now you need to test it. Create a new empty DB and import the Structure then import your data.</p>
<pre class="brush: bash; title: ; notranslate">mysql -u root -p moodleTest3 &lt; moodleStruc.sql
mysql -u root -p moodleTest3 &lt; moodleData200906171559.sql</pre>
<p>Check that no errors occurred during import, this is when I discovered most of my problems with extra non existent field.</p>
<h2>Prep for Applying</h2>
<p>Put your site in Maintenance mode so no users can login while you are testing this. (i.e. when you restore data site will already be in maintenance mode)</p>
<p>When everything is OK do another backup, as after this you are going to <strong>delete it all</strong>. (I recommend taking your site completely offline for this, not just maintenance mode. Edit your config.php and temporarily change either the username, password or db name or your database settings.)</p>
<p>Now re-export the Data again (assuming your site has been running while you have been doing tests)</p>
<pre class="brush: bash; title: ; notranslate">mysqldump -u backupacc -p  --no-create-info --extended-insert --complete-insert moodle &gt; moodleData200906171559.sql</pre>
<h2>Applying to Site</h2>
<p><strong>WARNING: HAVE A GOOD RELIABLE BACKUP BEFORE THIS STEP.  THIS WILL DESTROY YOUR MOODLE SITE.</strong></p>
<p>Now use phpMyAdmin to drop every table in the Moodle main DB. Just use Check All at the bottom and select Drop.</p>
<p>Now you need to redo your test restore above but to your main DB.</p>
<p>Once complete reconnect your config.php file and check everything on your site looks the same. Open some courses, check some gradebooks, have a look around.</p>
<p>When its OK take out of Maintenance mode and you should be good to go.</p>
]]></content:encoded>
			<wfw:commentRss>http://jrudd.org/2009/06/moodle-structure-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Renaming Novell user accounts</title>
		<link>http://jrudd.org/2008/12/renaming-novell-user-accounts/</link>
		<comments>http://jrudd.org/2008/12/renaming-novell-user-accounts/#comments</comments>
		<pubDate>Sun, 28 Dec 2008 01:24:08 +0000</pubDate>
		<dc:creator>James Rudd</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Moodle]]></category>
		<category><![CDATA[Novell]]></category>
		<category><![CDATA[Utilities]]></category>
		<category><![CDATA[account]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[eDirectory]]></category>
		<category><![CDATA[home directories]]></category>
		<category><![CDATA[login names]]></category>
		<category><![CDATA[novell edirectory]]></category>
		<category><![CDATA[Password]]></category>
		<category><![CDATA[username]]></category>
		<category><![CDATA[usernames]]></category>

		<guid isPermaLink="false">http://jrudd.org/wordpress/?p=43</guid>
		<description><![CDATA[Recently we had to change the login names for around 1200 students. As part of this rename we needed to change their Novell eDirectory account and home directory. We also needed to ensure linked systems such as an LDAP authenticated Moodle site and an IDM linked Active Directory (AD) domain were properly updated. To perform <a href='http://jrudd.org/2008/12/renaming-novell-user-accounts/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Recently we had to change the login names for around 1200 students.</p>
<p>As part of this rename we needed to change their Novell eDirectory account and home directory. We also needed to ensure linked systems such as an LDAP authenticated <a href="http://moodle.org/" target="_blank">Moodle </a>site and an IDM linked Active Directory (AD) domain were properly updated.</p>
<p>To perform the user account and folder rename we used <a href="http://www.hbware.com/content/view/61/12/" target="_blank">Mass User</a> from <a href="http://www.hbware.com/" target="_blank">HBWare</a>. This is a great program we already used for creating and managing home directories and quotas. There was a small bug in the rename area, but it was quickly fixed when brought to Hans’ attention.<br />
Note: Before beginning you need to have a list of the old usernames and the new usernames.  A simple two column Excel or CSV file would be fine.</p>
<h2>Novell</h2>
<p>Create Mapping File: The mapping file is used by Mass User to know what to rename the existing username to.</p>
<p>Use <a href="http://www.novell.com/coolsolutions/tools/13908.html">NDS Report</a> ( http://www.novell.com/coolsolutions/tools/13908.html ) to create a list of all the accounts. You only want the DN and CN fields. Save this as an Excel or CSV file.</p>
<div id="attachment_50" class="wp-caption alignnone" style="width: 310px"><a href="http://jrudd.org/wp-content/uploads/2008/12/1andsrepcontainer.png" rel="lightbox[43]"><img class="size-medium wp-image-50" title="NDS Report: Select Student OU" src="http://jrudd.org/wp-content/uploads/2008/12/1andsrepcontainer-300x251.png" alt="NDS Report: Select Student OU" width="300" height="251" /></a><p class="wp-caption-text">NDS Report: Select Student OU</p></div>
<div id="attachment_51" class="wp-caption alignnone" style="width: 310px"><a href="http://jrudd.org/wp-content/uploads/2008/12/1bndsrepuser.png" rel="lightbox[43]"><img class="size-medium wp-image-51" title="NDS Report: Choose only CN" src="http://jrudd.org/wp-content/uploads/2008/12/1bndsrepuser-300x249.png" alt="NDS Report: Choose only CN" width="300" height="249" /></a><p class="wp-caption-text">NDS Report: Choose only CN</p></div>
<p>Create a new MS Access file and import the account list<br />
Import the text / excel file that lists the old and new account names.<br />
You now need to create a query that maps the cn to the old account name, and then use this to generate a list of the full old dn and the new account name.</p>
<div id="attachment_53" class="wp-caption alignnone" style="width: 310px"><a href="http://jrudd.org/wp-content/uploads/2008/12/2aaccessmapping.png" rel="lightbox[43]"><img class="size-medium wp-image-53" title="Access: Mapping Query" src="http://jrudd.org/wp-content/uploads/2008/12/2aaccessmapping-300x274.png" alt="Access: Mapping Query" width="300" height="274" /></a><p class="wp-caption-text">Access: Mapping Query</p></div>
<div id="attachment_54" class="wp-caption alignnone" style="width: 310px"><a href="http://jrudd.org/wp-content/uploads/2008/12/2baccessdata.png" rel="lightbox[43]"><img class="size-medium wp-image-54" title="Access: Query Results" src="http://jrudd.org/wp-content/uploads/2008/12/2baccessdata-300x206.png" alt="Access: Query Results" width="300" height="206" /></a><p class="wp-caption-text">Access: Query Results</p></div>
<p>You can then export this as a text file.</p>
<div id="attachment_55" class="wp-caption alignnone" style="width: 310px"><a href="http://jrudd.org/wp-content/uploads/2008/12/2caccessexport1.png" rel="lightbox[43]"><img class="size-medium wp-image-55" title="Access: Export as Text file" src="http://jrudd.org/wp-content/uploads/2008/12/2caccessexport1-300x195.png" alt="Access: Export as text file" width="300" height="195" /></a><p class="wp-caption-text">Access: Export as text file</p></div>
<div id="attachment_56" class="wp-caption alignnone" style="width: 310px"><a href="http://jrudd.org/wp-content/uploads/2008/12/2daccessexport2.png" rel="lightbox[43]"><img class="size-medium wp-image-56" title="Access: Export Delimited" src="http://jrudd.org/wp-content/uploads/2008/12/2daccessexport2-300x212.png" alt="Access: Export Delimited" width="300" height="212" /></a><p class="wp-caption-text">Access: Export Delimited</p></div>
<p>You will need to set the field separate as ‘=’ and set the test qualifier to none.</p>
<div id="attachment_57" class="wp-caption alignnone" style="width: 310px"><a href="http://jrudd.org/wp-content/uploads/2008/12/2eaccessexport3.png" rel="lightbox[43]"><img class="size-medium wp-image-57" title="Access: Export = Delimiter and no Text Qualifier" src="http://jrudd.org/wp-content/uploads/2008/12/2eaccessexport3-300x213.png" alt="Access: = as Delimiter and no Text Qualifier" width="300" height="213" /></a><p class="wp-caption-text">Access: = as Delimiter and no Text Qualifier</p></div>
<p>You should end up with each line having format:<br />
OLDNAME.OU.C=NEWNAME<br />
Once the mapping file is generated you can apply it either to individual OUs (e.g. year groups), or to the entire Users container. I would recommend applying to small containers initially to allow checking for errors. After verifying all renames were performed correctly you can then apply the rename to your entire users’ container.</p>
<div id="attachment_58" class="wp-caption alignnone" style="width: 310px"><a href="http://jrudd.org/wp-content/uploads/2008/12/massuserrename.png" rel="lightbox[43]"><img class="size-medium wp-image-58" title="Mass User: Rename" src="http://jrudd.org/wp-content/uploads/2008/12/massuserrename-300x234.png" alt="Mass User: Rename" width="300" height="234" /></a><p class="wp-caption-text">Mass User: Rename</p></div>
<h2>IDM 3.0 – Active Directory</h2>
<p>Before doing the mass rename we did some simple tests of renaming eDirectory accounts to see how they replicated to Active Directory. We determined that the individual renames were successfully propagated through IDM to automatically change the pre-2000 and logon name fields to match the new eDirectory account.<br />
When performing the mass rename of accounts, AD was checked after doing each OU to check propagation was successful. We experienced no problems with IDM and all accounts were successfully synchronised with Active Directory.</p>
<h2>Moodle</h2>
<p>For Moodle we wished for users to retain their own accounts including all their settings and course information.  To do this the username stored in the Moodle Database (DB) would need to be changed to the new username.<br />
Before making changes to Moodle I recommend putting the site in admin mode and temporarily disabling your LDAP authentication. I only put the site in Admin mode and then had problems during migration as some students had attempted to logon after I had renamed the eDirectory accounts, but before migrating Moodle accounts. This created new user accounts in Moodle that prevented the update queries running due to duplicate key name problems (ie the old account would not rename to new one if one has already been created with the new name)<br />
First you need to import your list of old and new account names into the database. If you already have it in a separate DB on your Moodle server you can use that, otherwise it is best to just to create a new table in the Moodle DB.<br />
I used this query to check the mapping fields. You will need to adjust the fields and collation types for your own setup.<br />
I use the IDNumber field to store the full DN, if you use a different field you will need to adjust this.</p>
<h3>Validation:</h3>
<p><code># Shows the current username, the new username and the new IDNumber field for validation check.<br />
SELECT mdl.`username` , ern.`StudentId` , replace( `idnumber` , mdl.`username` , ern.`StudentId`<br />
COLLATE latin1_swedish_ci )<br />
FROM moodle.`mdl_user` mdl, sbhsdata.`oasisStudentIdMap` ern<br />
WHERE mdl.`username`<br />
COLLATE latin1_general_ci = ern.`OldStudentId`</code></p>
<h3>Update:</h3>
<p><code># Replaces the IDNumber field with the new username.<br />
UPDATE moodle.`mdl_user` mdl, sbhsdata.`oasisStudentIdMap` ern<br />
SET  `idnumber` = replace( `idnumber` , mdl.`username` , ern.`StudentId` COLLATE latin1_swedish_ci )<br />
WHERE mdl.`username`<br />
COLLATE latin1_general_ci = ern.`OldStudentId`</code></p>
<p><code># Replaces the mdl_user field with the new username.<br />
UPDATE `mdl_user` mdl, `rename` ren<br />
SET  mdl.`username` = ren.`newname`<br />
WHERE mdl.`username`= ren.`oldname`</code><br />
Note: As can be seen by the queries, during the migration I did two separate updates, one to update the IDNumber field and another to update the mdl_user field. When I had completed migration I realised I had only needed to update the mdl_user field as Moodle would automatically update the value in IDNumber at next log on.</p>
<h2>Round Up</h2>
<p>The migration to the new accounts went well with no problems from student passwords or accounts, although we had a few instances of students using the old username instead of the new one.</p>
<p>Since performing the change we have also implemented a <a href="http://www.papercut.com/products/ng/">Papercut</a> system which would have required the additional step of <a href="http://www.papercut.com/kb/Main/RenameUserAccounts">renaming</a> all of its accounts to ensure student balances were carried across.</p>
]]></content:encoded>
			<wfw:commentRss>http://jrudd.org/2008/12/renaming-novell-user-accounts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some useful Moodle SQL Queries</title>
		<link>http://jrudd.org/2007/12/some-useful-moodle-sql-queries/</link>
		<comments>http://jrudd.org/2007/12/some-useful-moodle-sql-queries/#comments</comments>
		<pubDate>Fri, 14 Dec 2007 14:28:55 +0000</pubDate>
		<dc:creator>James Rudd</dc:creator>
				<category><![CDATA[Moodle]]></category>
		<category><![CDATA[Bulk Operations]]></category>
		<category><![CDATA[Delete]]></category>
		<category><![CDATA[Roles]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Statistics]]></category>

		<guid isPermaLink="false">http://jrudd.org/wordpress/2007/12/15/some-useful-moodle-sql-queries/</guid>
		<description><![CDATA[I occasionally use the following SQL statements to clean-up our Moodle system and identify old courses. I recommend backing up your database before using any and knowing enough SQL to understand what they are doing before running them. I usually use phpMyAdmin for execution and export, but use what ever works best for you. Find <a href='http://jrudd.org/2007/12/some-useful-moodle-sql-queries/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>I occasionally use the following SQL statements to clean-up our Moodle system and identify old courses. I recommend backing up your database before using any and knowing enough SQL to understand what they are doing before running them. I usually use <a href="http://www.phpmyadmin.net/" target="_blank">phpMyAdmin</a> for execution and export, but use what ever works best for you.</p>
<h2>Find Empty Moodle Courses</h2>
<p>If you use an auto-enrolment module you will often find you have lots of courses created that are never used. We have used the LDAP and Database enrolment before and both have created large numbers of courses. Some are not used by teachers,others are just used as child courses for year wide meta courses. Either way at the end of the year you may wish to identify any class that hasn&#8217;t been used. (Perhaps to delete using the <a href="http://jrudd.org//2007/12/14/moodle-bulk-deletion-operations/" target="_blank">Bulk Deletion</a> options).</p>
<h3>No Content</h3>
<p>Following SQL code I&#8217;ve written will generate a list containing a sum of most of the resources and activities a course has, allowing you to quickly identify those with little to no content. It bases this count on having no labels, resources, assignments, etc.</p>
<pre class="brush: sql; title: ; notranslate">
SELECT m.id, m.`shortname` , m.fullname, cCount.totalcount
FROM mdl_course m
LEFT JOIN (

SELECT courseCount.course, sum( courseCount.subcount ) AS totalcount
FROM (

SELECT course, count( * ) AS subcount
FROM mdl_resource
GROUP BY course
UNION ALL SELECT course, count( * ) AS subcount
FROM mdl_quiz
GROUP BY course
UNION ALL SELECT course, count( * ) AS subcount
FROM mdl_assignment
GROUP BY course
UNION ALL SELECT course, count( * ) AS subcount
FROM mdl_survey
GROUP BY course
UNION ALL SELECT course, count( * ) AS subcount
FROM mdl_label
GROUP BY course
UNION ALL SELECT course, count( * ) AS subcount
FROM mdl_glossary
GROUP BY course
UNION ALL SELECT course, count( * ) AS subcount
FROM mdl_homework
GROUP BY course
UNION ALL SELECT course, count( * ) AS subcount
FROM mdl_wiki
GROUP BY course
) AS courseCount
GROUP BY courseCount.course
) AS cCount ON cCount.course = m.id
</pre>
<p>You may need to edit above code if you do not have an activity installed (eg homework).</p>
<h3>No Users</h3>
<p>The following code generates a list of all your courses together with how many students are enrolled in each. Useful to find out if you have any courses with no one enrolled.</p>
<pre class="brush: sql; title: ; notranslate">

SELECT cr.shortname, cr.fullname, count( ra.id ) AS enrolled
FROM `mdl_course` cr
JOIN `mdl_context` ct ON ( ct.instanceid = cr.id )
LEFT JOIN `mdl_role_assignments` ra ON ( ra.contextid = ct.id )
WHERE ct.contextlevel =50
GROUP BY cr.shortname, cr.fullname
ORDER BY `enrolled` ASC
</pre>
<p>You can export either of the above queries into Excel and manipulate it from there. Order by the counts then copy the short names&#8217; of courses to delete, paste into a text file and upload to the <a href="http://jrudd.org//2007/12/14/moodle-bulk-deletion-operations/" target="_blank">Bulk Course Deletion</a> addon. Goodbye excess courses.</p>
<h2>Data Cleanup: Roles without Users</h2>
<p>Sometimes when a user gets deleted Moodle doesn&#8217;t clean up after it self as well as it should. The following code will list all the rows in your <span class="syntax"><span class="syntax_quote syntax_quote_backtick">role assignments </span></span>table that no longer match to a user:</p>
<pre class="brush: sql; title: ; notranslate">SELECT *
FROM `mdl_role_assignments`
WHERE `userid` NOT
IN (
SELECT id
FROM mdl_user
)
</pre>
<p>If you wish to the delete all of these just run following. As always make sure you have a good backup before deleting anything from DB.</p>
<pre class="brush: sql; title: ; notranslate">DELETE
FROM `mdl_role_assignments`
WHERE `userid` NOT
IN (
SELECT id
FROM mdl_user
)
</pre>
]]></content:encoded>
			<wfw:commentRss>http://jrudd.org/2007/12/some-useful-moodle-sql-queries/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Moodle: Bulk Deletion Operations</title>
		<link>http://jrudd.org/2007/12/moodle-bulk-deletion-operations/</link>
		<comments>http://jrudd.org/2007/12/moodle-bulk-deletion-operations/#comments</comments>
		<pubDate>Fri, 14 Dec 2007 00:30:32 +0000</pubDate>
		<dc:creator>James Rudd</dc:creator>
				<category><![CDATA[Moodle]]></category>
		<category><![CDATA[Bulk Operations]]></category>
		<category><![CDATA[Delete]]></category>

		<guid isPermaLink="false">http://jrudd.org/wordpress/2007/12/14/moodle-bulk-deletion-operations/</guid>
		<description><![CDATA[At the recent CC day some people asked about bulk deletion of users and courses. Moodle 1.9 beta now supports bulk user operations, such as deleting, sending messages or confirming the account. You can use a filter to easily select the users you want. The Filter allows selection based on everything from name, last access, <a href='http://jrudd.org/2007/12/moodle-bulk-deletion-operations/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>At the recent CC day some people asked about bulk deletion of users and courses.<br />
<a href="http://docs.moodle.org/en/Release_Notes#Moodle_1.9_Beta" target="_blank">Moodle 1.9 beta</a> now supports bulk user operations, such as deleting, sending messages or confirming the account. You can use a filter to easily select the users you want. The Filter allows selection based on everything from name, last access, role, authentication system (manual, LDAP, etc.) to email as well as many other options. Hopefully it will be upgraded in the future to allow filtering by other user attributes such as ID number, Departments, Institution or the new attributes that can be added to users. For Bulk Deletion of courses there is a <a href="http://moodle.org/file.php/5/moddata/forum/33/367033/delete_course_for_1.7-1.8---v1.zip" target="_blank">php</a> file posted by <a href="http://moodle.org/mod/forum/discuss.php?d=82932#p367033" target="_blank">Jeff Church</a> which you can place somewhere in your Moodle installation and run manually to delete your courses. It takes a text file of the courses’ short names to delete, then confirms what to remove before deleting them all. I ran it recently to remove 323 courses from 2005-2006 and it removed them with no problems.</p>
<p>For some useful SQL queries that can be used to identify unused courses please see <a href="http://jrudd.org//2007/12/15/some-useful-moodle-sql-queries/">Some useful Moodle SQL Queries.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jrudd.org/2007/12/moodle-bulk-deletion-operations/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CC Day T4 2007: Installing and Using Moodle</title>
		<link>http://jrudd.org/2007/12/cc-day-t4-2007-installing-and-using-moodle/</link>
		<comments>http://jrudd.org/2007/12/cc-day-t4-2007-installing-and-using-moodle/#comments</comments>
		<pubDate>Wed, 12 Dec 2007 05:58:16 +0000</pubDate>
		<dc:creator>James Rudd</dc:creator>
				<category><![CDATA[Moodle]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Delete]]></category>
		<category><![CDATA[DET]]></category>
		<category><![CDATA[Email]]></category>
		<category><![CDATA[Gallery]]></category>
		<category><![CDATA[Ganderton]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[Novell]]></category>
		<category><![CDATA[Presentation]]></category>
		<category><![CDATA[School]]></category>
		<category><![CDATA[SMTP]]></category>

		<guid isPermaLink="false">http://jrudd.org/wordpress/2007/12/12/cc-day-t4-2007-installing-and-using-moodle/</guid>
		<description><![CDATA[This was very similar to a previous presentation given as part of the Tech KNOW Tour. However the Using Moodle presentation has some slight additions from Paul for a more technical audience and the spoken part of my presentation concentrated on a more technical side. Some additional notes: To use the DET mail server you <a href='http://jrudd.org/2007/12/cc-day-t4-2007-installing-and-using-moodle/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>This was very similar to a previous presentation given as part of the <a href="http://jrudd.org//2007/11/17/tech-know-tour-07-moodle/" target="_blank">Tech KNOW Tour</a>. However the Using Moodle presentation has some slight additions from Paul for a more technical audience and the spoken part of my presentation concentrated on a more technical side.</p>
<h3>Some additional notes:</h3>
<p>To use the DET mail server you can either add <em>mail.det.nsw.edu.au</em> to the mail section of your php.ini file or add it to the<br />
Admin -&gt; Server -&gt; Email: SMTP Hosts section.<br />
If you wish to restrict to sending to DET emails you can add following to the <em>Allowed email domains</em> : &#8220;<em>education.nsw.gov.au det.nsw.edu.au</em>&#8220;.<br />
<ins datetime="2007-12-16T20:24:28">Make sure to test the mail server settings before adding any restrictions to domains.</ins></p>
<p>If using Novell or Mac OS you will need to use a different LDAP browser as <a href="http://jrudd.org//2007/11/20/ad-explorer/">AD Explorer</a> only works with Active Directory.<br />
For Novell I usually use the free Windows program <a href="http://www.ldapbrowser.com/download.htm" target="_blank">Softerra LDAP Browser</a> (<a href="http://www.ldapbrowser.com/download.htm" target="_blank">MSI</a>).<br />
There are a few Java based LDAP browsers that should work with Mac. A good Java based LDAP browser is <a href="http://www.jxplorer.org/" target="_blank">JXplorer</a> this should work on Mac, Windows and Linux. For some more info on Mac and LDAP look at this article on <a href="http://www.macdevcenter.com/pub/a/mac/2004/05/25/ldap.html" target="_blank">LDAP in Mac OS X Server</a> from the Mac Dev Center, it is not fully applicable as it also has home drive mapping but it does contain some useful info.</p>
<p>Paul Ganderton has made his <a href="http://www.sydneyboyshigh.com/intranet/moodle/course/view.php?id=822" target="_blank">Geography HSC</a> site avaliable for guests. You can also view some of the other course on our Moodle site. Look for this logo <img src="http://www.sydneyboyshigh.com/intranet/moodle/pix/i/user.gif" alt="Guest Access" width="16" height="16" />which means guest access is allowed.</p>
<p><strong>Bulk Operations:</strong> Some people asked about bulk deletion of users and courses.<br />
This section has been moved to <a href="http://jrudd.org//2007/12/14/moodle-bulk-deletion-operations/" target="_blank">Moodle: Bulk Deletion Operations.</a></p>
<h3>Presentations:</h3>
<ul>
<li>Note: There is a file embedded within this post, please visit this post to download the file.</li>
<li>Note: There is a file embedded within this post, please visit this post to download the file.</li>
<li>Note: There is a file embedded within this post, please visit this post to download the file.</li>
<li>Note: There is a file embedded within this post, please visit this post to download the file.</li>
<li>Note: There is a file embedded within this post, please visit this post to download the file.</li>
</ul>
<h3>Plugins used by Moodle</h3>
<p>Some of the items shown during talk are produced by plugins to Moodle. Below is a list of some of our favourites:</p>
<ul>
<li><a href="http://moodle.org/mod/data/view.php?d=13&amp;rid=319" target="_blank">Book</a>: Allows structuring resource pages with chapters and pages.</li>
<li><a href="http://jrudd.org//2007/11/30/moodle-and-gallery-212/">Gallery</a>: Shows slide shows and generates thumbnails of images. You can upload a zip file containing an entire folder structure of pictures, and auto-generate albums and sub-albums from it.</li>
<li><a href="http://moodle.org/mod/data/view.php?d=13&amp;rid=926">Course Menu</a>: Creates a Tree Structure as a block on side of page to assist navigation.</li>
<li>Note: There is a file embedded within this post, please visit this post to download the file. On the main SBHS Moodle page there is also a Library block that sends search queries to our Sentral library page. This will need to be customised by schools to point to their Sentral system or the new DET <em>My Library</em> system (only accessible inside DET WAN). Just modify the block_library.php file to point to your Library search page. To install place the library directory in your Moodle blocks folder.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://jrudd.org/2007/12/cc-day-t4-2007-installing-and-using-moodle/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Moodle and Gallery 2.1.2</title>
		<link>http://jrudd.org/2007/11/moodle-and-gallery-212/</link>
		<comments>http://jrudd.org/2007/11/moodle-and-gallery-212/#comments</comments>
		<pubDate>Thu, 29 Nov 2007 22:36:18 +0000</pubDate>
		<dc:creator>James Rudd</dc:creator>
				<category><![CDATA[Moodle]]></category>
		<category><![CDATA[Gallery]]></category>
		<category><![CDATA[Modules]]></category>
		<category><![CDATA[Redirection]]></category>

		<guid isPermaLink="false">http://jrudd.org/wordpress/2007/11/30/moodle-and-gallery-212/</guid>
		<description><![CDATA[The Gallery module for Moodle is a very useful addon that allows you to upload images and view them in an easy accessible format. You can upload a directory structure in a zip file and have it recreate that structure as albums on the server. It can auto-generate thumbnails and supports commenting and ratings. The <a href='http://jrudd.org/2007/11/moodle-and-gallery-212/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>The Gallery module for Moodle is a very useful addon that allows you to upload images and view them in an easy accessible format.</p>
<p>You can upload a directory structure in a zip file and have it recreate that structure as albums on the server. It can auto-generate thumbnails and supports commenting and ratings.</p>
<p>The two most common problems with this module are users don&#8217;t read the README text file specifying that it only supports <a href="http://codex.gallery2.org/index.php?title=Gallery2:Download&amp;oldid=16582" title="Gallery 2.1.2" target="_blank">Gallery 2.1.2</a> (I missed this first time as well) and that the latest module available from <a href="http://moodle.org/" target="_blank">Moodle.org</a> has a bug that causes an endless redirection loop.</p>
<p>I have written a fix for the view.php file in the Gallery mod directory that fixes this problem.</p>
<p>The problem causes a continuous redirection and Firefox reports:</p>
<ul>
<li><code>Redirection limit for this URL exceeded.</code></li>
<li><code>Firefox has detected that the server is redirecting the request for this address in a way that will never complete.</code></li>
</ul>
<p>Useful Links:</p>
<ul>
<li><a href="http://jrudd.org/wp-content/uploads/2007/11/view.zip" title="Gallery Module fix">Fix for Gallery Module view.php</a></li>
<li><a href="http://codex.gallery2.org/index.php?title=Gallery2:Download&amp;oldid=16582" title="Gallery 2.1.2" target="_blank">Gallery 2.1.2</a></li>
<li><a href="http://moodle.org/mod/data/view.php?d=13&amp;rid=89" target="_blank">Gallery2 Moodle Module for 2.1.2</a></li>
<li><a href="http://moodle.org/mod/forum/discuss.php?d=42459#p327364" target="_blank">Original discussion thread on problem </a></li>
</ul>
<p><a href="http://moodle.org/user/view.php?id=104559&amp;course=5">Douglas Dixon</a> has also been working on a module update to support Gallery2 2.2.3 but it is still in development.<br />
<a href="http://moodle.org/mod/forum/discuss.php?d=82108" target="_blank">http://moodle.org/mod/forum/discuss.php?d=82108 </a></p>
]]></content:encoded>
			<wfw:commentRss>http://jrudd.org/2007/11/moodle-and-gallery-212/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Tech Know Tour 07 &#8211; Moodle</title>
		<link>http://jrudd.org/2007/11/tech-know-tour-07-moodle/</link>
		<comments>http://jrudd.org/2007/11/tech-know-tour-07-moodle/#comments</comments>
		<pubDate>Sat, 17 Nov 2007 06:45:16 +0000</pubDate>
		<dc:creator>James Rudd</dc:creator>
				<category><![CDATA[Moodle]]></category>
		<category><![CDATA[Ganderton]]></category>
		<category><![CDATA[Tech Know Tour]]></category>

		<guid isPermaLink="false">http://jrudd.org/wordpress/2007/11/17/tech-know-tour-07-moodle/</guid>
		<description><![CDATA[On Wed 14th November 2007, Robert Devlin, Dr. Paul Ganderton and James Rudd presented a talk at SBHS as part of the DET Tech Know Tour. Below are copies of documents from that talk Some other useful links: Teacher Manual http://download.moodle.org/docs/teacher-manual.pdf Using Moodle Book http://docs.moodle.org/en/Using_Moodle_book Updated Moodle Guides (Look on left side for English): http://moodle.tokem.fi/ <a href='http://jrudd.org/2007/11/tech-know-tour-07-moodle/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>On Wed 14th November 2007, Robert Devlin, <a href="http://www.ecogeog.com/" title="Eco Geo" target="_blank">Dr. Paul Ganderton</a> and James Rudd presented a talk at SBHS as part of the DET Tech Know Tour.</p>
<p>Below are copies of documents from that talk</p>
<ul>
<li>Note: There is a file embedded within this post, please visit this post to download the file.</li>
<li>Note: There is a file embedded within this post, please visit this post to download the file.</li>
<li>Note: There is a file embedded within this post, please visit this post to download the file.</li>
</ul>
<p>Some other useful links:</p>
<p>Teacher Manual<br />
<a href="http://download.moodle.org/docs/teacher-manual.pdf">http://download.moodle.org/docs/teacher-manual.pdf</a></p>
<p>Using Moodle Book<br />
<a href="http://docs.moodle.org/en/Using_Moodle_book">http://docs.moodle.org/en/Using_Moodle_book</a></p>
<p>Updated Moodle Guides (Look on left side for English):<br />
<a href="http://moodle.tokem.fi/">http://moodle.tokem.fi/</a></p>
<p>AD Explorer:<br />
<a href="http://jrudd.org//2007/11/20/ad-explorer/" target="_blank">http://jrudd.org//2007/11/20/ad-explorer/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jrudd.org/2007/11/tech-know-tour-07-moodle/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

