Changes between Version 7 and Version 8 of BoltTutorial


Ignore:
Timestamp:
Feb 1, 2008, 1:19:43 PM (17 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BoltTutorial

    v7 v8  
    1414Edit httpd.conf as directed (you'll need root access to do this).
    1515Let's say your server's domain name is "a.b.c".
     16
     17Visit http://a.b.c/test/create_account.php and create an account for yourself.
    1618
    1719Visit http://a.b.c/test_ops/bolt_ops.php,
     
    4547    name('course'),
    4648    lesson(
    47         name('Lesson 1'),
     49        name('lesson 1'),
    4850        filename('lesson1.php')
    4951    ),
    5052    lesson(
    51         name('Lesson 2'),
     53        name('lesson 2'),
    5254        filename('lesson2.html')
    5355    )
     
    6567You'll see:
    6668
    67 
    6869[[Image(lesson1.png, nolink)]]
    6970
     
    7677
    7778Now suppose that instead of reading the lesson,
    78 the student goes away (for an hour or a month) and returns.
     79you go away (for an hour or a month) and return.
    7980Simulate this by visiting http://a.b.c.test/bolt.php.
    8081You'll see
     
    8384
    8485Notice that Bolt "remembers" where you are in the course
    85 (this is stored in the database; it will work even if you
    86 go to a different computer).
    87 If you click "Resume" you'll see the second lesson again.
     86(this is stored in the database;
     87it will work even if you go to a different computer).
     88
     89Now click "Resume", and you'll see the second lesson again.
    8890Click on Next.
    8991You'll see:
     
    98100
    99101Bolt has recorded your course interactions and their timing,
    100 in its database.
    101 We'll return to this later.
     102in its database; this is used for course analytics (see below).
    102103
    103104== Exercises ==
    104105
     106Now let's add an exercise.
     107Create a file "exercise1.php":
     108{{{
     109<?php
     110echo "Conifers are so named because:";
     111bolt_exclusive_choice(
     112    array(
     113        'They carry their seeds in cones',
     114        'They are cone-shaped',
     115        'They originated in the Coniceous era',
     116    )
     117);
     118?>
     119}}}
     120
     121and edit course_doc.php:
     122{{{
     123<?php
     124return sequence(
     125    name('course'),
     126    lesson(
     127        name('lesson 1'),
     128        filename('lesson1.php')
     129    ),
     130    lesson(
     131        name('lesson 2'),
     132        filename('lesson2.html')
     133    ),
     134    exercise(
     135        name('exercise 1');
     136        filename('exercise1.php');
     137    )
     138);
     139?>
     140}}}
     141
     142Start the course from the beginning.
     143When you get to the exercise you'll see
     144
     145[[Image(ex.png, nolink)]]
     146
     147You'll then see either
     148
     149[[Image(right.png, nolink)]]
     150
     151or
     152
     153[[Image(wrong.png, nolink)]]
     154
     155depending on whether you answered the question correctly.