Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Inferno Quiz v2.1 Details »»
Inferno Quiz v2.1
Version: 2.1, by Zero Tolerance Zero Tolerance is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 04-29-2005 Last Update: 05-26-2005 Installs: 142
DB Changes
 
No support by the author.

Hey all, heres a system i decided to make for a couple of reasons, mainly because i had some spare time and had nothing better to do, but also because it will benefit my forums and probably yours too.

So, what is Inferno Quiz?
Basically it's a quiz system, allowing administrators to add quiz's and questions, and for users to take part in them, in generic anyway, but the full feature list is provided below.

Note: Support will only be given if you voted Inferno Quiz Hack Of The Month .... just kidding, but you know you wanna
  • Forum Features

    • View All Open Quiz's - Name/End Date/Take Quiz/View Stats
    • Confirmation Take Quiz Page (Also displays information on quiz time limit (if any)
    • Take Quiz Page - Shows all answer type formats + timer in window status bar (if time limit activated)
    • View stats shows all users who have participated in the quiz and an average score.
    • View user stats for a quiz, showing what a user answered for each question, and their overall score (user must have already taken part to view)
    • After taking part in a quiz, the results are PM'ed to you automatically giving all the details, scores and overall score.
  • Admin Features

    • Add/Edit/Delete A Quiz
      • Quiz Name
      • Quiz State (Open/Closed)
      • Usergroups Which Can Participate In This Quiz (Easy Selection System)
      • Usergroups Which Can View User Results In This Quiz (Easy Selection System)
      • Auto Close Quiz Option (Yes/No)
      • Quiz End Date (Only applies if auto close is set to Yes) [Day/Month/Year]
      • Quiz Time Limit (Specify a number of minutes a user has to complete the quiz - or 0 to disable the time limit)
      • Allow users who have finished the quiz to view the correct answers (Yes/No)
    • Add/Edit/Delete A Quiz Question
      • Select which quiz the question is for
      • Input Question
      • Answer Format Type
        • Single-Line Text Box
        • Answer (none-case sensitive)
        • Single-Selection Radio Buttons
        • Input all selectable answers
        • Answer (none-case sensitive)
        • Multiple-Selection Checkbox
        • Input all selectable answers
        • Input all correct answers
    • New Design ACP Confirmation Page
      • System Message
      • Available Actions (Shows several links to make administration faster for the quiz)
  • Installation Features

    • Fast easy installation
    • Includes uninstaller
    • Adds templates automatically to ALL styles
    • Only 2 file edits and 1 template edit required!

v1.1 Updates:
To upgrade, download the file again and follow the upgrade instructions provided
  • FireFox compatability for usergroup permissions in add/edit quiz
  • Score % rounded to full number (ie: 13.3333% becomes 13%)
  • Shows user in quiz on users online page

V2 Feature List: (in addition to the above ^)
https://vborg.vbsupport.ru/showpost....9&postcount=85

v2.1 Update:
- " to " fixed
- ' Chokes add question in submit quiz fixed
- Quote's in allow submission resulted in DB error fixed
- Templates now only added to "master" styles (styles without parents) to stop duplication of un-required templates

Now for the previews, what everyone likes to see..

Previews:
I guess that's all there is to say, apart from enjoy and post any comments below

- Zero Tolerance

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #242  
Old 05-27-2005, 10:52 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's a quick and dirty mod to PM the person of your choice when a quiz has been submitted and is ready for review.

In quiz.php
Find:
Code:
header("Location: quiz.php?sub=1");
Add Above (change the word userid in both places to the userid of the member you want notified.):
Code:
	$PM = "A quiz has been submitted for review.";

	// Send PM
	SendPM($PM,"Quiz Submitted for Review",userid,userid);
Reply With Quote
  #243  
Old 05-28-2005, 04:41 AM
Neutral Singh's Avatar
Neutral Singh Neutral Singh is offline
 
Join Date: Sep 2004
Location: Sikh Philosophy Network
Posts: 545
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First of all i must say ...

ZT & Inferno Quiz ROCKS !!!!

Thank You !!!!

Quote:
An error has occured, the following message has been left below:

You may only view user stats if you have completed the quiz.
As an admin, when i click on view stats --> click on a membername option, i get this error, i think as an admin i should have the previliage to view the results without having to go to admincp everytime a members chooses to get quizzed. There should be no problem ethically as afterall i am the person who devised to quiz. :devious: Just a suggestion for future versions.


Quote:
Warning: in_array(): Wrong datatype for second argument in /includes/engine.quiz.php on line 540

Warning: in_array(): Wrong datatype for second argument in /includes/engine.quiz.php on line 540

Warning: in_array(): Wrong datatype for second argument in /includes/engine.quiz.php on line 540

Warning: in_array(): Wrong datatype for second argument in /includes/engine.quiz.php on line 540
I was moderating quiz results for one of the members when i encountered the above error. An snapshot is attached in this message.


And Lastly, a member should have the facility of taking the same quiz more than once. This is a must be there feature in my view.

Thanks and Best Regards
Reply With Quote
  #244  
Old 05-28-2005, 08:00 AM
Zero Tolerance's Avatar
Zero Tolerance Zero Tolerance is offline
 
Join Date: Feb 2004
Location: England
Posts: 813
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It would appear that error is caused from the answer not being an array for some form of reason. You can change on line 540 of engine.quiz.php this:
PHP Code:
$Selected = (in_array($key,$Data) && trim($Data) != '')? " checked='checked'" ""
To:
PHP Code:
$Selected = (@in_array($key,$Data) && trim($Data) != '')? " checked='checked'" ""
It should solve the problem.

- Zero Tolerance
Reply With Quote
  #245  
Old 05-29-2005, 04:12 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Feature requests for the next version:
I love the quiz system, but I find two things tiresome.
1. When I create a quiz and start adding questions to the quiz, I don't like having to select the quiz from the dropdown each time I add a new question. Is it possible to store the name of the latest quiz that a question was added to, and remember that value in the dropdown for subsequent question additions? Then, if I need to change quizzes, I can but for those of us who generally add 10 or more questions at a time to the same quiz, we won't have to keep making that selection, which gets cumbersome once you have a significant number of quizzes.

2. If possible, allow us to set default permissions for taking quizzes and viewing the stats of quizzes. Then, we can use the default settings for most quizzes, but adjust for special quizzes that we want to restrict to certain user groups.

I'm willing to do the coding and send it to you if you are busy or need help. The only reason I make the suggestion here is that I am trying to keep my own private version from making two many forks from your standard.

Also Zero, give me a yell if you want my code to have quizzes show who wrote them, allow quiz authors to take their own quiz multiple times without showing their score, and to show a "Quiz already Taken" message for people who have taken a given quiz instead of the Take Quiz link.

Amy
Reply With Quote
  #246  
Old 05-29-2005, 06:07 PM
banshee banshee is offline
 
Join Date: Feb 2004
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed this hack and love it, however I use the quiz for contests for prizes. So it is hard to see what peoples scores are so i modified the quiz.php so it sorts the usernames and shows the %. Making it easy to see who the top Members are.

I hope this isn't against the rules if it is just delete the post

Modify the SQL statment to order the results by score so the highest scores are listed at the top.

Code:
 // Get All The Results
                $Get_Results = $DB->query("
                select u.username,
                r.r_userid,r.r_score
                from ".TABLE_PREFIX."quiz_results r
                left join ".TABLE_PREFIX."user u on(u.userid=r.r_userid)
                where r.r_forquiz = '{$Quiz['qid']}' ORDER BY r.r_score DESC
                ");
Change the Result display so it formats and shows the % correct.

Code:
 $Results[] = "<tr><td><a href='quiz.php?$session[sessionurl]do=UserStat&userid={$Result['r_userid']}&id={$Quiz['qid']}'>{$Result['username']}
</a></td> <td>{$Result['r_score']}%</td></tr>";
Hopefully everyone finds this useful like I do.
Reply With Quote
  #247  
Old 05-30-2005, 04:39 AM
Neutral Singh's Avatar
Neutral Singh Neutral Singh is offline
 
Join Date: Sep 2004
Location: Sikh Philosophy Network
Posts: 545
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zero Tolerance
It would appear that error is caused from the answer not being an array for some form of reason. You can change on line 540 of engine.quiz.php this:
PHP Code:
$Selected = (in_array($key,$Data) && trim($Data) != '')? " checked='checked'" ""
To:
PHP Code:
$Selected = (@in_array($key,$Data) && trim($Data) != '')? " checked='checked'" ""
It should solve the problem.

- Zero Tolerance
Yes Sir !! It did the trick !! The error seems to be gone... Thanks
Reply With Quote
  #248  
Old 05-30-2005, 04:40 AM
Neutral Singh's Avatar
Neutral Singh Neutral Singh is offline
 
Join Date: Sep 2004
Location: Sikh Philosophy Network
Posts: 545
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And yeah i forgot to thank you for Quiz Packs... Thanks !!!!
Reply With Quote
  #249  
Old 05-30-2005, 04:38 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For those of you who downloaded my dead or alive quiz, you need to remove the Eddie Albert question or change the answer. He died this weekend.

Amy
Reply With Quote
  #250  
Old 05-30-2005, 04:40 PM
axi axi is offline
 
Join Date: Jan 2005
Posts: 231
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

r.i.p.

updated
Reply With Quote
  #251  
Old 05-30-2005, 05:23 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's a little mod that some of you may find useful.

Right now, whenever you add a quiz question, the dropdown box comes up to the first Quiz in the list. This little mod makes the dropdown remember the last quiz that you added a question to. The next time you add a question, the dropdown list of Quizzes will be set to that last quiz.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:51 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
  • Page Generation 0.07012 seconds
  • Memory Usage 2,341KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (4)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete