Version: 1.00, by xxxsaint
Developer Last Online: Aug 2008
Version: 2.2.x
Rating:
Released: 10-03-2002
Last Update: Never
Installs: 42
No support by the author.
***** LESANE's STORE ADD-ON FOR VBQUIZ *****
Tested and Running smooth on VB 2.2.6
*****Integrate LeSane's Store with TWT Commish's VBQUIZ*****
ALL CREDIT for the code in this hack goes to LeSane who is one of the most helpful people I've had the pleasure to work with. I am releasing this Add-on with his permission and only because he's busy working on other goodies right now. Also a big thank you goes out to TWT Commish for creating VBQuiz and adding a lot of enjoyment to our sites.
Q.What does this do ?
A.This awards users of a 10 question quiz 10 points for every correct answer.
If they get all 10 questions right, then it awards them 1000 points as a bonus.
Instructions include both the standard 10 points per correct answer installation
AND installation if you want it to have the 1000 points bonus.
Installation time : 2 minutes or less
************************************************** **
I will do my best to provide support for this add on - but just so you know , I'm a total noob , this is my first hack release and I was basically the testor for it, Lesane did all the coding from ideas that I had.
Enjoy and click on INSTALL if you use and like this add-on!!
Installation instructions included in the attached file:
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Originally posted by ethics Uhm, call me crazy but I don't see the quiz.php? Where do I download it from?
same, and i dont see instructions on how to like, put up a link so members can access it, how to change questions and answers, nothings here, what gives
*****Integrate LeSane's Store with TWT Commish's VBQUIZ*****
This is just an auto-pay add on to TWT Commish's VBQUIZ through Lesane's Store. You have to have both of those hacks installed before making use of this hack.
Just for the record, to make it so that it will give the big $$$ on 100% on any size quiz (not just those with 10 questions), modify the code slightly to look thusly:
Instead of this:
Code:
//Points = $$$
if ($totalcorrect=='10') {
$storeamount = 100 * $totalcorrect;
} else {
$storeamount = 10 * $totalcorrect;
}
$updatestore = $DB_site->query("UPDATE user SET storep=storep+'$storeamount' WHERE userid='$bbuserinfo[userid]'");
//END Points = $$$
Use this:
Code:
//Points = $$$
if ($totalcorrect==$question_count) {
$storeamount = 100 * $totalcorrect;
} else {
$storeamount = 10 * $totalcorrect;
}
$updatestore = $DB_site->query("UPDATE user SET storep=storep+'$storeamount' WHERE userid='$bbuserinfo[userid]'");
//END Points = $$$
This uses the already assigned variable: $question_count, which is the total numbers of questions assigned to the quiz. Thus if the two variables are equal, then the score is obviously 100%, and thus it will give the big $$$.