![]() |
vBQuiz 1.0
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...
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! :) |
Very cool hack :D
|
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!
|
Nice and impressive, good job. :)
Yoda fought... :p But... Quote:
|
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.
|
Your Score: 3 of 3 (99%)
I think 100% is 100% is my world :) VERY COOL HACK |
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()).
|
I'll use ceil() then...when using nothing I often found myself greeted by, well, very, very large decimal numbers. :D
|
I can imagine.
|
can't you add a timer? like the user must answer the question in 30 seconds
|
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.
|
Great hack 'TWTCommish', well done. I will install this one later. :up:
|
How can a user make a quiz?
|
Just installed it and it looks awesome!
Thanks so much!!! What a wonderful addition...this should definitely be included in vB3...no doubt!!! :D |
in my online.php, instead of this code:
Code:
global $thread, $post, $forum, $event, $gotforum, $hideprivateforums, $bbuserinfo, $timeformat, $enableemail, $enablepms, $bbtitle, $usergroupdef, $numberguests; Code:
global $DB_site, $thread, $post, $forum, $event, $gotforum, $hideprivateforums, $bbuserinfo, $timeformat, $enableemail, $enablepms, $bbtitle, $usergroupdef, $numberguests, $onlineloc; |
Cloud: they can't actually add it. Only Admins can add quizzes. If a user writes a quiz for you, however, you can enter their userid to specify them as the author.
zoot: that's not too likely, but I'm very glad you like it. :) I sure had fun writing it. Boofo: that should work just fine. :) |
I just wanted to make sure nothing would interfere with anything else. I finally got things straightened out and I'd like to keep it that way. :) Thanks for the great hack and all of your hard work! :)
|
Wow Nice hack :)
does this work with 2.2.4? thanx |
im getting a blank page when going to the quiz.php
|
Is there any way to maybe be able to have questions with 4 possible answers instead of just yes or no? Like a multiple choice type thing? :)
|
dm: I've only tested it on 2.2.6 specifically, but I'll be shocked if it doesn't work well on earlier versions, seeing as how it's almost completely standalone.
Boofo: no, there's no support for multiple correct answers...again, maybe 2.0...it'd be tricky, but it's do-able. You can have more than two answers per question, though, of course. You can add as many as you want. Using it on my site, I have four answers for each question. So, you can add as many possible answers as you like per question (you're not limited to true or false)...however, only one of them can be right. |
Nice script...you are missing this variable though $mainquizlimit and I had to add it to the top ( $mainquizlimit="10"; ) of quiz.php to get it to work...I searched the new tables and don't see a setting for it and its not in the admin cp either...
|
It's near the bottom of the vBulletin Options page, just as the instructions.txt file details. :) You need to press the submit button once, I've found, to "confirm" that the data is there for it to work properly.
|
Thx...didn't see it....
|
i did that before :) still go the blank page
|
will this work on older versions, 2.2.2?
|
Quote:
|
ok just installed on 2.2.4 there wa no errors, it was very easy to install nice job :)
but now I only see blank page :( (I pressed the submit button ) |
I don't understand. Where do you see a blank page?
|
Very impressive. Great hack!!
|
Quote:
hmm I dont know what Im doing wrong :( |
It sounds to me like your templates were not created properly.
|
awsome hack, I will be installing this!
|
yeah TWTCommish u r right, I cant see any quiz template :(
what can I do now?(sit in the corner and cry) :( |
Did you get any errors when you ran the install_quiz.php file? That's the file that inserts all the templates.
|
Great hack TWT!! I love it. *Install*
|
No there was no errors, installed successfully.
|
Upload the file again and this time ONLY run the first step...that should create the templates. I guess it went funky on you for no apparent reason.
|
no errors installed very well done m8 very nice :up:
|
done!
thats strange, I dont see those templates anywhere. Quote:
|
All times are GMT. The time now is 05:24 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|