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)

craiovaforum 06-09-2006 01:50 PM

Fatal error: Unable to proceed with save while $errors array is not empty in class vB_DataManager_PM in /includes/class_dm.php on line 756

anyone know how to solve this?

Bubble #5 06-09-2006 05:06 PM

Does this work with 3.6.X ?

Is there an option to pay/donate for an unbranded version?

:bunny:

amykhar 06-09-2006 05:08 PM

It seems to be working in 3.6. I haven't had time to really test it. Feel free to go to my site and take a quiz to see. (you don't have to register at my site to take quizzes. I've hacked it to work for guests)

Bubble #5 06-10-2006 08:32 PM

OK thanks for that. Unfortunately this mod doesn't have several very important features that are needed, and Zero Tolerance doesn't seem to be around anymore to add them, so we can't use it :(

amykhar 06-11-2006 01:35 AM

sure you can :D It didn't have several features I needed either. I just added them myself. Webmonkey is a great place to learn the basics of php and nothing teaches you coding better than doing something to a mod that you really need and want. ;)

Bubble #5 06-11-2006 04:00 AM

Quote:

Originally Posted by amykhar
I just added them myself.

If it were only that easy. There's only 24 hours in each day, and we only get 4 hours of sleep from that. We're already 2 months behind in three projects. Sometimes it's more than just a matter of reading something from a website like Webmonkey :(

bbcentral 06-16-2006 09:18 PM

OK, I've been reading this thread for the past 5 hours now, been over it several times while I've been working on the quiz.

I think the original quiz was done brilliantly, it's just a shame that it hasn't been updated in so long. Most of the comments here are from people who couldn't get it to work because of some simple error that could be easily fixed.
Most of the suggestions here actually sounded like really good ideas, so I'm currently working on getting some of them up and running.

I've used:
The 'product-infernoquiz.xml' file posted by mtha (Post #212)
The template changes suggested by y2krazy (Post #114)
as the basis of my changes. I've also used many of the comments to fix the bugs (apart from those caused by 'user error').

I stress that I'm only doing this for myself, I'm adding features I think I may use or my members might find useful. But I figure it would be unfair not to share all that with everyone else here, I may even get someone inspired to continue working on it.

New Features I am working on

* I've already added a 'True/False' question type which works perfectly.

* Send a PM to admin when a new Quiz is submitted, already working. It shows the name of the quiz, the description, the image and contains a direct link to the Moderate Quiz Submissions page in AdminCP. This should also have 2 settings:
1) Send a PM to admin when new Quiz is submitted (On or Off)
2) Username(s) to receive notification? (may or may not do this)

* Control over how the questions are ordered (thanks Bubble #5 for this idea!)
When you create a quiz, I'm going to try to add a select box to choose how the questions should be ordered:
-First->Last (Currently forced to this)
-Last->First (Should be easy enough)
-Random/Shuffled (To make cheating harder)

* When creating a quiz, allow/disallow users from taking the test more than once.

* Control over how scores are kept, a setting in AdminCP
-Percentage (eg 10 questions, 5 correct, 50% score)
-Points (eg 14 questions, 8 correct, 8 point score)
This has to be sitewide, rather than per-quiz, to ensure the Overall Leaderboard works correctly.

* Explanation of Answer option for each question, an optional textbox that allows the Quiz author to elaborate on the answer and explain why it is correct. I will try my best on this, but it doesn't sound terribly complex.

* Who is Online page should display that the user is on the Quiz section, rather than just 'Unknown Location' as it currently does.

* Maximum Question Length setting, currently locked to 100 characters but should be a user-defined setting.

* A vBulletin Options settings page for this quiz, because I see quite a few settings being required.


Here are some screenshots of how it's turned out so far, the layout itself is all thanks to y2krazy, but you can see some of the features I've added.

Creating true/false question
Attachment 49512

PM Notification of new Quiz Submission (includes direct link to AdminCP at bottom)
Attachment 49513

Taking the test with a true/false question (layout thanks to y2krazy)
Attachment 49514

Quiz Results PM
Attachment 49515

Quiz Stats for above test
Attachment 49516


I guess the ultimate goal here is to add all these features, get it working and stable, and make sure the installation is as simple as:
1) Upload files
2) CHMOD images folder (nothing else)
3) Import Product
4) Configure
5) Add link to navbar


I'm working on a local server, my changes are still fairly unstable, and there's a lot to go, but I need this thing working properly before I unleash it on my 10,000 or so forum members, so I will try to post as I work on it.

If anyone with good knowledge wants to contribute code or ideas, go right ahead (you can PM me if you like). Anything to save me some time would be most appreciated :)

Sooner95 06-17-2006 01:10 AM

would be cool to get this updated and /or a new RLS? this was a great start, but so much more can be done with it.

bbcentral 06-17-2006 06:50 AM

Quote:

Originally Posted by Sooner95
would be cool to get this updated and /or a new RLS? this was a great start, but so much more can be done with it.

Agreed. Not sure exactly how I'm going to post this. I'm thinking of just attaching the files to this thread, unless you think the changes will warrant setting up a new thread?
I guess it might need a new thread. Keeping track of bugs might be easier that way. It also would mean we can confirm it works with 3.5.4 and list it that way. Bubble #5 suggested I try to get it working with 3.6.x, which I might do when it's finished. It would only save time later on when we have to upgrade to the new version.

At the moment I'm just trying to clean up all the code. I've made some SQL and template changes, including:
-Renaming the db tables to infernoquiz_* (eg vb_infernoquiz_submissions)
-Renaming the templates to infernoquiz_* (eg infernoquiz_leaderboard_end)
-Grouped the templates under "Inferno Quiz Templates", for neatness
I was finding it very hard to work with the other way:
Custom Templates
-QUIZ
-quiz_cat_end
-quiz_cat_row
etc...

Now it looks like this:
Attachment 49538

And I always prefer to keep the name of the product in the db tables. The actual table structure is the same as before, and I'm hoping too many changes won't be required.

Snake 06-17-2006 12:12 PM

Whoa sexy man! Is this going to be for 3.5.x or 3.6.x?

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 :)

UncoderMom 06-18-2006 03:15 PM

The picture being rendered with img bbcode.

I also like the idea in post #229 :)

bbcentral 06-19-2006 06:26 AM

I think adding BBCode to the questions should be ok.
Let me try it....

Attachment 49636

Looks like it already supported it! (Good work ZT!)

The idea in #229 is a good one, but it's not something I have time to put in. The scoring system is too complex. I'm just trying to add some basic features I need, and make sure it works properly.

Hopefully if ZT gets back on it, he can continue from what I've done.

Bubble #5 06-19-2006 08:54 PM

Looking good bbcentral :) Here are a few new ideas for features that you could add very simply. One is a space reserved at the top of the quiz which contains the quiz instructions, and any limitations (such as a time limitation). A simple radio button or check box could turn this feature on/off. An image could also optionally be posted in this area. (see screenshot below).

Also finishing actions, which will tell the quiz what to do (or where to send the quiz taker) if the quiz has been passed or failed. It would either close the quiz normally or send the quiz taker to another URL (page) which the admin could then pre-make and customize to fit their forum. (see screenshot below).

craiovaforum 06-20-2006 09:57 AM

request: add the posibility to create a question without an answer and after a while the admins could insert the correct answer and all the stats should be updated. I'm using this hack for the WC matches (like a betting service with prizes) and obviously I don't know the answers before (match results). This could be usefull for this kind of "competitions".

Bubble #5 06-20-2006 05:13 PM

Quote:

Originally Posted by craiovaforum
request: add the posibility to create a question without an answer and after a while the admins could insert the correct answer and all the stats should be updated.

Wouldn't it make more sense (and be MUCH easier) to just post the question in a survey and see who answered what later? Or just post the bet in simple text form but don't request an answer, and then afterward (when you know the answer) re-ask in a text form or multiple choice form?

Bubble #5 06-21-2006 07:31 AM

Once this has been released we will be reworking it for Mac users, so that it can use the new Growl technology in OS X :bunny:

craiovaforum 06-21-2006 02:58 PM

Quote:

Originally Posted by Bubble #5
Wouldn't it make more sense (and be MUCH easier) to just post the question in a survey and see who answered what later? Or just post the bet in simple text form but don't request an answer, and then afterward (when you know the answer) re-ask in a text form or multiple choice form?

there are more questions not only 1 ;)

for each game there is a question... and 3 answers: 1 x and 2

bbcentral 06-24-2006 01:38 PM

All interesting ideas.
I think the quiz instructions field is something I definitely want, although I wonder what the point of the checkbox is. If you don't want quiz instructions, leave the box blank and I'll make sure the code doesn't try to display anything.
The pass/fail thing is just too much work for me. I'll have a look but I really doubt I can do something like that in the limited time I have. Pretty much anything that involves the results/score is complicated, and I've found it hard to work with.

craiovaforum, you just described a completely different product which I have absolutely no use for :)

I'm taking some time to work on other parts of my site, as well as the 3 other projects I have going. I figure I'll let things sit here for a little while, see what people suggest, get some feedback, before I get stuck into coding this again. Adding a new field is quite a messy process, I'd like to have a complete list of what's needed before adding them again, rather than doing them as they are suggested.

Bubble #5 06-28-2006 12:19 AM

Quote:

Originally Posted by bbcentral
I wonder what the point of the checkbox is. If you don't want quiz instructions, leave the box blank and I'll make sure the code doesn't try to display anything.

This is good but the checkbox is more straight forward. Everyone understands on/off ;)

Davidspl 07-01-2006 01:18 PM

thank you Zero Tolerance :)

anyone got any quizes they want to share :)

Snake 07-02-2006 05:56 PM

No more news so far?

jaks 07-04-2006 10:21 AM

Awesome to hear someone is going to help out Zero Tolerance :)

I've been dyin for an update. The answer explanation field is my biggest want but sounds like you are tackling some wicked improvements.
One thing I didn't see in your plans was a VBA module. That would be a mighty slick addon. Pain in the ass to do it manually. Last 10 Quizzes added, Top ten scores, Most popular quizzes. Preferrably the first one...:cool:

Can't wait....:banana:
Jaks

oz_moses 07-04-2006 11:26 PM

Thanks ZT, another quality hack from Inferno - installed no wuckas.
Just one query for you - is it possible to have a single-selection drop-down?

Quote:

Originally Posted by craiovaforum
request: add the posibility to create a question without an answer and after a while the admins could insert the correct answer and all the stats should be updated. I'm using this hack for the WC matches (like a betting service with prizes) and obviously I don't know the answers before (match results). This could be usefull for this kind of "competitions".

Exactly what I'm thinking craiovaforum, this would be an awesome modification to allow the quiz hack to be used as a tipping engine for sports matches, and I've got it working for me.. though kind of dodgily I'll happily admit.

Here's the changes I've made to facilitate this:
- disabled the PM's upon quiz completion (via commenting out the PM sections of /admincp/admin_quiz.php and /quiz.php)
- modified the 'quiz_thanks' template from 'Thank you for taking the quiz, your results have been PM'ed to you, check your Inbox to see them.' to 'Thank you for submitting your tips. Results will be posted next week.'
- Created a quiz, but left the 'correct answer' blank for each question
- The quiz is set to close the day before game day

- allow the users to take the quiz.. questions such as 'pick the result: wallabies, draw, all blecks' and 'who will score first try? Tuqiri, Latham, any other Wallaby'

- after the game I then 'Control Quiz Questions' and edit each question to input the now correct answer

- I then need to 'Moderate Quiz Results' and click 'Edit' followed by 'Update' for each user. It would be really nice if there were a query I could run that does a bulk update of all results.. but this is working for now.

- Finally I check all users who have 0% as I could have missed them.

Hope this helps,
Moses.

tanyeri24 07-07-2006 12:50 AM

doesn't work for 3.5.4

jaks 07-07-2006 05:17 AM

Any news? :cool:

amykhar 07-07-2006 11:12 AM

It works for 3.5.4. It's still working in 3.6

Snake 07-07-2006 02:06 PM

Quote:

Originally Posted by jaks
Any news? :cool:

I guess not...

tanyeri24 07-07-2006 04:28 PM

Quote:

Originally Posted by amykhar
It works for 3.5.4. It's still working in 3.6

If I will install it I became this error:

Error - //quiz.xml not found - Please upload it to continue.



And yes I have all files Uploaded like written in .txt file:
Quote:

First go inside the folder 'UPLOAD' contained within this download,
then upload its 'contents' (not the folder itself) to your forums 'ROOT DIRECTORY'

amykhar 07-07-2006 04:57 PM

the xml file goes in the xml directory, which is in the includes directory.

tanyeri24 07-07-2006 06:10 PM

Quote:

Originally Posted by amykhar
the xml file goes in the xml directory, which is in the includes directory.

Hi, thanks for your answer. I uploaded it to root/includes/xml/quiz.xml but still says at fresh intallation:
Error - //quiz.xml not found - Please upload it to continue.


All times are GMT. The time now is 11:38 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.01937 seconds
  • Memory Usage 1,860KB
  • 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
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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