Version: 1.00, by TWTCommish
Developer Last Online: Dec 2022
Version: 2.2.x
Rating:
Released: 06-10-2002
Last Update: Never
Installs: 213
No support by the author.
vBQuiz 1.0
NOTE: all functionality-impairing bugs have been fixed. The attached files should work well on just about any PHP installation.
What's it do?
It allows you to setup a quiz center on your boards quickly and easily. This quiz center is FULLY templated, integrated with vBulletin, and has an advanced Admin script for managing the quizzes, categories, and questions. Here's an example: Movie Forums - Quizzes
A few of its features...
Tracks all results and displays high scores.
Upon completion, users are given a total quiz breakdown of the quiz, showing them how they fared on each question, and, on the ones they missed, showing them the correct answer.
Upon completion, users are shown a graphical bar representing their score, and a graphical bar representing the average score for the quiz. They are also emailed their information.
Main quiz page calculates and displays the easiest and most difficult quizzes automatically.
Quizzes can be split up into categories.
Quizzes can be approved or disapproved easily to add/remove them from public view/use.
Full integration with the Who's Online? page...IE: "Viewing Quizzes" or "Viewing So and So Quiz" and even "Taking So and So Quiz"
Admin Abilities:
Disallow multiple quiz takings.
Toggle to disinclude quiz results coming from the author of the quiz.
Change the display order of the answers to each question.
Add multiple questions and answers at once (no limit).
That's it! Don't forget, however, to read ALL of the instructions.txt file in the enclosed vbquiz.zip file. It'll help guard against some common bugs.
Files Enclosed (in vbquiz.zip)
- instructions.txt (read it!)
- quiz.php (upload to main forum dir)
- admin_quiz.php (upload to admin dir)
- install_quiz.php (upload to admin dir and then run)
Enjoy!
Also: a HUGE, HUGE, HUGE thanks to GamerForums for beta testing this hack for me. His help was completely invaluable and surely saved me a lot of work in the long run. Thanks!
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Very very impressive, this is such a cool hack. I think we know who wins this months "hack of the month." Now I wont have to post polls for quizzes anymore ^_^
Great job!
Here are some pic's for those who are too lazy to register:
Originally posted by TWTCommish Lionel: I'm not sure what you mean. The templates are all built to use your header template contents automatically.
in some templates I replaced $header with a different $header, or I simply paste the full html code instead of $header. Like that I am able to make use of different banners in different sections.
ok i used the first install script, default templates, no other styles, the quiz templates are there, Linux / PHP v4.1.2, MySQL v3.23.45, 2.2.6 vb and the quiz.php is a blank page
Fatal error: Unsupported operand types in /usr/local/psa/home/vhosts/new-dimensionz.com/httpdocs/messageboard/quiz.php on line 350
error when i click the take this quiz button as well. I read through this thread and saw that the issue is trying to be fixed. These are my server settings
bandersen: I'm not sure if this is exactly compatible with a version of PHP that early or not. You might have to ditch all instances of the $HTTP_POST_VARS[] array. [/B]
Hi - I was using PHP 4.0!
I also had the image error - but included the code below in the quiz description and the image showed.
Originally posted by Lionel TWT, can a moderator add a quiz?
Yes he can if you copy the admin_quiz file into the mod directory and make changes to the index.php also in that directory...I have it working that way. Now if we can only solve the operand error. Maybe FireFly has some ideas?
Sorry to say, sir, I just got through adding a quiz and all works great until I try to take it..and guess what.
Code:
Fatal error: Unsupported operand types in /home/virtual/site3/fst/var/www/html/forum/quiz.php on line 350
I'm using Linux / PHP v4.0.6 Safe Mode and MySQL v3.23.36
if that helps at all.
Quote:
Originally posted by TWTCommish I don't understand that last part...the 350 error is seperate. The Admin CP submission doesn't fix that.
To see what version of PHP you're running, create a file with this inside, and run it:
PHP Code:
<?php
phpinfo();
?>
As for the images: you probably forget to create the dir and chmod it properly. Again, it's in the instructions.txt file. If you've chmoded it 777 and it STILL doesn't work, then it's likely a server issue.