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)

-=dm=- 06-12-2002 08:54 PM

Quote:

Originally posted by Mist
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:

Hello Mr.Mist

How do I change the size of the right collums/tabels like in u r screenshot?

thanx :)

BigJohnson 06-12-2002 08:54 PM

it is now perfectly working for me . There is nothing wrong. Amazing hack. Thanks so much. One requests though. Is there any way to have 4 multiple choice questions instead of just 2. That would be a reall help also. Thanks so much.

BigJohnson 06-12-2002 09:00 PM

O ya also there is some requests I have but i dont no if any one has enought ime for it now hehe. I was wondering if the templates could have my border color to it instead of having no border color. I dont no hown to get that done in the templates. Also when you are taking a quiz it tells you Question 4 if you are on question 4. Could it says like questions 4 out of 10 or something to tell the person how long this test is going to take?

NTLDR 06-12-2002 10:04 PM

Congrats on another great hack TWT, this will be a great addition to my board, thanks for sharing it with us.

One thing I did find was that if you have "Add template name in comments" set to yes then you get text like this in your email:

Code:

<!-- BEGIN TEMPLATE: email_quizresults -->

bandersen 06-12-2002 10:12 PM

NTLDR, where did you find that "Add template name in comments"..... I wish to change that email too.... :)

TWTCommish 06-12-2002 10:47 PM

banderson and BigJohnson: it's the email_quizresults template.

BigJohnson: you can have as many answers per question as you want. I'm not sure what gave you the impression you can only have two. :)

Boofo 06-12-2002 10:50 PM

How are you doing on the new quiz.php? Any luck yet? :)

Quote:

Originally posted by TWTCommish
banderson and BigJohnson: it's the email_quizresults template.

BigJohnson: you can have as many answers per question as you want. I'm not sure what gave you the impression you can only have two. :)


pgowder 06-13-2002 01:45 AM

This is a great addition to vB. I'll be installing it soon!

One suggestion, I took several of your quizes, and I'd like to now be able to see the questions and my answers again.

TWTCommish 06-13-2002 01:54 AM

I'm thinking, for version 2.0, that all quiz results, question-by-question, should be saved. It'd take up a lot of space for any significantly sized board, but it's do-able for the next version.

zootsuit 06-13-2002 02:30 AM

Damn...almost works!

We still get no questions and misplaced answers on some tests and misplaces questions (from other quizzes) on others...

I just played along and chose even tho the first question didn't have a question and it supplied answers from a different test, it seems to be running smoothly...it even supplied the question after I chose (the wrong one of course - but it's a start!) - no errors anymore! :)

I'm sure we're all waiting with bated breath...

:D

Smoothie 06-13-2002 11:09 AM

Ok, uploaded all the files, ran the install_quiz.php and no templates were installed. Did what you said in post #77 for both setid's and templates installed correctly. I am happy to report the hack works just great. But, I too have the alignment problem mentioned in post #106 with both styles I use.

TWTCommish 06-13-2002 11:51 AM

Okay, this'll fix the alignment problem, I think. Find the following in your quiz_category_nav template:

Code:

<table width="{contenttablewidth}" cellspacing="3" cellpadding="3" bgcolor="{categorybackcolor}">
Replace it with this:

Code:

<table width="{contenttablewidth}" cellspacing="3" cellpadding="3" bgcolor="{categorybackcolor}" align="center">

Boofo 06-13-2002 11:53 AM

Do we all need to do this then? :)

Quote:

Originally posted by TWTCommish
Okay, this'll fix the alignment problem, I think. Find the following in your quiz_category_nav template:

Code:

<table width="95%" cellspacing="3" cellpadding="3" bgcolor="#336D95" background="https://vborg.vbsupport.ru/images/catagory_backing.gif">
Replace it with this:

Code:

<table width="95%" cellspacing="3" cellpadding="3" bgcolor="#336D95" background="https://vborg.vbsupport.ru/images/catagory_backing.gif" align="center">


TWTCommish 06-13-2002 11:54 AM

Only if you're having an alignment problem on the quiz category page.

Boofo 06-13-2002 12:10 PM

Ok. Mine looks fine, I guess. Anything on the new quiz.php yet? :):):)

Quote:

Originally posted by TWTCommish
Only if you're having an alignment problem on the quiz category page.

-=dm=- 06-13-2002 12:11 PM

is it possible to change the size of "Quiz Categories"etc.?
also I need a nice border around quiz tables, so its totally integrated with my vB index home :D

TWTCommish 06-13-2002 12:25 PM

I'm not sure what yo umean by their "size" dm. As for the border: bleh. I hate those borders! :D I'll take a look...it's easy, but I'm swamped with these other bug reports right now.

-=dm=- 06-13-2002 01:00 PM

sorry my bad english :D

I mean so it look like that screen shot Mist posted post157
fx:
"Recently Added Quizzes" (Table size75%) and "Quiz Categories" (Table size25%)

Thanx :)

TWTCommish 06-13-2002 01:06 PM

It should be pretty easy...open up the quiz template and find the two cells. There's three in the row...the one in the center is a spacer column.

-=dm=- 06-13-2002 01:34 PM

done :)
But I coulnt find the "Top Scores" "Latest Scores" template.

Thanx

TWTCommish 06-13-2002 01:40 PM

You mean the ones on the quiz display page, or on the popup?

TWTCommish 06-13-2002 02:18 PM

I'm workin' on it, X-Fan. :) I should be uploading a new quiz.php file soon, once I've figured this mess out.

TWTCommish 06-13-2002 02:26 PM

Ok, here's a small update: those of you having the 350 error problem, download and then upload the ORIGINAL quiz.php file -- the one from the archive in the very first post in this thread. Then change this...

PHP Code:

$question_number $HTTP_POST_VARS[question];
$answer_count    $DB_site->num_rows($answers);
$num             $HTTP_POST_VARS[question] + 1

...to this...
PHP Code:

$question_number $_POST["question"];
$answer_count    $DB_site->num_rows($answers);
$num             $_POST["question"] + 1

I think that the problem is with NEWER versions of PHP, rather than OLDER ones. I believe it has something to do with the register_globals setting, but I'm not sure. Anyhoo, give the above code change a try and let me know if it helps...

X-Fan 06-13-2002 02:41 PM

How bandwidth-intensive is this, TWT?

TWTCommish 06-13-2002 02:44 PM

Not much, I don't think. If we're talkin' queries, then it's not intensive at all...very few queries involved I believe.

X-Fan 06-13-2002 02:48 PM

Hmmm, okay, using the modified quiz.php file that you uploaded around the middle of this thread, I got a quiz to work, but some of the questions were missing from the question pages.

Using the above modification to the original quiz.php file, now it asks the first question - but the question text doesn't appear. On selecting an answer, it loads the same question again, and on selecting an answer it generates the "Sorry, you may not re-submit an answer." error.

Check it out here:

http://x-mencomics.com/xfan/forums/q...zid=3&taking=1

:(

TWTCommish 06-13-2002 02:50 PM

You have to use the original quiz_question template as well to try this fix. And ditch the modified quiz.php file in the middle of the thread...it's no good now.

X-Fan 06-13-2002 02:56 PM

Okay, changed the quiz_question template back to the original, and now the question text is showing up, but it's still asking the same question twice then generating the no resubmit error. :(

TWTCommish 06-13-2002 02:57 PM

Are you sure there were no errors submitting questions? And you're using the ORIGINAL quiz.php file? And no errors are showing up?

X-Fan 06-13-2002 03:03 PM

No probs submitting questions, using the original quiz.php file, and no errors showing up except for the "Sorry, you may not re-submit an answer." one after it asks the same question twice.

TWTCommish 06-13-2002 03:04 PM

Okay, I think I know what might be wrong. I'll get back to you again in a little bit.

Boofo 06-13-2002 03:05 PM

The new changes to the old quiz.php didn't work. I get to take the quiz (that part is fixed) but all it shows me is the answers to the first question without the question and when I hit next question, it shows me the answers to the first question again without the question. And then no matter what I hit for an answer, I get the can't re-submit eror. (Did you understand all of that?) If you did, please explain it to me. :)

Quote:

Originally posted by TWTCommish
You have to use the original quiz_question template as well to try this fix. And ditch the modified quiz.php file in the middle of the thread...it's no good now.

TWTCommish 06-13-2002 03:06 PM

That's exactly what X-Fan just said, Boofo. :D

Boofo 06-13-2002 03:09 PM

We must have been typing our messages at the same time because his wasn't there before I started my message. :)

Quote:

Originally posted by TWTCommish
That's exactly what X-Fan just said, Boofo. :D

ceo_tfw 06-13-2002 05:27 PM

works now with the update thanks

shows questions and answers

and no errors

Smoothie 06-13-2002 05:39 PM

Hey TWTCommish,

Thanks for solving the problem with the alignment. It's all great now. Mucho appreciated...

bandersen 06-13-2002 05:52 PM

I updated... get the same error as X-Fan.

Dean C 06-13-2002 06:05 PM

im still having that alignment problem... plz help :D

TWTCommish 06-13-2002 06:06 PM

Did you make the change? Can you give me the link to your category page so I can see the HTML for myself? I need details. :D Just telling me that something is wrong doesn't really give me anything to work with.

-=dm=- 06-13-2002 07:15 PM

Quote:

Originally posted by TWTCommish
You mean the ones on the quiz display page, or on the popup?
No its not the popup, but on the quiz display page.
--------------------------------------
Top Scores
Username - Score - Completed
--------------------------------------
Latest Scores
Username - Score - Completed
--------------------------------------

thanx :)


All times are GMT. The time now is 09:15 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.01581 seconds
  • Memory Usage 1,825KB
  • 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
  • (5)bbcode_code_printable
  • (2)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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