vBulletin Mods

The Official vBulletin Modifications Site

vBQuiz 1.0
by TWTCommish
11 Jun 2002 15:18

1 Attachment(s)
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).
Here are some screenshots: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)


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! :)

firewars 11 Jun 2002 15:36

Very cool hack :D

TWTCommish 11 Jun 2002 15:38

Thanks. :) Took a LONG time to create. The quiz.php file is made up of almost 700 lines of code, the admin script is even longer, and the installation file was a pain, too. Whew!

Chen 11 Jun 2002 15:39

Nice and impressive, good job. :)
Yoda fought... :p


Your Score: 3 of 3 (99%)

TWTCommish 11 Jun 2002 15:41

Yeah, I know, I noticed that this morning, but after a few weeks, over 40 templates, and 2,000+ lines of code (and TONS of debugging), I'm too tired to bother just now. LOL.

Floris 11 Jun 2002 15:42

Your Score: 3 of 3 (99%)

I think 100% is 100% is my world :)


Chen 11 Jun 2002 15:47

Just took a quick glance at the code, I think it's round() that's causing the problem (shouldn't use it; or at least use ceil()).

TWTCommish 11 Jun 2002 15:48

I'll use ceil() then...when using nothing I often found myself greeted by, well, very, very large decimal numbers. :D

Chen 11 Jun 2002 16:04

I can imagine.

dost 11 Jun 2002 16:39

can't you add a timer? like the user must answer the question in 30 seconds

TWTCommish 11 Jun 2002 16:41

Yeah, I can add a timer. But quite frankly this thing took so friggin' long to write that I just wanted it basically functional. I needed to get all the basics out of the way...easy administration and the like. Maybe in version 2.0.

Lesane 11 Jun 2002 17:04

Great hack 'TWTCommish', well done. I will install this one later. :up:

CloudSlash 11 Jun 2002 17:22

How can a user make a quiz?

zootsuit 11 Jun 2002 17:30

Just installed it and it looks awesome!

Thanks so much!!!

What a wonderful addition...this should definitely be included in vB3...no doubt!!!


by Boofo
11 Jun 2002 17:55

in my online.php, instead of this code:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I have this code:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Since the only addition to that line that you said we should replace it with is the $DB_site, will what I have already work or will it intefere with it? Can $DB_site be used for more than one hack at a time? And will it work at the beginning of that line just fine with this hack :) I just want to be sure, is all. :)

All times are GMT. The time now is 04:23.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.