PDA

View Full Version : HEY TIGGER!! Re:Test



Bruce
03-05-2003, 06:39 PM
Hey Tigg!
Remember this test progie? The first four questions are always wrong (check the email at the end)…I’m banging my head on this one! Here’s where to down load it, take a look could ya?

www.diginetx.com/downloads/EHS Test.zip

Bruce

TJ_Tigger
03-05-2003, 08:23 PM
I have run through it several times and I am not getting the same results. I am tired, so maybe I am ont seeing it. I will look at tomorrow when I am fresh and see if I can find what is going on. The only thing I would think to add based on the some of the structure is the following statement if the answer is wrong.

IF (%WrongAnswers%="")
%WrongAnswers% = Evaluate (%Question1%;;%Answer1%)
ELSE
%WrongAnswers% = Evaluate (%WrongAnswers%::%Question1%;;%Answer1%)
END IF

This would fix one problem that I did see where it would start the wrong answers list with a "::". This would need to be placed on each page.

On the e-mail button, remove the last % from that string. Here is a modified version of the string that formats the information differently and adds the wrong answers to the e-mail.

mailto:Who.IT@mayconcern.com?Subject=Answers%20to% 20Quiz%20from%20%UserName%(%EmployeeNumber%)&Body= %Question1%%0D%0A%Answer1%%0D%0A%Question2%%0D%0A% Answer2%%0D%0A%Question3%%0D%0A%Answer3%%0D%0A%Que stion4%%0D%0A%Answer4%%0D%0A%Question5%%0D%0A%Answ er5%%0D%0A%Question6%%0D%0A%Answer6%%0D%0A%Questio n7%%0D%0A%Answer7%%0D%0A%Question8%%0D%0A%Answer8% %0D%0A%Question9%%0D%0A%Answer9%%0D%0A%Question10% %0D%0A%Answer10%%0D%0AFinalScore%20=%20%FinalScore %%0D%0AWrongAnswers%20=%20%WrongAnswers%


Depending on if you want the students to see the e-mail you may want to use the .php method that will report the answers to the test without the users seeing the answers. Or you could read the above information to a txt file and then zip the file with a password and then e-mail that. Or, a little more work you could use some information, like the users name and create a code that would validate the users score. Something like converting the users name to a number and then adding that to a constant with the right numbers. Something like that anyway. Look for the Internet software installer that uses #JulianDate# and the MAC address. Just a few thoughts.

I hope that helps.

Live From Atlanta, Tigg.

Bruce
03-06-2003, 10:28 AM
Hey Tigg-
Using the numeric questions and answers it seems to be coming up with the right “100%” that I need to see. I am still getting the first four wrong in the email no matter what I do! Perhaps that’s where I have the issue. Although, when using the real questions & answers (see folder “Real Q&A”) I get a different percentage at the end of the test.

Thanks for taking the time!

Bruce

TJ_Tigger
03-06-2003, 08:07 PM
I will take a look, I am also planning on reworking the design, to allow for more than ten questions more easily. I just need some time to work through it. I will let you know what I have when I have it.

Bruce
03-06-2003, 10:03 PM
It's funny you should say that! LOL In my case, the client asked if they could have a pool of twenty answers but only show ten questions. It would be nice to have more then ten questions. Thanks for your help buddy!

Bruce

TJ_Tigger
03-07-2003, 10:02 AM
The way that this is currently setup you should be able to have a pool of twenty questions no problem. With the ten pages, it will then only present ten sets of questions and answers to the user. Try it, it should work.

Bruce
03-07-2003, 10:16 AM
Not with the current problems I'm having. (Shoot!)

Bruce
03-11-2003, 05:04 PM
Although... If you can help me out with the "first four wrong" issue that may take care of it! Your help is greatly appreciated Tigg!

TJ_Tigger
03-11-2003, 07:18 PM
I redid the answers.txt file and the test worked. I would suggest that you take the test.txt file and delete wrong answers so only the correct one remain. This worked for me.

Tigg

Corey
03-11-2003, 09:15 PM
This may be of no value here but the new powertips CD coming out this week or so has a "how to build a quiz/questionaire" lesson... I wish it was done but it's been a huge task and I'm just putting the final touches on it now. Maybe I'll make the quiz lesson one of the planned free samples so that you can get a chance to check it out.

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)

Bruce
03-12-2003, 04:49 PM
Thanks Corey! I'm looking forward to your CDs.

Bruce
03-18-2003, 11:33 AM
Great! Thanks for looking into it.
When you say: "I redid the answers.txt file and the test worked. I would suggest that you take the test.txt file and delete wrong answers so only the correct one remain. This worked for me." Could you please show me what you did to change both files?

Thx in advance.

Bruce

Bruce
03-18-2003, 03:48 PM
Hey Tigg-
As I see it, the only problem lies in what the email tells us the first four answers are:

What's after 5?
2
What's after 10?
9
What's after 8?
4
What's after 9?
8
What's after 3?
4
What's after 6?
7
What's after 1?
2
What's after 2?
3
What's after 4?
5
What's after 7?
8
100

Even though they were all answered correctly, the email shows that the first four are wrong. Would that be the coding in the email button or in the test itself?

TJ_Tigger
03-18-2003, 05:40 PM
mine worked all the time with the number questions, but not with the real questions. When I changed the answers.txt file it worked just fine. Have you looked at the coding on the first four pages that checks for the right answers?

Bruce
03-21-2003, 05:04 PM
Hey Tigg...
When you say you "changed the answers.txt" that did you do to fix it? Was the "Real" answers.txt the one you fixed?

TJ_Tigger
03-21-2003, 09:43 PM
Sorry I did ont elaborate, I have been very busy as of late, so short answers seem to be my norm as of late. I opened the test text file and deleted the false answers making sure that the delimeters were correct. I then saved the file as answers.txt and it worked at that point. The coding in the project looked correct to me, and it was weird that the project would work OK with one set of answers and not with the other. This is why I changed the answers.txt file. Would you like for me to make those files available for you?

Tigg

Bruce
03-21-2003, 10:18 PM
PLEASE! PLEASE! PLEASE! LOL Thank you. :-)

TJ_Tigger
03-24-2003, 10:59 AM
Sent you a messge

Bruce
04-04-2003, 12:27 PM
Hey Tigg-
Any luck?

TJ_Tigger
04-05-2003, 08:19 AM
As my Birthday (4-4) present to you I have sent you a PM and an e-mail. :-)

Bruce
04-05-2003, 09:50 AM
LOL HAPPY BIRTHDAY!!!!!!

Thank you so much! You have no idea what your help has meant to me.