The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Inferno Quiz v2.2 Details »» | |||||||||||||||||||||||||
Port of: https://vborg.vbsupport.ru/showthrea...threadid=80780
However, the system has a pretty big back-end, it's possible i over-looked a bit or 2, so if you encounter errors/php errors please feel free to let me know in this thread and i'll try to get them fixed asap v2.2 Updates: (Upgrade instructions inside ZIP) - Several areas of code otptimized (query reduction) - Uncached templates now cached - Ability in main options to choose default usergroups to participate/view results to be auto filled in when adding quizzes. Enjoy, - Zero Tolerance Show Your Support
|
Comments |
#562
|
||||
|
||||
Installing their integration plugin:
http://www.vbcredits.com/forum/showthread.php?t=18 |
#563
|
|||
|
|||
Could someone wip up a script and where to put it for me to increase the size of my submit question box?
|
#564
|
||||
|
||||
Has anyone managed to enable people to take the test again and again?
We keep getting error when ppl try to retake the test/quiz |
#565
|
||||
|
||||
Ability in main options to choose default usergroups to participate/view results to be auto filled in when adding quizzes.
I have a small problem in that the admincp keeps asking me to login again, and again in a loop. It only happens when i try and set multiple quizzes to open Can anybody help? Thanks VJ |
#566
|
||||
|
||||
Quote:
|
#567
|
||||
|
||||
Does anyone have a fixed 3.7.1 update for this that I might be able to talk them out of?
|
#568
|
|||
|
|||
I am using this hack solely for the purpose of restricting entry to certain forums based on a user's knowledge of the rules.
Alfa1 and I have worked together and applied a band-aid solution for Amy's hack Test Your Members' Knowledge Before Allowing Them to Post in Certain Forums. My coding knowledge is limited, but the addon at least works again. My question now, has been asked no less than four other times by others in this thread with no response, so please do not tell me to go read. I have. Where do I have to edit to allow users to take a quiz over and over again? I noticed Amy's addon (above) has a phrase that redirects users back to a quiz if they fail, but what's the point in that if they can't take it more than once? I have spent well over 72 hours working on this hack and the addon, and I am almost finished, so if anyone knows how to do this, please take the time to share the info as I have. Thanks. |
#569
|
|||
|
|||
Well here's the answer:
Edit your Quiz.php file and look for this: Code:
{
RunError("You have already taken this quiz.");
}
Code:
; |
#570
|
|||
|
|||
OK I finally have it all set up the way I want it. Users can take the quiz as many times as they need to, and (as per Amy's mod) now have to take a quiz and pass to post in a specific forum. Although the access does not take effect until the quiz submissions have been moderated and all failing results removed (even if the user has passed in a subsequent attempt). So my next hurdle:
Is there a way to bypass the moderation altogether and have a user's latest score overwrite their previous one? In a forum of xx thousand users I could see moderating all the results everyday becoming quite tedious. If not that, then perhaps some kind of "mass-moderation" option that simply checks for test scores in the moderation queue that are lower than the passing requirement and deletes them? Either of these would be a viable option, I would prefer the first one though. Any suggestions as to where to start? |
#571
|
|||
|
|||
I am assuming I could alter the admin_quiz.php file in this area somehow:
Code:
// ###################### Do Inferno Quiz Delete Result ######################## if ($_POST['do'] == "do_delete_result") { // ---------------------------- // Assume The Result Exists // ---------------------------- if(!$result = $DB->query_first("select u.username,r.* from ".TABLE_PREFIX."quiz_results r left join ".TABLE_PREFIX."user u on(u.userid=r.r_userid) where r.rid = '".intval($_POST['id'])."'")){ echo "Result Was Unable To Be Found In Your Database [<a href='javascript:history.go(-1);'>Back</a>]"; exit; } // ---------------------------- // Did we want to delete? // ---------------------------- if($_POST['verify']){ // ---------------------------- // Yes we did... // ---------------------------- // Delete Result $DB->query("delete from ".TABLE_PREFIX."quiz_results where rid = ".intval($_POST['id']).""); $Engine->Redirect( "Result Deleted Successfully", array( array("Moderate Quiz Results","?do=results"), ) ); } else { // ---------------------------- // No we didn't... // ---------------------------- $Engine->Redirect( "Result Not Deleted", array( array("Moderate This Result","?do=moderate_user_results&id={$_POST['id']}"), array("Moderate Quiz Results","?do=results"), ) ); } } using the code from this line: Code:
$DB->query("delete from ".TABLE_PREFIX."quiz_results where rid = ".intval($_POST['id']).""); Quote:
These reasons are why overwriting the results on each subsequent attempt would be a much more attractive option. I don't care if I have to hard-code it in rather than make it a selectable option, as I only plan to use this mod for the aforementioned purpose anyway. Any coders out there interested in breezing through this one? If I can get this far with no coding knowledge whatsoever, I imagine you guys could throw something useable up here between lighting up your smoke and putting it out. I'd appreciate any help you could offer. Thanks. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|