norwich logo imageimage

 

 

WebCT Tips for Designers

PowerPoint can't open XX because part of file is missing

This error message sometimes appears when users open a PowerPoint file containing OfficeArt shapes created in previous versions of Microsoft Office. PowerPoint 2003 uses a more complicated version of OfficeArt and messes with the previously created shapes, possibly causing file corruption even though the original document was not corrupted.

Solution:
Microsoft offers a downloadable Critical Update that fixes this problem. Install it and all other available patches by visiting the Office Update Web site at http://office.microsoft.com/OfficeUpdate/default.aspx and clicking Check For Updates. If a Security Warning box appears asking if you want to install and run Office Update Installation Engine click Yes, wait for the program to install, and make sure Office 2003 Critical Update is selected in the list that appears. Click Start Installation to apply the patch.

Adding Direct Links to WebCT Homepage

Code for direct links on the homepage:

<a href='/_COURSEID_/name_of_file.pdf?'>Name of File</a>

MUST USE SINGLE QUOTES.

How to get rid of "Table of Contents" label in a Content Module

Under Customize the Table of Contents, select Edit/Add upper textblock. Paste the following into the upper textblock and the "Table of Contents" heading will disappear.

<STYLE TYPE="text/css"> B { display: none } </STYLE>

If you like, you can include your own custom heading in the same upper textblock. Just don't use <B>bold</B> tags in your own text, or it won't be visible either.

Finding WebCT Course ID

Here JavaScript is a way to find a WebCT course ID for cases where WebCT won't recognize _COURSEID_

<script type=text/javascript>
var _url = top.location.href;
var _x = _url.indexOf("/SCRIPT/"); var _y = _url.indexOf("/scripts/");
var course_id = _url.substring(_x+8,_y);
</script>

Opening a Quiz Directly from a Link

Below is an example that opens a quiz directly from a link:

var _url = top.location.href;
var _x = _url.indexOf("/SCRIPT/");
var _y = _url.indexOf("/scripts/");
var course_id = _url.substring(_x+8,_y);
qwin =
window.open("/SCRIPT/"+course_id+"/scripts/student/serve_new_quiz?
ACTION=SHOW_QUIZ2&amp;
ARG1=1220440836",'qstart','width=730,height=474,scrollbars=1,resizable=1');

Change the WebCT logo in a course

This script allow you to replace the WebCT logo in the upper left corner of a course with a custom one.

<SCRIPT language="JavaScript1.1">top.logo.document.images[1].src = "_COURSEID_/images/nu_webct.gif"</SCRIPT>

It can be put in a text block on the homepage so that it loads when a student logs in. It can be put either in the Text heading for the text block or the text block text.

Removing Chatrooms in WebCT

The Javascript below placed in the upper-text block on that page will remove extra Chatrooms.

In Designer mode, go to Customize Chat | Edit/Add upper textblock. In the upper text block copy the following code:

<script>
function lessRooms() {
allAnchors = document.body.getElementsByTagName("A");
allAnchors[1].innerText = '';
allAnchors[2].innerText = '';
allAnchors[3].innerText = '';
allAnchors[4].innerText = '';
allAnchors[5].innerText = '';
allCenters = document.body.getElementsByTagName("CENTER");
allCenters[2].innerText = '';
}
</script>
<BODY onLoad="lessRooms()">That did it! JR</BODY>

How to customize: As it stands the script will remove all chat rooms except the first one, whose reference is allAnchors[0]. If you still want to display links to :

room 2 -> comment out //allAnchors[1].innerText = ''; room 3 -> comment out //allAnchors[2].innerText = ''; etc.

The allCenters[2].innerText = ''; part of the script removes the "Note: Conversations in the following rooms will be recorded: Room 1,etc." message.

Replace the "That did it! JR" message with your own message (or empty the string).

Warning: do not add any extra <CENTER></CENTER> tags in the upper or lower text blocks, or if you do, modify my script accordingly.

NU ACT Blogg