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)

TWTCommish 06-17-2002 09:09 PM

Replace this...
PHP Code:

    $base round(100 $question_count);
    
$pct  $totalcorrect $base

...with this...
PHP Code:

    $base 100 $question_count;
    
$pct  ceil($totalcorrect $base); 


josh929 06-17-2002 09:21 PM

will that make the percentage too high for other quizzes?

TWTCommish 06-17-2002 09:22 PM

All it does is round up to the nearest percentage.

Joeri Blunt 06-17-2002 09:29 PM

Great, now I hope you only fix the go to question 2 bug... ;)

Shokkka 06-17-2002 10:38 PM

Quote:

Originally posted by TWTCommish
I already replied to that, I think.
yea u did but could u explain in english? is all this stored in a mySQL table? or is it stored in a PHP file?

TWTCommish 06-18-2002 01:41 AM

It's in a MySQL table.

Everyone: if you're having problems with the 350 line error, or were before, try the attached quiz.php file and please let me know if it works.

Boofo 06-18-2002 01:58 AM

ok, I re-installed to try this one more time. :) It shows the answers to the questions but still does not show the questions when taking the quiz. No more errors though.

Quote:

Originally posted by TWTCommish
It's in a MySQL table.

Everyone: if you're having problems with the 350 line error, or were before, try the attached quiz.php file and please let me know if it works.


TWTCommish 06-18-2002 02:02 AM

Are you still using the modified quiz_question template from where I tried to fix the bug before? :) If so, that'd explain why the question isn't showing.

Boofo 06-18-2002 02:05 AM

Ok, now you have me totally lost. What modified template? What post did you change that in? I thought I had been watching the thread pretty close, but it must have slipped by me. Hit me with it again and I will try it. :)

Quote:

Originally posted by TWTCommish
Are you still using the modified quiz_question template from where I tried to fix the bug before? :) If so, that'd explain why the question isn't showing.

TWTCommish 06-18-2002 02:08 AM

Open the quiz_question template, and replace this:

$questiondata[questiontext]

...with this...

$question[questiontext]


All times are GMT. The time now is 05:50 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.01849 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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