Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Inferno Quiz v2.2 Details »»
Inferno Quiz v2.2
Version: 2.2, by Zero Tolerance Zero Tolerance is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.5.0 Beta 1 Rating:
Released: 06-14-2005 Last Update: 06-14-2005 Installs: 326
DB Changes Uses Plugins Template Edits
 
No support by the author.

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #562  
Old 04-25-2008, 12:54 PM
Stefano Virgill's Avatar
Stefano Virgill Stefano Virgill is offline
 
Join Date: Apr 2007
Location: Singapore
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installing their integration plugin:
http://www.vbcredits.com/forum/showthread.php?t=18
Reply With Quote
  #563  
Old 05-03-2008, 02:28 PM
321Go 321Go is offline
 
Join Date: Apr 2008
Location: Florida
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Could someone wip up a script and where to put it for me to increase the size of my submit question box?
Reply With Quote
  #564  
Old 05-30-2008, 03:54 AM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #565  
Old 06-05-2008, 11:16 AM
Vinyljunky's Avatar
Vinyljunky Vinyljunky is offline
 
Join Date: Feb 2007
Posts: 383
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #566  
Old 06-10-2008, 06:20 AM
smokey's Avatar
smokey smokey is offline
 
Join Date: Nov 2001
Location: North Carolina
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Vinyljunky View Post
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
I get that trying to open even one quiz. Assuming the author does not have time to fix, I'll get it working and post a fix if I have time to review the code. Hopefully he'll update.
Reply With Quote
  #567  
Old 06-13-2008, 09:59 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does anyone have a fixed 3.7.1 update for this that I might be able to talk them out of?
Reply With Quote
  #568  
Old 06-14-2008, 07:51 PM
TFEX TFEX is offline
 
Join Date: May 2008
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #569  
Old 06-14-2008, 08:14 PM
TFEX TFEX is offline
 
Join Date: May 2008
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well here's the answer:

Edit your Quiz.php file and look for this:
Code:
		{
		RunError("You have already taken this quiz.");
		}
Replace with this:
Code:
;
You will find it twice. Replace both instances, re-upload. Good to go.
Reply With Quote
  #570  
Old 06-15-2008, 01:27 AM
TFEX TFEX is offline
 
Join Date: May 2008
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #571  
Old 06-15-2008, 03:00 AM
TFEX TFEX is offline
 
Join Date: May 2008
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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'])."");
and adding these variables taken from Amy's mod:

Quote:
$foruminfo['score'] $quiztaken['r_score']
but I have no idea how to put it together, or where to put it after it is together... so as to automatically check and delete at set intervals etc. and, of course, we don't want to be constantly querying the database now, do we? Perhaps even a button added in the code above that performs this function manually, rather than on an automatic timer (ie "hit the button, all results below a certain percentage are deleted").

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:56 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08310 seconds
  • Memory Usage 2,317KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete