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)

tanyeri24 07-07-2006 06:54 PM

sorry my mistake I don't know how but I downloaded 2.1 version, versio 2.2 is the newest. Downloaded and installed thanks.

bbcentral 07-13-2006 08:40 AM

Interesting suggestions everyone. Basically I'm just going to get it working, including the new features I said I would do. Anything else is too much for me. I'm not trying to rebuild it, just add a few critical features and fix some annoying bugs.
I will try to have an upload for everyone sometime soon, but no promises.

craiovaforum 07-18-2006 08:00 PM

Quote:

Originally Posted by oz_moses
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?


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.


it's very hard to do since you have to update each user and with my board that has more than 6.000 users and on a challenge for the world cup with prizes we had more than 2.000 users that took place in that challenge immagine the work we had to do ;)

oz_moses 07-20-2006 05:48 AM

true, would be a bit of a nightmare when you put it like that!
I've only got 20 users in my comp so slightly different scale ;)

I tried something the other day with opening/closing a quiz.. need to check if that re-calculates all the scores... would be a good solution if it does.

ryancooper 08-01-2006 03:01 PM

I get this error when trying to submit a quiz:

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 758

Anyhelp?

Sorry found it. Set pm limit to 0

ryancooper 08-01-2006 03:58 PM

OK I am having another problem. MY PM's are now coming all jumbled. I have allow VB code in pm's but it is nopt breaking the list so the questions do not come with breaks?

Any ideas?

nabeelaejaz 08-02-2006 06:08 AM

ok i am stuck here in the installation file:

- Upload the XML Plugin file - what xml file? and upload where?
- quiz-plugins.xml - now what do i do with this file and what is it for?

Thanks.

49er 08-05-2006 07:02 PM

Not been very bright i tried to make a quiz using an already made quiz xml file by changing the questions and answers, but when i tried to upload it i got this error: XML File Corrupted - Line: 2syntax error My questions are, first i hope i am not doing any wrong when using an already made file? and second if i am not, then is it actually possible to make quizzes this way if so what is it that i am doing wrong when changing all th equestions and answers? :alien:

Thanks.

blue6995 08-08-2006 07:40 AM

Since installing vb 3.6 I cannot close or delete a quiz through the ACP. When I try to do either I get the following text come up:

Admin Hash Mismatch

And ideas on how I can correct this?

Many thanks

MSC 08-08-2006 10:48 AM

Is there a way to allow users to edit their quizzes? I have it set so that users can submit a quiz, but they just end up submitting half-finished quizzes and they can't edit them as far as I can see.

It would also be good to see which users have subitted which quizzes. Is this possible?

Thanks,

Chris

amykhar 08-08-2006 02:09 PM

MSC, it can be done, but it took a lot of modifications. Mine is set up so users can test their quizzes before they submit them, and edit quizzes in progress to make corrections. Once they are submitted, they can no longer edit. I've also got mine set up to track the quiz authors.

My stuff is too tightly coded to my own forum to release it, but it's really not hard to do and can be done bit by bit as you have time.

tinkerbell 08-08-2006 02:31 PM

Thank you to those who have posted quizzes on here it got me started. In return here are 3 from me.

Our Galaxy
Ancient Cities
Ancient Rulers

Karen

MSC 08-10-2006 04:00 AM

Thanks Amy, your quiz is exactly what I was looking for. I'm trying to get my head around the PHP now but I think it might be beyond me.

Could you give me any hints as to which files I need to edit?

Cheers,

Chris

Conspiracy 08-11-2006 05:04 PM

Excellent hack, I was just wondering if there was anyway to disable members receiving PM's when they answer questions? As even though I've part answer enabled, for answers where i've got two names like 'Meredith and Derek' if the user writes 'Derek and Meredith' it will not count it.

amykhar 08-11-2006 07:04 PM

Quote:

Originally Posted by MSC
Thanks Amy, your quiz is exactly what I was looking for. I'm trying to get my head around the PHP now but I think it might be beyond me.

Could you give me any hints as to which files I need to edit?

Cheers,

Chris

All 3 of the quiz files. Just tackle small pieces at a time. As you do it, you'll learn a heck of a lot. Zero's code is easy to work with because it's readable.

MSC 08-12-2006 01:19 AM

Thanks Amy, one thing I can't seem to fathom is the use of eval() - why is this used?

Cheers,

Chris

tinkerbell 08-21-2006 09:05 PM

I solved my problem above but now have 2 others

1. Does anyone have any idea how I can clear the leaderboard

2. I want to set it so it doesnt record any scores from the admin team.

Any help here is appreciated, thank you

Karen

Snake 08-22-2006 01:33 PM

Will this even work on 3.6?

RobFerrari 08-25-2006 11:37 PM

I installed v2.2 fresh onto 3.6.0. I'm not familiar with Inferno yet, but most appears OK. I can't figure out how to add categories, but that is probably my own lack of experience.

I added a new quiz, but it isn't showing up in the Admin list. Is that because V2.2 isn't compatible with 3.6.0 yet?

This looks very promising. Thanks.

RobFerrari 08-25-2006 11:44 PM

Quote:

Originally Posted by blue6995
Since installing vb 3.6 I cannot close or delete a quiz through the ACP. When I try to do either I get the following text come up:

Admin Hash Mismatch

And ideas on how I can correct this?

Many thanks

Yes, I'm getting Admin Hash Mismatch too.

ubblite 08-26-2006 12:18 AM

This version is noted on VBH to work with vb3.6. I haven't tried closing or deleting a quiz as I'm not using it right now. Just wanted to provide the info & maybe I'll see if I can accomplish what you guys are having trouble with if I do use it again.

Chuck_cz 08-26-2006 04:01 AM

Hi guys, I have this problem that guest can't access Quiz area. I set up allow to access to all groups in main setting and in quiz itself but when I am not logged in I can't take a quiz. Any idea what to do or what to check?

Thanks Charles

Dez_U 08-26-2006 12:17 PM

I moved my site to a dedicated server and can no longer access the quiz page. I can access all the back end stuff from the admin pages b ut just can not get into the front end. Any help please

http://www.clanram.com/forums/quiz.php?

Chuck_cz 08-26-2006 12:42 PM

Whatever access I set it is still same. Registered users can access quiz area and guest can not.

I would love to have guests to be able to use this feature too. Any idea? Is there any way to set it manualy?

I can see changes in settings.quiz.php but still Guests Are Unable To Use The Inferno Quiz System. :-(

Is this script even set be used by guests? Can anyone help me or give me an answer?

Thanks Charles

RobFerrari 08-29-2006 09:49 PM

So I believe everyone with 3.6 and Inferno should be having "Admin Hash Mismatch" problems with files in the admincp?

https://vborg.vbsupport.ru/showthread.php?t=124257

How to fix for Inferno? I'm only getting when trying to open quiz.

Thanks.

craiovaforum 09-02-2006 02:49 PM

I have a problem with multimple choices questions and I cannot figure it out: sometimes it doesn't add all the correct answers, for example, if someone checks 2 out of 3 correct answers and 1 wrong, sometimes it adds 33% and sometimes 67%... I tried it myself with test accounts and for absolutely no reason, sometimes calculates only 1 answer as correct and sometmes 2...

Did someone had this problem before and soved it?

northernstar 09-06-2006 01:31 AM

Quote:

Originally Posted by Boofo
That's what the time limit on taking a quiz is for. Set it at 2 minutes and they don't have enough time to look up all the answers. ;)

Right now it let's them goto the quiz screen, see what the questions are, then close their browser and look up the answers or whatever, then come back and take the quiz. Is there a way around this?

amykhar 09-06-2006 01:01 PM

You could set a cookie when they enter the quiz. I use a cookie for guests who take quizzes, and it's really not difficult to do at all.

RobFerrari 09-06-2006 09:56 PM

Quote:

Originally Posted by amykhar
You could set a cookie when they enter the quiz. I use a cookie for guests who take quizzes, and it's really not difficult to do at all.

I see you aren't getting "Admin Hash Mismatch" and have 3.6, how did you fix that? Thanks.

amykhar 09-07-2006 01:53 AM

I haven't fixed it yet, to be honest. My quiz creation system is very different from the default. I create quizzes, not through the admincp, but through a refined front end that allows users to test their quizzes and edit if necessary before submitting for approval. It's streamlined to be more efficient for me; so I use that interface and approve my own quizzes. So, no hash mismatch errors to fix.

RobFerrari 09-07-2006 03:43 PM

Maybe Zero Tolerance is out of the business for updating these?

Any alternatives out there for quizzes that work with 3.6?

PuddingMonkey 09-09-2006 12:03 PM

I added this line:

Code:

echo '<input type="hidden" name="adminhash" value="' . ADMINHASH . '" />';
right under line 846, this line:

Code:

echo "<input type='hidden' name='fast_mod' />";
in admin_quiz.php and now it sort of works, except instead of allowing me to deactivate/activate/delete quizes it only deletes.

Edit: I tried commenting out the piece of code in global.php that checks for Admin Mismatch and then commenting out the line I added but it still only deletes quizes. This is (from what I could see) the related code. Any ideas?

Lines 824 to 863 (in the original, unedited file):

Code:

<script type='text/javascript'>
<!--
        function doFastMod(){
                if(confirm('Are you sure you want to do this?')){
                document.forms['cpform'].getElementsByTagName('input')[0].value = 'quiz_fast_mod'
                document.forms['cpform'].getElementsByTagName('input')[1].value = document.getElementById('fm').options[document.getElementById('fm').options.selectedIndex].value
                document.forms['cpform'].submit(true)
                } else {
                return false
                }
        }
-->
</script>


Lines 918 to 963 (in the original, unedited file):

Code:

        print_cells_row(array(
        "",
        "<b>Option</b>",
        ),'thead','','',1);

        $fastmod[] = array('open','Set State To Open');
        $fastmod[] = array('close','Set State To Closed');
        $fastmod[] = array('delete','Delete');

        $Display  = '<input type="button" class="button" tabindex="1" value="Execute Action" accesskey="s" onclick="doFastMod();" />';

        Print_My_DDM('With the selected quiz\'s...','fast_mod',$fastmod,-1,'fm');
        print_description_row($Display, 0, 2, 'tfoot','center');

        print_table_footer();

        print_cp_footer();
        exit;
}


// ###################### Quiz Quick Moderation ########################
if ($_POST['do'] == "quiz_fast_mod") {
       
        globalize($_POST,
                array(
                        'fastmod',
                        'fast_mod' => STR,
                )
        );

        if(!is_array($fastmod)){
        echo "You did not select any quiz's [<a href='javascript:history.go(-1)'>Back</a>]";
        exit;
        }

        if($fastmod == 'open'){
        $DB->query("update ".TABLE_PREFIX."quiz set q_state = 1 where qid IN(".implode(',',$fastmod).")");
        $Msg = "Quiz(s) State Set To Open";
        } else if($fastmod == 'close'){
        $DB->query("update ".TABLE_PREFIX."quiz set q_state = 0 where qid IN(".implode(',',$fastmod).")");
        $Msg = "Quiz(s) State Set To Closed";
        } else {
        $Engine->DeleteQuiz($fastmod);
        $Msg = "Quiz(s) Deleted Successfully";
        }


OrangeFlea 09-17-2006 06:07 PM

Dear Amy,

I'm simply in love with how you re-designed the look of your quiz page. It's easy to look at, user-friendly, and well-organized. I'd love to set my quiz page in a manner than reflects yours, but unfortunately I'm not as adept in code modification as you are apparently.

Is it possible you can share your style or provide the option of another one as visually effective without looking like yours 100%?

Morrus 09-17-2006 11:39 PM

Very nice hack! Working fine on my board.

A couple of suggestions for future versions (blatantly stolen from OKCupid!):

1) Some kind of results system, defined by the quiz creator. For example, if you score is under 10% it tells you you're X, if from 11%-30%, you're Y, from 31%-60%, you're Z, etc. Each results category would need a title, some text and (optionally) an image, so you'd end up with something like this: "Congratulations! you scored 94% in the Quantum Physics quiz! You are a master scientist!"; or "You only identified 7% of the TV theme songs - well done! That means you're no couch potato!"

2) Increase functionaility to include the "What X Are You?" type of quiz (for example, "What animal are you?" or "What TV action hero are you"?). This means that the quiz needs to track more than one attribute, with various questions being assigned to each attribute. Quiz creators should be able to define a number of attributes (catness, dogness, elephantness, etc) and for each question they add, the need to specify which attribute that question gives a point in.

If done elgantly, and combined with the results page (suggestion 1, above), the quiz could easily handle quite complex personality test, political tests and so forth.

Jellyhead 09-25-2006 03:45 PM

Has this been fixed? I am still getting Admin Hash Mismatch

amykhar 09-25-2006 04:20 PM

Quote:

Originally Posted by OrangeFlea
Dear Amy,

I'm simply in love with how you re-designed the look of your quiz page. It's easy to look at, user-friendly, and well-organized. I'd love to set my quiz page in a manner than reflects yours, but unfortunately I'm not as adept in code modification as you are apparently.

Is it possible you can share your style or provide the option of another one as visually effective without looking like yours 100%?

I'm sorry, but there're just way too many customizations in there for me to do an export of my templates for you. I keep hoping to find the time to do a rewrite of the quiz system, but just never seem to be able to do so.

murrtex 09-29-2006 10:05 PM

is it possible to port of vBa CMPS - Random Quiz?

OrangeFlea 10-01-2006 03:00 AM

Is there a way to resolve the "apostrophe bug"? Every time I enter a question with an apostrophe in the sentence, the quiz cuts the question from the point of the apostrophe when you add a quiz.

OrangeFlea 10-02-2006 01:17 AM

Help, anyone?

Icehawk002 10-02-2006 10:22 AM

Inferno Quiz 2.2 vb 3.6.1

When a quiz image is uploaded it appears in admin and is present in the quiz image folder on server, but when viewing quizzes the images are dreaded red x boxes.

Help anyone?


All times are GMT. The time now is 03:10 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.02170 seconds
  • Memory Usage 1,842KB
  • 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_code_printable
  • (6)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