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

Reply
 
Thread Tools
vBQuiz 1.0 Details »»
vBQuiz 1.0
Version: 1.00, by TWTCommish TWTCommish is offline
Developer Last Online: Dec 2022 Show Printable Version Email this Page

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).
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)

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.

Comments
  #952  
Old 07-29-2004, 03:40 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A couple of major bugs:

1) A user submitting a quiz does not pass his or her description.

2) When editing a quiz, you erase the user's userid.

A couple of suggestions:

1) Ability to upload image by user.

2) Ability for user to set time limit.
Reply With Quote
  #953  
Old 07-29-2004, 03:52 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, to fix the edit quiz username being deleted problem,

In admin_quiz.php,

Find:

PHP Code:
      if ($quiz[image] && $image_name && !$replaceconfirm) {
        
$author get_userid($author); 
Replace with:

PHP Code:
        $author get_userid($author);
      if (
$quiz[image] && $image_name && !$replaceconfirm) { 
Reply With Quote
  #954  
Old 07-29-2004, 03:53 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To add the standard editor templates to the cache, and saving many queries when a user submit a quiz, change the actiontemplate code to this in quiz.php:

PHP Code:
// pre-cache templates used by specific actions
$actiontemplates = array(
'addquiz' => array(
    
'editor_clientscript',
    
'editor_jsoptions_font',
    
'editor_jsoptions_size',
    
'editor_smilie_wysiwyg',
    
'editor_smilie_standard',
    
'editor_smiliebox',
    
'editor_smiliebox_category',
    
'editor_smiliebox_row',
    
'editor_smiliebox_straggler',
    
'editor_smiliemenu_category',
    
'editor_smiliemenu_smilie',
    
'editor_toolbar_wysiwyg',
    
'editor_toolbar_standard'
'newpost_disablesmiliesoption',
    ),
); 
Reply With Quote
  #955  
Old 07-29-2004, 04:13 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fixed the WYSIWYG description problem for user submit - before, all user submitted descriptions were blank.

In quiz.php.

Find:

PHP Code:
require_once('./includes/functions_editor.php'); 
Replace with:

PHP Code:
$vboptions['allowvbcodebuttons'] = '1';
require_once(
'./includes/functions_editor.php'); 
Then find:

PHP Code:
require_once('./includes/functions_wysiwyg.php');
$quiz_description convert_wysiwyg_html_to_bbcode($_POST['WYSIWYG_HTML']); 
Replace with:

PHP Code:
// require_once('./includes/functions_wysiwyg.php');
$quiz_description $message
Reply With Quote
  #956  
Old 07-29-2004, 04:15 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

By the way, my fixes are for the vB3 version, not the vB2 version.
Reply With Quote
  #957  
Old 07-29-2004, 05:10 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To allow members to submit time limit is easy to do too.

Only template mods needed, since the code is already in quiz.php

In quiz_add template,

Find:

HTML Code:
                $vbphrase[category]:<br />
                <select name="quiz_catid">
                  $catbits
                </select>
              </td>
            </tr>
Below add:

HTML Code:
            <tr>
              <td width="100%" class="smallfont"><br />
                  Time limit per question in seconds:<br />
                  <input type="text" class="bginput" name="quiz_timelimit" size="5" maxlength="5" tabindex="1" />
              </td>
            </tr>
Then in quiz_add_questions template, find:

HTML Code:
  <input type="hidden" name="quiz_description" value="$quiz_description">
Below add:

HTML Code:
  <input type="hidden" name="quiz_timelimit" value="$quiz_timelimit">
Done!
Reply With Quote
  #958  
Old 07-29-2004, 08:33 PM
Holidazed's Avatar
Holidazed Holidazed is offline
 
Join Date: May 2002
Location: Van Nuys, CA
Posts: 713
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I used to run this hack in my vb2.x board, now I run vb3.01. is there a vb3.0 version of this hack?
Reply With Quote
  #959  
Old 07-29-2004, 08:37 PM
Holidazed's Avatar
Holidazed Holidazed is offline
 
Join Date: May 2002
Location: Van Nuys, CA
Posts: 713
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TWTCommish
No, not yet. Which is what we've been discussing for the last several pages.

An improved, vB 3.0-compatible version will be available for sale sometime in the next few weeks, however.
Nevermind. I would love it if someday I actually read the threads prior to posting message.

TWT, any luck on a due date for this?
Reply With Quote
  #960  
Old 07-29-2004, 08:51 PM
NietzscheKid NietzscheKid is offline
 
Join Date: Jun 2002
Location: Hamburg, Germany
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

I am also interested in this quiz. I will send you a pm?
Reply With Quote
  #961  
Old 07-29-2004, 09:05 PM
kaotic's Avatar
kaotic kaotic is offline
 
Join Date: Mar 2003
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the fixes, Erwin.

PS:
bitg: There already is a vB3 version, but its not for free. Contact the author for more info.
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 01:57 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.14737 seconds
  • Memory Usage 2,329KB
  • 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_html
  • (7)bbcode_php
  • (1)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