Changes between Version 7 and Version 8 of BoltTutorial
- Timestamp:
- Feb 1, 2008, 1:19:43 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BoltTutorial
v7 v8 14 14 Edit httpd.conf as directed (you'll need root access to do this). 15 15 Let's say your server's domain name is "a.b.c". 16 17 Visit http://a.b.c/test/create_account.php and create an account for yourself. 16 18 17 19 Visit http://a.b.c/test_ops/bolt_ops.php, … … 45 47 name('course'), 46 48 lesson( 47 name(' Lesson 1'),49 name('lesson 1'), 48 50 filename('lesson1.php') 49 51 ), 50 52 lesson( 51 name(' Lesson 2'),53 name('lesson 2'), 52 54 filename('lesson2.html') 53 55 ) … … 65 67 You'll see: 66 68 67 68 69 [[Image(lesson1.png, nolink)]] 69 70 … … 76 77 77 78 Now suppose that instead of reading the lesson, 78 the student goes away (for an hour or a month) and returns.79 you go away (for an hour or a month) and return. 79 80 Simulate this by visiting http://a.b.c.test/bolt.php. 80 81 You'll see … … 83 84 84 85 Notice 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; 87 it will work even if you go to a different computer). 88 89 Now click "Resume", and you'll see the second lesson again. 88 90 Click on Next. 89 91 You'll see: … … 98 100 99 101 Bolt has recorded your course interactions and their timing, 100 in its database. 101 We'll return to this later. 102 in its database; this is used for course analytics (see below). 102 103 103 104 == Exercises == 104 105 106 Now let's add an exercise. 107 Create a file "exercise1.php": 108 {{{ 109 <?php 110 echo "Conifers are so named because:"; 111 bolt_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 121 and edit course_doc.php: 122 {{{ 123 <?php 124 return 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 142 Start the course from the beginning. 143 When you get to the exercise you'll see 144 145 [[Image(ex.png, nolink)]] 146 147 You'll then see either 148 149 [[Image(right.png, nolink)]] 150 151 or 152 153 [[Image(wrong.png, nolink)]] 154 155 depending on whether you answered the question correctly.