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?
[ALPHA] Ultimate Quiz MOD v2.1.2 Progress
Moderator: CricketMX Forum Moderators
Hi battye, this mod is really great~! But I found there are few bugs requires to fix:
- quiz.php line 632
should be something like this:
Code: Select all
$save_type = request_var('submit', '');
otherwise, non English language type cannot submit or save quizesCode: Select all
$save_type = utf8_normalize_nfc(request_var('submit', '', true));
- quiz.php line 722 and 670
should also be something like this:
Code: Select all
$given_user_input = request_var('question' . $give_question_id, '');
Code: Select all
$given_user_input = utf8_normalize_nfc(request_var('question' . $give_question_id, '', true));
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 ) 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).
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 in 2022: Still the home of bat's, rat's and other farmyard animals!
"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)
"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)
-
- Know-It-All
- Posts: 113
- Joined: Thu Jan 14, 2010 6:07 pm
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.
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.
It's most likely connected to this: http://forums.cricketmx.com/viewtopic.p ... 479#p99479
If there are no stats in the database, there are no surveys to display.
If there are no stats in the database, there are no surveys to display.
CricketMX.com in 2022: Still the home of bat's, rat's and other farmyard animals!
"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)
"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)
-
- Know-It-All
- Posts: 113
- Joined: Thu Jan 14, 2010 6:07 pm
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) ?
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) ?
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?
Is there any data in the quiz_statistics table?
CricketMX.com in 2022: Still the home of bat's, rat's and other farmyard animals!
"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)
"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)
-
- Know-It-All
- Posts: 113
- Joined: Thu Jan 14, 2010 6:07 pm
yes its recording data as normal now....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?
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 -->
Surveys are enabled in the ACP?
CricketMX.com in 2022: Still the home of bat's, rat's and other farmyard animals!
"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)
"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)
-
- Know-It-All
- Posts: 113
- Joined: Thu Jan 14, 2010 6:07 pm
indeed they are, and validated that fact in the DB too...
-
- Know-It-All
- Posts: 113
- Joined: Thu Jan 14, 2010 6:07 pm
by the way this is by no means urgent
Have you purged the cache since you updated to Beta 4?
CricketMX.com in 2022: Still the home of bat's, rat's and other farmyard animals!
"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)
"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)
-
- Know-It-All
- Posts: 113
- Joined: Thu Jan 14, 2010 6:07 pm
yes, a few times now - both specifically deleted that template cache, and done a general purge cache.
OPEN quiz.php
FIND
BEFORE ADD:
What is the output when trying to view a survey?
FIND
Code: Select all
$template->assign_vars( array(
'U_SURVEYS_ON' => ($survey_question_answers_progress && $survey_results_on),
Code: Select all
$test123 = ($survey_question_answers_progress && $survey_results_on);
echo 'RES: ' . $test123;
CricketMX.com in 2022: Still the home of bat's, rat's and other farmyard animals!
"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)
"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)
-
- Know-It-All
- Posts: 113
- Joined: Thu Jan 14, 2010 6:07 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!
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!