[ALPHA] Ultimate Quiz MOD v2.1.2 Progress

All web design discussion, including Ultimate Quiz MOD support.

Moderator: CricketMX Forum Moderators

Re: [BETA 4] Ultimate Quiz MOD v2.0.0 Progress

Postby subvertbeats » Fri Feb 05, 2010 2:41 pm

No problem - nice to be able to contribute something, even if so small, after all the help youve given me.


Quick question about the survey results in B4

As you recall, due to the nature of our quizzes (predictions) I disable the 'show answers' option as its meaningless in our context.

But Id still like to be able to show users a page with the 'survey graph' that shows the distribution of predictions.

Is it possible to formulate a link to show that based on the quiz ID?


Another couple of Q's about points:

a) is there a points mod that you recommend?
b) since updating to b4, I am unable to select 'yes' in the 'Turn on points compatibility' option. Is that because I dont have a point mod installed?
subvertbeats
Know-It-All
Know-It-All
 
Posts: 113
Joined: Thu Jan 14, 2010 6:07 pm

Re: [BETA 4] Ultimate Quiz MOD v2.0.0 Progress

Postby cs_ych » Sat Feb 06, 2010 1:01 am

Hi battye, this mod is really great~! But I found there are few bugs requires to fix:
  • quiz.php line 632
    Code: Select all
    $save_type = request_var('submit', '');

    should be something like this:
    Code: Select all
    $save_type = utf8_normalize_nfc(request_var('submit', '', true));

    otherwise, non English language type cannot submit or save quizes
  • quiz.php line 722 and 670
    Code: Select all
    $given_user_input = request_var('question' . $give_question_id, '');

    should also be something like this:
    Code: Select all
    $given_user_input = utf8_normalize_nfc(request_var('question' . $give_question_id, '', true));

hope it could help~ Thanks!
cs_ych
Greenhorn
Greenhorn
 
Posts: 1
Joined: Tue Apr 14, 2009 11:26 pm

Re: [BETA 4] Ultimate Quiz MOD v2.0.0 Progress

Postby battye » Sat Feb 06, 2010 7:09 am

Thanks for telling me about those bugs cs_ych! I hope the next release will be RC1 (I'm giving Beta 4 a bit of time for public use in case people find any bugs :wink:) so those UTF8 bugs you pointed out are on the list of things to do. :)

Things to do for RC1 are:

- Stats high percentage bug (subvertbeats)
- UTF8 bugs (cs_ych)


:)

subvertbeats, I see no reason why you can't use the survey feature. Turn it on in the ACP and see what happens :)
I haven't used any phpBB3 points/cash modifications so I have no recommendations. And yes, you can't turn on points compatibility unless the points MOD is installed - that's why the field is not clickable (this was a good idea, thanks to mtrs for that idea).
CricketMX.com.. home of bat's, rat's and other farmyard animals...
My articles: view all articles by battye

"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
User avatar
battye
Site Admin
Site Admin
 
Posts: 14273
Joined: Sun Jan 11, 2004 8:26 am
Location: Victoria Falls, Zimbabwe

Re: [BETA 4] Ultimate Quiz MOD v2.0.0 Progress

Postby subvertbeats » Sat Feb 06, 2010 8:53 am

Hi battye

Well I had turned it on and to this point (even after recreating that quiz having uncommented that line out, per the PM) Im still not seeing any survey results on the submit page.
subvertbeats
Know-It-All
Know-It-All
 
Posts: 113
Joined: Thu Jan 14, 2010 6:07 pm

Re: [BETA 4] Ultimate Quiz MOD v2.0.0 Progress

Postby battye » Sat Feb 06, 2010 9:04 am

It's most likely connected to this: viewtopic.php?p=99479#p99479
If there are no stats in the database, there are no surveys to display. :)
CricketMX.com.. home of bat's, rat's and other farmyard animals...
My articles: view all articles by battye

"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
User avatar
battye
Site Admin
Site Admin
 
Posts: 14273
Joined: Sun Jan 11, 2004 8:26 am
Location: Victoria Falls, Zimbabwe

Re: [BETA 4] Ultimate Quiz MOD v2.0.0 Progress

Postby subvertbeats » Sat Feb 06, 2010 9:07 am

as above, even having deleted the old quiz, recreated a new one, and several entries later....survey doesnt show.
I know that stats are correctly being recorded as i temporarily threw a couple of debug echos in various places to confirm.

is the quiz statistics overview table used for the survey (as the line that enters data into that table we still comment out from quiz.php) ?
subvertbeats
Know-It-All
Know-It-All
 
Posts: 113
Joined: Thu Jan 14, 2010 6:07 pm

Re: [BETA 4] Ultimate Quiz MOD v2.0.0 Progress

Postby battye » Sat Feb 06, 2010 9:10 am

No, it is the quiz_statistics table that is responsible for the surveys. (this is the line you leave uncommented)

Is there any data in the quiz_statistics table?
CricketMX.com.. home of bat's, rat's and other farmyard animals...
My articles: view all articles by battye

"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
User avatar
battye
Site Admin
Site Admin
 
Posts: 14273
Joined: Sun Jan 11, 2004 8:26 am
Location: Victoria Falls, Zimbabwe

Re: [BETA 4] Ultimate Quiz MOD v2.0.0 Progress

Postby subvertbeats » Sat Feb 06, 2010 9:20 am

battye wrote:No, it is the quiz_statistics table that is responsible for the surveys. (this is the line you leave uncommented)

Is there any data in the quiz_statistics table?


yes its recording data as normal now....

in the template (quiz_results_body.html) I have commented out some lines (eg RESULTS_SUMMARY, TIME_SUMMARY) but the following code is still active

Code: Select all
   <!-- IF U_SURVEYS_ON -->
   <div class="panel">
   <div class="inner"><span class="corners-top"><span></span></span>
   <h3>{L_QUIZ_SURVEY_FEATURE}</h3>

   <p>{L_QUIZ_SURVEY_FEATURE_EXPLAIN}</p>

   <fieldset class="polls">
   <!-- BEGIN survey_question_row -->
      <dl class="">
         <dt><br /><strong>{survey_question_row.QUESTION}</strong><br /><br /></dt>
      </dl>
      <!-- BEGIN survey_row -->
      <dl>
         <dt>{survey_question_row.survey_row.ANSWER}</dt>
         <dd class="resultbar"><div class="pollbar1" style="width:{survey_question_row.survey_row.PERCENT}%;">{survey_question_row.survey_row.COUNT}</div></dd>
         <dd>{survey_question_row.survey_row.PERCENT}%</dd>
      </dl>
      <!-- END survey_row -->
   <!-- END survey_question_row -->
   </fieldset>
   <span class="corners-bottom"><span></span></span></div>
   </div>
   <!-- ENDIF -->


so not sure why it shouldnt be showing...
subvertbeats
Know-It-All
Know-It-All
 
Posts: 113
Joined: Thu Jan 14, 2010 6:07 pm

Re: [BETA 4] Ultimate Quiz MOD v2.0.0 Progress

Postby battye » Sat Feb 06, 2010 9:35 am

Surveys are enabled in the ACP?
CricketMX.com.. home of bat's, rat's and other farmyard animals...
My articles: view all articles by battye

"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
User avatar
battye
Site Admin
Site Admin
 
Posts: 14273
Joined: Sun Jan 11, 2004 8:26 am
Location: Victoria Falls, Zimbabwe

Re: [BETA 4] Ultimate Quiz MOD v2.0.0 Progress

Postby subvertbeats » Sat Feb 06, 2010 9:46 am

indeed they are, and validated that fact in the DB too...
subvertbeats
Know-It-All
Know-It-All
 
Posts: 113
Joined: Thu Jan 14, 2010 6:07 pm

Re: [BETA 4] Ultimate Quiz MOD v2.0.0 Progress

Postby subvertbeats » Sat Feb 06, 2010 9:58 am

by the way this is by no means urgent :)
subvertbeats
Know-It-All
Know-It-All
 
Posts: 113
Joined: Thu Jan 14, 2010 6:07 pm

Re: [BETA 4] Ultimate Quiz MOD v2.0.0 Progress

Postby battye » Sat Feb 06, 2010 10:10 am

Have you purged the cache since you updated to Beta 4?
CricketMX.com.. home of bat's, rat's and other farmyard animals...
My articles: view all articles by battye

"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
User avatar
battye
Site Admin
Site Admin
 
Posts: 14273
Joined: Sun Jan 11, 2004 8:26 am
Location: Victoria Falls, Zimbabwe

Re: [BETA 4] Ultimate Quiz MOD v2.0.0 Progress

Postby subvertbeats » Sat Feb 06, 2010 10:20 am

yes, a few times now - both specifically deleted that template cache, and done a general purge cache.
subvertbeats
Know-It-All
Know-It-All
 
Posts: 113
Joined: Thu Jan 14, 2010 6:07 pm

Re: [BETA 4] Ultimate Quiz MOD v2.0.0 Progress

Postby battye » Sat Feb 06, 2010 10:45 am

OPEN quiz.php

FIND

Code: Select all
            $template->assign_vars( array(
               'U_SURVEYS_ON'            => ($survey_question_answers_progress && $survey_results_on),


BEFORE ADD:
Code: Select all
$test123 = ($survey_question_answers_progress && $survey_results_on);
echo 'RES: ' . $test123;


What is the output when trying to view a survey?
CricketMX.com.. home of bat's, rat's and other farmyard animals...
My articles: view all articles by battye

"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
User avatar
battye
Site Admin
Site Admin
 
Posts: 14273
Joined: Sun Jan 11, 2004 8:26 am
Location: Victoria Falls, Zimbabwe

Re: [BETA 4] Ultimate Quiz MOD v2.0.0 Progress

Postby subvertbeats » Sat Feb 06, 2010 4:27 pm

I will make that change and try - but is there a way to view a survey without going through the submit form?
Since we have the option set to only play once, I cant resubmit (I could create a new user for the purpose of the test but I dont want to affect the results)
Cheers!
subvertbeats
Know-It-All
Know-It-All
 
Posts: 113
Joined: Thu Jan 14, 2010 6:07 pm

PreviousNext

Return to Web Design

Who is online

Users browsing this forum: No registered users and 0 guests

cron