Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

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
  #152  
Old 06-12-2002, 06:18 PM
TWTCommish's Avatar
TWTCommish TWTCommish is offline
 
Join Date: Oct 2001
Location: Pittsburgh, PA, USA
Posts: 783
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't understand how...that doesn't happen to me. Is anyone else having trouble editing their categories?
Reply With Quote
  #153  
Old 06-12-2002, 06:56 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well it isn't a problem as i wouldn't often need to edit a category...

also i have found a problem with the actualy quiz.php when it is run in your forums... but this is a template problem...

the recently added quizzes is on the left and the quiz categories and the rest is on the right... however the quiz categories and the easiest quiz etc etc, scrolls a long way to the right meaning you have a horizontal scrollbar....
ideally i would like the quiz categories above the recently added quizzes bit... i tried editing the "quiz" template and it i have a loose tag somewhere now... so if you could do this new template edit i would be most grateful

Thanks in Advance
Reply With Quote
  #154  
Old 06-12-2002, 06:58 PM
TWTCommish's Avatar
TWTCommish TWTCommish is offline
 
Join Date: Oct 2001
Location: Pittsburgh, PA, USA
Posts: 783
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I honestly don't understand what it is you're asking. There is no horizontal scrollbar if you use the defaults...I tried it myself. If you're getting a horizontal scrollbar, either you've changed the templates in some way, or your header is causing a conflict...which wouldn't surprise me, because they often do.
Reply With Quote
  #155  
Old 06-12-2002, 07:00 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well i have edited my quiz template because of the quiz categories and easiest quiz scrolling to the right...

Ill attach a screenshot in my next post:
Reply With Quote
  #156  
Old 06-12-2002, 07:05 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Screenshot:
Reply With Quote
  #157  
Old 06-12-2002, 07:13 PM
ceo_tfw's Avatar
ceo_tfw ceo_tfw is offline
 
Join Date: Mar 2002
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

on my last post TWTCommish, I was meant to say that I did do the vbulletin options and the sql error went, and now the blank screen due to no templates and now uploaded the two new files quiz.php and install_quiz.php. I executed the install with my template set at 2 and templates did install with no problems. The only problem now is that the questions and tick boxes do not show,
Reply With Quote
  #158  
Old 06-12-2002, 07:26 PM
Hard_one Hard_one is offline
 
Join Date: Nov 2001
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can anyone post the quiz_question template please ?
Reply With Quote
  #159  
Old 06-12-2002, 07:30 PM
ceo_tfw's Avatar
ceo_tfw ceo_tfw is offline
 
Join Date: Mar 2002
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

here it the quiz_question template

PHP Code:

<html>
<
head>
<
title>$bbtitle Quizzes $quiz[quiztitle] - $quiz_header</title>
$headinclude

  
<script language="JavaScript">
    function 
checkanswer(answerform) {
    var 
temp;

      for (var 
0$answer_counti++) {
        
temp answerform.user_answer[i];
          if (
temp.checked == true) {
            return 
true;
          }
        }

      
alert("You must select an answer.");
      return 
false;
    }
  </
script>
</
head>

<
body>
$header

<!-- breadcrumb -->
<
table cellpadding="2" cellspacing="0" border="0" width="95%"  align="center">
  <
tr>
    <
td width="100%"><normalfont color="white"><b><a href="index.php?s=$session[sessionhash]">$bbtitle</a> &nbsp;$joiner&nbsp; <a href="quiz.php?s=$session[sessionhash]">Quizzes</a$joiner <a href="quiz.php?s=$session[sessionhash]&quizid=$quiz[quizid]">$quiz[quiztitle]</a$joiner Question $question_number</b></normalfont></td>
  </
tr>
</
table>
<!-- /
breadcrumb -->

<
form action="$bburl/quiz.php?quizid=$quiz[quizid]&taking=1" method="post" onsubmit="return checkanswer(this);">
<
input type="hidden" name="question" value="$num">
<
input type="hidden" name="timecheck" value="$timecheck">

<
table cellpadding="4" cellspacing="0" border="0" width="95%"  align="center">
  <
tr>
    <
td width="100%" bgcolor="#1D6AA0" valign="middle" colspan="4"><normalfont color="#EEEEFF"><b>Quizzes $quiz[quiztitle] - Question $question_number</b></normalfont></td>
  </
tr>
</
table>


<
table cellpadding="8" cellspacing="2" border="0" width="95%"  align="center">
  <
tr>
    <
td width="100%" bgcolor="#1C5780" valign="top"><normalfont>$question[questiontext]</normalfont><hr/>

<
table cellpadding="0 cellspacing="0" border="0" width="95%"  align="center" bgcolor="#13486D"><tr><td width="100%">
  
<table cellpadding="2" cellspacing="1 border="0" width="100%"  align="center">
    
$answerbits
  </table>
</td></tr></table>
</td></tr></table>

<br/>

<table cellpadding="
2" cellspacing="0" border="0" width="95%"  align="center">
  <tr>
    <td width="
100%" valign="middle" align="center"><input type="submit" name="questionsubmit" value="$button_text" class="black"></td>
  </tr>
</table>
</form>

$footer
</body>
</html> 
Reply With Quote
  #160  
Old 06-12-2002, 07:33 PM
Hard_one Hard_one is offline
 
Join Date: Nov 2001
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thx dude
Reply With Quote
  #161  
Old 06-12-2002, 08:32 PM
bandersen's Avatar
bandersen bandersen is offline
 
Join Date: Feb 2002
Location: Oslo
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can someone tell me where I modify the email that is sent out - the "from" and "subject" part? The rest I see.
Reply With Quote
Reply

Thread Tools

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 10:57 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07149 seconds
  • Memory Usage 2,344KB
  • Queries Executed 25 (?)
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
  • (1)bbcode_php
  • (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
  • (3)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_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