Patches item #1066645, was opened at 2004-11-15 13:01
Message generated for change (Comment added) made by salamandyr
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=600782&aid=1066645&group_id=92482
Category: None
Group: CVS
Status: Open
Resolution: None
Priority: 5
Submitted By: Peter Cruickshank (krabu)
Assigned to: Nobody/Anonymous (nobody)
Summary: New module: Simple Quick Quiz
Initial Comment:
New module that provides basic quiz functionality -
derived from the FAQ code.
Features/limitations:
A cookie is set to prevent users retaking the quiz.
conf.ini allows current quiz-id to be changed,
unblocking cookies if wished
Quiz questions, answers and commentary are all stored
in a simple flat table
Questions can be edited, deleted and inserted at any
time - but there is no concept of preparing a new quiz
while the old one is in operation.
No response stats are kept.
The generated code has CSS hooks - but you'll have to
do your own styling
Function generateRadioButtons() was added to SGL_Output
to support the module's requirements. Attached as a
separate file.
Hence the name: Simple Quick Quiz
Obvious extensions:
- store and view stats on answers
- allow questions to be grouped together into different
quizes
----------------------------------------------------------------------
Comment By: Andrew Hill (salamandyr)
Date: 2004-11-28 21:54
Message:
Logged In: YES
user_id=79021
well, it turns out that the modules directory needed to have more open
permissions. had drwxr-xr-x, wasn't open enough - chmodding it to 777
worked. but now the quiz.php doesn't show up at all - so i have to have
the wrong things in my quiz.php...
----------------------------------------------------------------------
Comment By: Andrew Hill (salamandyr)
Date: 2004-11-28 21:13
Message:
Logged In: YES
user_id=79021
hello Peter
trying to install the Quick Quiz - there wasn't any file to go into www, so
i created a quiz.php like this:
<?php
// initialise
require_once '../init.php';
require_once SGL_CORE_DIR . '/SGL_Controller.php';
require_once SGL_MOD_DIR . '/quiz/classes/QuizMgr.php';
error_log('############### NEW PAGE RUN - QUIZ
###############');
$process = & new SGL_Controller();
$process->page = & new QuizMgr();
$process->go(new SGL_HTTP_Request());
?>
but this results in an error - all permissions are 777 and file paths are
correct... any help would be greatly appreciated:
Fatal error: main(): Failed opening required '/home/psycho/public_html/
ndc/modules/quiz/classes/QuizMgr.php' (include_path='.:/home/psycho/
public_html/ndc/lib/pear') in /home/psycho/public_html/ndc/www/
quiz.php on line 5
----------------------------------------------------------------------
Comment By: Peter Cruickshank (krabu)
Date: 2004-11-15 13:07
Message:
Logged In: YES
user_id=279604
Forgot to say. The following new permissions are required:
For admin:
quizmgr_add, quizmgr_edit, quizmgr_insert, quizmgr_list,
quizmgr_reorder, quizmgr_update
To take the quiz:
quiz_list, quiz_submit
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=600782&aid=1066645&group_id=92482
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
|