vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vBQuiz 1.0 (https://vborg.vbsupport.ru/showthread.php?t=39719)

Erwin 07-29-2004 03:40 PM

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.

Erwin 07-29-2004 03:52 PM

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


Erwin 07-29-2004 03:53 PM

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',
    ),
); 


Erwin 07-29-2004 04:13 PM

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


Erwin 07-29-2004 04:15 PM

By the way, my fixes are for the vB3 version, not the vB2 version. :)

Erwin 07-29-2004 05:10 PM

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!

Holidazed 07-29-2004 08:33 PM

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?

Holidazed 07-29-2004 08:37 PM

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?

NietzscheKid 07-29-2004 08:51 PM

Hello,

I am also interested in this quiz. I will send you a pm?

kaotic 07-29-2004 09:05 PM

Thanks for the fixes, Erwin.

PS:
bitg: There already is a vB3 version, but its not for free. Contact the author for more info.


All times are GMT. The time now is 08:30 PM.

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.03924 seconds
  • Memory Usage 1,758KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_html_printable
  • (7)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete