vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Inferno Quiz v2.1 (https://vborg.vbsupport.ru/showthread.php?t=80780)

Mephisteus 05-01-2005 12:28 PM

Heres a suggestion :)

In an open question have it check for words. Then you can make questions like "Name 2 countries" while at the answer list you can have a full list of countries and as long as someone sais

England, Netherlands
America and India

It'll still count as a full 100%

Vevina 05-01-2005 07:52 PM

i'm getting this with the upgrade when i run the installer :(

Database error in vBulletin 3.0.5:

Invalid SQL: CREATE TABLE `quiz` (
`qid` INT( 15 ) NOT NULL AUTO_INCREMENT ,
`q_name` VARCHAR( 255 ) NOT NULL default '0',
`q_state` TINYINT( 2 ) NOT NULL default '0',
`q_perms` text not null,
`q_start` int(15) not null default '0',
`q_end` int(15) not null default '0',
`q_autoend` tinyint(2) not null default '0',
`q_timelimit` int(8) not null default '0',
`q_viewanswer` tinyint(2) not null default '0',
PRIMARY KEY ( `qid` )
) TYPE = MYISAM ;
mysql error: Table 'quiz' already exists

mysql error number: 1050

Vevina 05-01-2005 08:34 PM

geeze blonde moment again ... didn't look at the dropdown bar on the installer to upgrade

Paul M 05-01-2005 09:03 PM

Quote:

Originally Posted by sweet2sweet2
i'm getting this with the upgrade when i run the installer :(

Well this line is a bit of a givaway ...
Quote:

mysql error: Table 'quiz' already exists
The installer is not taking into account the fact that the quiz table already exists. You could just drop (or rename) the table (as long as it has nothing in it you want).

Scerina 05-01-2005 11:34 PM

what are the mySQL queries to run for this hack if it is a fresh new installation?

Zero Tolerance 05-02-2005 06:01 AM

Quote:

Originally Posted by Scerina
what are the mySQL queries to run for this hack if it is a fresh new installation?

The installer provides an uninstallation aswell as installation, if you want to re-install, just run the uninstaller, then installer :)
If you want to look at the mySQL queries, open admincp/quiz_install.php

And yes, you need to select upgrade when upgrading, otherwise it will think you're trying to install it fresh.

I'll take into consideration those idea's guys, right now I just got a load of work to get done.

- Zero Tolerance

YLP1 05-04-2005 05:16 PM

This is awesome....are there any plans to add a poll option to this? I realize there is forum polls but I have to use an external app for the monthly polls that I do for my community. This add on is awesome and could replace my outside poll apps.

Great Job!

xtreme-mobile 05-04-2005 06:56 PM

is there any way of setting this up so you can providea few different answers? what i mean is i had a member who answered 3 questions corectly but spelled it wrong so the quiz said it was wrong, also one answer to a question was colorado river and he just put colorado so it said he again had it wrong

is this possible? so we could put a few different variations in

many thanks

and its a great hack btw :)

Paul M 05-05-2005 01:26 AM

Quote:

Originally Posted by xtreme-mobile
is there any way of setting this up so you can providea few different answers? what i mean is i had a member who answered 3 questions corectly but spelled it wrong so the quiz said it was wrong, also one answer to a question was colorado river and he just put colorado so it said he again had it wrong

I highlighted the same problem earlier. I don't think there is much you can do about spelling errors, but what I need is for it to check if my 'proper' answer is contained in their answer. So in your case, you would make the answer "colorado", then as long as their answer contained your word, it would be marked correct.

What is also needed is an admin facility to correct peoples answers and marks, so if you can see they were right, but a spelling error caused it to be marked wrong, an admin can manually mark it as correct.

xtreme-mobile 05-05-2005 05:51 AM

yeh thats it paul

that would make this hack soo much better :)

MP3 05-05-2005 09:00 AM

nice hack

mtha 05-05-2005 10:15 AM

very cool hack,

it'd be great if the next verrsion will include these too :D

Quote:

Originally Posted by Paul M
Hi, I have installed this on our test system with a view to going live.

I have a few points & suggestions (some of which you may have covered already).

1. Add the ability for users to add quizes.

2. In the admin area, make the selecting of usergroups via tick boxes.

3. Add the ability in ACP to edit (moderate) peoples answers and re-submit.

4. Add the ability in ACP to delete a persons quiz submission.

5. Check if a person has previously submitted a quiz at the point of submission (I can backspace and re-submit a quiz as often as I want).

6. For timed quizes, check if a user has javascript enabled and prevent them taking part if not (otherwise they can bypass the timer simply by disabling JS).

7. For text answers, make the check more "fuzzy". For instance if the correct answer is "red" then if I enter "it's red" I will be marked as wrong, when in fact I'm correct.

Thanks.



Quote:

What is also needed is an admin facility to correct peoples answers and marks, so if you can see they were right, but a spelling error caused it to be marked wrong, an admin can manually mark it as correct.

brianstevz 05-05-2005 12:46 PM

Zero Tolerance puts out yet another great hack. Deepest respect man. I think I've installed virtually everyone of your hacks on my board. This one took me I think 3 minutes to install. VBulletin should be hiring you.:)

Polo 05-05-2005 12:48 PM

I dont know if this has been suggested, but the ability for users to submit quizes and then get approved by the administrator I think would be great :)

Zero Tolerance 05-05-2005 12:49 PM

Quote:

Originally Posted by brianstevz
Zero Tolerance puts out yet another great hack. Deepest respect man. I think I've installed virtually everyone of your hacks on my board. This one took me I think 3 minutes to install. VBulletin should be hiring you.:)

Thanks, and I seriously doubt vBulletin would hire me, 2 main reasons really:
1) I'm 17 years old
2) I have no official grades to do with anything computer related

And thanks for the ideas people, i'll see what i can do - probably start on v2 in a few days, just need to finish work off for a client first.

- Zero Tolerance

mtha 05-05-2005 05:07 PM

Quote:

Originally Posted by Zero Tolerance
Thanks, and I seriously doubt vBulletin would hire me, 2 main reasons really:
1) I'm 17 years old
2) I have no official grades to do with anything computer related

And thanks for the ideas people, i'll see what i can do - probably start on v2 in a few days, just need to finish work off for a client first.

- Zero Tolerance

wow, you got some talent :)


another feature for you

ability to add some kind of "long/short essay answers", so that some "grader" can read and give point for the writing, adding to the automatic ones (same as summiting answers, then admin can fix the score)

mtha 05-06-2005 03:03 PM

Quote:

Originally Posted by Paul M
4. Add the ability in ACP to delete a persons quiz submission.

I need this one to "test" taking quiz and remove myself, so I can "take" the quiz again, so I add a quick add-on to the file, so that you can view who's taking a quiz, and be able to "view" their status or delete him from quiz (so he can re-take it. (see attachment, you just need to replace the admin_quiz.php in admincp (make backup of the file if you use it)

Zero, feel free to add to your hack, if you think it's good.


more suggestion. adding "submission date" to the result would be nice, so that you know when someone submit answers.

Lionel 05-06-2005 03:16 PM

Can it be only one question per page, then go to next page? Long quizzes produce long pages.

Paul M 05-06-2005 03:19 PM

@ mtha - Thanks - I shall test this later. :)

mtha 05-07-2005 07:21 AM

suggestion:

- adding Quiz/test description would be nice. the description will be displayed when start taking the test, and on top of the questions.

mtha 05-07-2005 05:08 PM

Quote:

Originally Posted by Paul M
3. Add the ability in ACP to edit (moderate) peoples answers and re-submit.

4. Add the ability in ACP to delete a persons quiz submission.

well, the code doesnt look very clean in vB standards to me, it might not be optimized much, but the function should work.

you are also able to set which groups (groupid) or users (userid) allowed to edit answers (set in top part of the admin_quiz.php file).

mtha 05-08-2005 04:46 AM

more things to consider:

in ACP:
- display only questions for one quiz, if you have many quizes, and many questions in each, you dont want to display ALL questions for all quizes though.

- Add new question for THAT currently working quiz (preselect the current quiz)

I would also add a "start date" for a record, so people will know when some quiz start/end

mtha 05-09-2005 08:41 PM

Quote:

Originally Posted by Paul M
6. For timed quizes, check if a user has javascript enabled and prevent them taking part if not (otherwise they can bypass the timer simply by disabling JS).

or maybe adding two time stamp, one when you start the test, one when you finish the test. I'd like to keep this information for references

Paul M 05-10-2005 06:41 PM

Quote:

Originally Posted by mtha
well, the code doesnt look very clean in vB standards to me, it might not be optimized much, but the function should work.

It all seems to work fine here, Thanks.

mtha 05-10-2005 10:05 PM

Quote:

Originally Posted by mtha
or maybe adding two time stamp, one when you start the test, one when you finish the test. I'd like to keep this information for references

i am adding the timestamps for my own need :D


demo ...

mtha 05-10-2005 10:49 PM

Quote:

$s_name = trim(addslashes($s_name));

$DB->query("update ".TABLE_PREFIX."quiz set s_name='{$s_name}',s_state={$s_state} where sid='{$quiz['sid']}'");
Zero, there's some part in admin_quiz.php using s_name, but this field doesnt exist in the table. need some clean up?

mpadc 05-11-2005 09:30 AM

Great Stuff!

One sugestion how bout like displaying a league table of users

i.e

like displaying it like a league table

Username Average score No of Quiz taken Total Score

Zero Tolerance 05-11-2005 07:53 PM

Quote:

Originally Posted by mtha
Zero, there's some part in admin_quiz.php using s_name, but this field doesnt exist in the table. need some clean up?

Very true - that is obsolete code, as the engine redirect function is called first - which after execution calls exit, stopping any other php from being processed, i'll make sure it's removed from v2, since it's useless.

- Zero Tolerance

Zero Tolerance 05-12-2005 04:12 AM

- Bump -

Okay, i've finally got back on track and am ontop of things at the current moment - with that in mind i have started creating v2 of this system.

Planned Features
  • Ability To Import/Export Quiz's Via ACP
    • The system will export data into .xml format, allowing distribution of the XML file to others to 'share' quiz's.
    • Current Status: Pending
  • Quiz Results Moderation
    • Ability to edit/delete any submissions from members. Upon modification - user is notified of this and is shown the new results.
    • Current Status: Pending
  • JS Detection
    • The system will attempt to detect if JS is activated before allowing a user to proceed to a timed quiz. (This will not be fool proof)
    • Current Status: Completed
  • Part-Answer System
    • Text input answers will allow you to enable/disable the part answer system, this is recommended for 'one' (1) word answers. An example would be:
      Users Answer: it is london
      Actual Answer: London
      With 'Part-Answer' enabled on that question, the answer would be correct. This will allow more fluxuation, and correct a lot of answers which are not 'exact' but 'correct'.
    • Current Status: Completed
  • User Quiz Submissions
    • You may specify which usergroups can submit their own quiz's
    • Administrators have to allow submissions before they show
    • Current Status: Pending
  • Quiz Submission Spam Protection
    • Specify if a user can only submit 1 quiz every X hours, to prevent spam. (Only applies if usergroups are allowed to submit quiz's)
    • Current Status: Pending
  • Quiz Descriptions
    • Displayed on the page before starting the quiz
    • Current Status: Completed
  • Improved Visualization Of Questions Control
    • To cut down on long page displays - the system adds a expand/collapse system into all the quiz's, upon expanding the corresponding questions for that quiz appear, and vice versa.
    • Current Status: Completed
  • Overall Leader Board Statistics & Individual Leader Board Statistics
    • Overall Leader Board - Shows top X users with best average score (Username,# Of Quiz's Taken,Average Score)
    • Individual Leader Board - Shows top X users with the best score for a specific quiz (Username,Score)
    • Current Status: Pending
  • Use BBCode Within Quiz Questions
    • Enables admins to use bbcode formatting for quiz questions
    • Current Status: Completed
Hope to have this out very soon :)

- Zero Tolerance

mtha 05-12-2005 05:35 AM

Quote:

Originally Posted by Zero Tolerance
- Bump -
Okay, i've finally got back on track and am ontop of things at the current moment - with that in mind i have started creating v2 of this system.

wow, great, i am waiting for the new features.


Quote:

  • Improved Visualization Of Questions Control
    • To cut down on long page displays - the system adds a expand/collapse system into all the quiz's, upon expanding the corresponding questions for that quiz appear, and vice versa.
    • Current Status: Completed

It'd be great if administrator can format quiz questions too, so some important words in the question can be underlined, bolded, or colored somehow


It'd be great if you could consider adding quiz start_time and end_time in the result table too, so you can know when someone is taking the quiz (and when he finish it)
it's also a tool for admin to check if someone do the test unreasonably long or short.

[sql]
ALTER TABLE `quiz_results` ADD `r_start_time` INT( 10 ) NOT NULL;
ALTER TABLE `quiz_results` ADD `r_end_time` INT( 10 ) NOT NULL;
[/sql]

my cumtomized version is attached, (if you dont mind)

Paul M 05-12-2005 05:51 AM

Looking forward to v2 :)

I don't see any status for making the usergroup selections in the admin section tick boxes rather than the current left > right system. Is this not going to happen ?

Zero Tolerance 05-12-2005 08:31 AM

@ mtha - It will be done, sorry i won't download your version or use it, nothing against you at all, it's just i prefer to do things solo.

So i'll enable BB Code for the question input, and add start time and end time for the results so that it shows time taken :)

@ Paul M - Well, i kinda spent a time creating the engine to output that visual look of usergroup controlling, a lot of systems use checkbox's, and i like things to be different, and on a plus side, for forums with a 'lot' of usergroups, the page won't be super long.
But, in order to improve control elements, i have added 'Add All' and 'Remove All' buttons so that you can click one button to allow/disallow all usergroups, which should ease up a few things :)

- Zero Tolerance

Paul M 05-12-2005 04:05 PM

Sadly that doesn't really help me. Most of our quizes will need about 50% of our usergroups enabled. I'll have to look at hacking it so that some groups are pre-selected.

mtha 05-12-2005 06:40 PM

Quote:

Originally Posted by Zero Tolerance
@ mtha - It will be done, sorry i won't download your version or use it, nothing against you at all, it's just i prefer to do things solo.

So i'll enable BB Code for the question input, and add start time and end time for the results so that it shows time taken :)

sure, I just put there as reference. as long as it's functioning./

I already have the fields `r_start_time` and `r_end_time` as INT( 10 ), so hopefully it wouldnt be to hard to convert to your new system.

looking forward to seeing the new version coming out :D

Zero Tolerance 05-12-2005 06:42 PM

Quote:

Originally Posted by mtha
sure, I just put there as reference. as long as it's functioning./

I already have the fields `r_start_time` and `r_end_time` as INT( 10 ), so hopefully it wouldnt be to hard to convert to your new system.

looking forward to seeing the new version coming out :D

Well unfortunatly my host is down, and since i'm fed up with my host, i am moving, which does mean there will be an added few days delay on this release unfortunatly.

- Zero Tolerance

mtha 05-12-2005 08:29 PM

Quote:

Originally Posted by Zero Tolerance
Well unfortunatly my host is down, and since i'm fed up with my host, i am moving, which does mean there will be an added few days delay on this release unfortunatly.

- Zero Tolerance

hope your server will be back soon :D



some more suggestions:

- option that admin can add someone to the quiz (quiz moderator), and he can receive the quiz result PM too (option to turn on/off PM).

- available for admin so that he can send PM to all users who take a quiz, about the final result, or any additional information, or thankyou email when the quiz end.

Zero Tolerance 05-12-2005 08:46 PM

Quote:

Originally Posted by mtha
hope your server will be back soon :D



some more suggestions:

- option that admin can add someone to the quiz (quiz moderator), and he can receive the quiz result PM too (option to turn on/off PM).

- available for admin so that he can send PM to all users who take a quiz, about the final result, or any additional information, or thankyou email when the quiz end.

Server is up for now, i think i'll leave those for a future release though :)

- Zero Tolerance

mtha 05-12-2005 10:09 PM

Quote:

Originally Posted by Zero Tolerance
Server is up for now, i think i'll leave those for a future release though :)

- Zero Tolerance

:) more to come

i'd add user's IP_address to the result table too, for checking if someone is trying to take quiz many time, using different accounts.

mtha 05-13-2005 04:54 AM

Quote:

Originally Posted by Zero Tolerance
  • Overall Leader Board Statistics & Individual Leader Board Statistics



    Individual Leader Board - Shows top X users with the best score for a specific quiz (Username,Score)
    • Current Status: Pending
- Zero Tolerance

- maybe a option sorting by score, quiz taken date (start/end), username (and reverse order) would be nice.

- setting how many user to be displayed (changeable) or all users (with limited users per page)

Lord Brar 05-13-2005 04:56 AM

Awesome! Been wanting something like this for ages :)

Thanks!


All times are GMT. The time now is 10:43 AM.

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.01612 seconds
  • Memory Usage 1,852KB
  • 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
  • (23)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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