vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Inferno Quiz v2.2 (https://vborg.vbsupport.ru/showthread.php?t=83130)

bbcentral 06-17-2006 12:33 PM

Quote:

Originally Posted by Lil Ripsta
Whoa sexy man! Is this going to be for 3.5.x or 3.6.x?

I only have 3.5.x, but when I've got it all working I'll download 3.6.x and try it out on that.

So hopefully both :)

By the way, installation AND uninstallation of the product work perfectly now. That was hard work :p

Also, the Who is Online page used to be:
Unknown Location
/forum/quiz.php

Now it is:
Browsing Quizzes
Inferno Quiz

Any suggestions on how to word that better? Browsing is the only word I could think of that covers just about anything you can do in the quiz section.

Snake 06-17-2006 02:49 PM

Well you could try "Viewing Quizzes" since most of the vBulletin system refer as "viewing". ;)

So bbcentral, when do you intend to release it?

bbcentral 06-17-2006 02:56 PM

Quote:

Originally Posted by Lil Ripsta
Well you could try "Viewing Quizzes" since most of the vBulletin system refer as "viewing". ;)

So bbcentral, when do you intend to release it?

Well hopefully not too far away. It's a lot of work, but it will be done when it's done :)

I've just added the setting for disabling Private Messaging of the results. So now it just displays the results on the page instead of sending them via PM.

Also, if a quiz author says they will let people take the quiz more than once, it will only save the results if the score is higher than the previous time, or if they haven't taken the quiz yet.

And you can control how big the questions can be too, the default is 100 characters. I guess the downside is that you'll have to paste a long question in a single line text box, rather than a multi-line textarea. Should be ok for 90% of people, only a problem for people who allow full paragraph questions :p

bbcentral 06-18-2006 04:08 AM

Another screenshot.
This is the results screen after you complete a quiz.

Attachment 49581

And this is the NEW Inferno Quiz Settings page that I've added.
I don't like the idea of the script modifying a settings.inc.php file (hence the need to CHMOD that folder).

Attachment 49582

It's coming along nicely.

bbcentral 06-18-2006 05:25 AM

One more screenshot, of the PM received upon completing a quiz (if enabled in AdminCP)

Attachment 49583

Also, it's looking like it will just be too much work to give a choice between Points and Percentage. I may try another time, but it probably won't be an option when I first release this. The percentage code is buried all the way through the system. I would have to completely rewrite all this to switch it over to Points, and if Percentage is enabled then it just calculates:
(Number of Points / Number of Questions) * 100
to give you the percentage. Trying to turn a percentage back into points is a headache (and bad programming), especially for questions that have multiple answers.

Also there's some neat 'cheat protection' built in, which I've managed to improve upon (it wasn't scoring properly)

Question: What words contain the letter 'A':
1) Hello
2) Water
3) Night
4) Mechanic
5) Award
6) Juice

So you can see that 3 of those answers are correct. To get 100% you need to choose those 3 answers, and ONLY those 3.

Answers:

1) Hello
2) Water
3) Night
1/3 gives you 33%

2) Water
4) Mechanic
6) Juice
2/3 gives you 66%

2) Water
4) Mechanic
5) Award
3/3 gives you 100%

2) Water
4) Mechanic
5) Award
6) Juice
3/3 gives you 100%, but you choose 1 too many answers, so you get 66%

1) Hello
2) Water
4) Mechanic
5) Award
6) Juice
3/3 gives you 100%, but you choose 2 too many answers, so you get 33%

1) Hello
2) Water
3) Night
4) Mechanic
5) Award
6) Juice
3/3 gives you 100%, but you choose 3 too many answers, so you get 0%


This should handle every possible combination :)

amykhar 06-18-2006 09:16 AM

bbcentral, if it's going to use this code, you cannot start a new thread with your release without the original author's permission.

bbcentral 06-18-2006 09:44 AM

Quote:

Originally Posted by amykhar
bbcentral, if it's going to use this code, you cannot start a new thread with your release without the original author's permission.

OK, cool, thanks for the info :)

I think now I just have to get the admin panel working properly to handle the new field, and also fix some of the bugs. I keep getting an 'invalid date' error when I allow a submitted quiz, something to do with the unix timestamps being used.

Not sure of the best way to handle the image uploads, I think for now the administrator can just save and resize uploaded quiz images themselves, if they are too big.

Might have a zip file for people to try out sometime soon.
I'd also like to remove the need for legacy functions in this. I know ZT was planning to do it (his comment says he'll get to it eventually), but I might as well have a go at it.

UncoderMom 06-18-2006 03:03 PM

Great Hack! TY!

Anyone have any quiz exports they'd like to share ;)

Clicks installed

bbcentral 06-18-2006 03:06 PM

Quote:

Originally Posted by UncoderMom
Great Hack! TY!

Anyone have any quiz exports they'd like to share ;)

Clicks installed

There's a post quite a few pages back that lists all the quizzes people have posted in this thread. I can't remember where it is, but hey, it's only 26 pages to look through :)

UncoderMom 06-18-2006 03:14 PM

ROFL! Let me go stop my three kids from killing each orher and Ill get right on that ;) heheTY

Also, looking forward to your update! the true false is a awesome add to this hack...Also. is there anyway we can phrase bb code in the questions? Like the the actual Q asks who is this a picture of with multi answers :) This is a feature I need :)


All times are GMT. The time now is 12:52 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01594 seconds
  • Memory Usage 1,750KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete