![]() |
And we have a winner!!!
It works and it works well. :) Now, how do we get the border around it like we have in the other tables? Then we are all set for go! Good work! :) Quote:
|
Well, which template you talkin' bout? :)
|
It's the one where you first come into the quiz. Check it out. :)
Quiz Quote:
|
In the quiz template replace this...
Code:
<table cellpadding="4" cellspacing="{ tableinnerborderwidth }" border="0" width="{ contenttablewidth }" { tableinvisibleextra }> Code:
<table cellpadding="{ tableouterborderwidth }" cellspacing="0" border="0" bgcolor="{ tablebordercolor }" { tableouterextra } width="{ contenttablewidth }" align="center"><tr><td> Code:
<table cellpadding="4" cellspacing="0" border="0" width="{ contenttablewidth }" { tableinvisibleextra }> Code:
<table cellpadding="4" cellspacing="0" border="0" width="{ contenttablewidth }" { tableinvisibleextra }> |
Are you sure it is the QUIZ template? I don't find anything like the first code in there at all. And I haven't changed anything in it.
|
Sorry, I edited my post about 20 times. :D Try it now.
|
I don't find it still. There is no width=95% in there at all.
|
Sorry, THIS forum was parsing those bb Code replacements. Try it now...but remove the spaces.
|
This is my quiz template. Something is definately different in mine for some reason. I added the extra spaces.
Code:
<html> Quote:
|
It looks the same to me, man. :)
|
Then show me where the first line of code you wanted me to change is at in my original code. :)
Quote:
|
I still have the 2 x question.. then "you may not resubmit"....error.
|
Same with me, bandersen, and have tried adding a new quiz, deleting that, then adding another one to no avail.
Any ideas to fix that bug, TWT? ASAP would be appreciated, as I really want to get this up and running at my forums! And I'm not finding... Code:
cellspacing="{ tableinnerborderwidth }" |
Thank you! I knew I wasn't the only one who didn't have that in the quiz template. :)
Quote:
|
My quiz questions wont save:( dis anyone else have this problem? how did you fix it?
Thankyou |
cdcopyworld: are you trying to add questions instead of the NUMBER of questions you want? The page that comes up on the Add Questions page first requires that you add the number of questions you want to add, then the number of answers for each, and THEN you're presented with a page where you can add the actual questions.
X-Fan: I don't understand the quiz problem. Can you give me a more detailed example? |
Good morning, X-Fan and I seem to have this happening:
you go to take a quiz - things look normal - you mark a radio button and click "next question" - and you get the same question up again. You mark a radio button again and click "next question"... and you get "you may not resubmit". |
Are you using the newly uploaded quiz.php file?
|
Quote:
|
One more question... the Email that is sent out... comes from "nobody@myhost.com" / with text "unprivileged user"... where do I change that?
The email address / text showing in the body of the email is ok tho.... Seem like the from / subject info shows up in the body of the email rather than where they should be. The subject line with me looks like this: <!-- BEGIN TEMPLATE: email_quizresults --> |
The modified quiz.php worked for me, too. I hadn't tried it as you said it was for the 350 error, which I wasn't getting!
What was changed in the modified quiz.php that got it working, I wonder? Anyway, now to start making some quizzes. Thanks, TWT!!!! |
Great hack! Had it installed and working withing 10 minutes. I already have people taking them!
Is there a way to let users submit quizes? How about moderators? Can they submit them from the mod cp? I'd like to let others submit them, so that I could take them without having seen the answers. |
I'd also like to know if it would be possible to randomize the question order, rather than having them come up in the order that they are entered?
If you allow a quiz to be taken more than once, it will be that bit more difficult if the questions are randomized rather than the same order as they were the first time you take a quiz. |
bandersen: you'll want to turn off the template comments to fix that. As for the email problem...I think it might be an issue with your host, as the script, I believe, uses your contact email straight out of the vB Options table.
pgowder: I think it might work okay if you upload it to /mod dir, but I haven't tried it personally. The ability for users to submit quizzes is something I'm thinking of for version 2.0 X-Fan: randomizing would be a little bit of a pain, but it could be done. I see your point, and it's a good one. I'll give it some thought. I think, in version 2.0, it'd be good if you could very easily change the display order of the questions, and perhaps check a box to have them randomized each time. That'd be cool. :D |
Quote:
New edit: Found it!! :glasses: Admin Panel.. Also the errors in From / Subject went away too. |
I did upload it to the mod directory, and it appears to be working.
Thanks! |
This is the restult I get when having 100% correct answers:
Congratulations, you have successfully passed this quiz. You correctly answered 11 of 11 total questions - a grade of 101%. - Date: 06-18-2002 - Total: 11 out of 11 - Percentage: 99 percent The template shows 99% on the top - next to the bars The template shows 101% at the bottom. This is what I have in the quiz.php: $base = 100 / $question_count; $pct = ceil($totalcorrect * $base); |
this hack works well for me since day one. Is there a way to create subcategories?
|
I've just changed my quiz options to allow a user to take a quiz once only. Problem is there's already been a few people take it multiple times.
How would it be possible to have the system remove all their recorded attempts except for their first one? EDIT: Well I manually removed the entries from the database via phpMyAdmin, but it would still be a lot easier to have an option to automatically remove multiple attempts except the initial one. Also, is there any way to completely reset a quiz's stats without having to delete it? |
Quote:
thanks |
What are you clicking on? You should be clicking on Add Questions, at which time you'll see three fields: a dropdown that allows you to select the quiz that the questions should be added to, and two text boxes...one for the number of questions, and one for the number of answers.
X-Fan: not automatically, no. But I'll consider that for a future release. And no, subcategories do not currently exist. |
Hell I was the beta tester for this and I didn't even realise it was released! Great work Chris! :)
|
Thats right, I'd forgotten! A HUGE thanks to GamerForums. His bug reports were completely invaluable to me.
|
LOL...
[high]* GamerForums takes a bow! [/high] Just upgraded to 2.2.6 [a little late I know], with minimal intervention and no problems at all. Again, great work. :) |
getting this error on my quiz.php file
Database error in vBulletin 2.2.0: Invalid SQL: SELECT quizid, quiztitle, description, timestamp, userid, catid, imagename FROM quiz WHERE approve = 1 ORDER BY timestamp DESC LIMIT mysql error: You have an error in your SQL syntax near '' at line 5 mysql error number: 1064 |
Read the instructions. :p They tell you how to deal with that.
|
TWTCommish,
Any luck on the correct code for adding the lines to the tables for the quiz template? The code you gave me doesn't have the cellpadding part in it. :) |
sorted now m8 but my quiz screen is now blank
|
wolfe: what do you mean? Are you sure the templates have been installed correctly.
|
well they said installed properly i am using VBB 2.2.0 does it work on that
|
All times are GMT. The time now is 01:07 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|