Hi subvertbeats, Beta 4 will be coming out in the coming days so if you want to wait it might save some upgrade time.
The answer to your question is yes, you can use it to do predictions. But obviously it was not created with that in mind.
In the _quiz_statistics table everyone's answer is recorded (I originally did this as part of a statistics module). It would not be difficult to write a script (I could help you with this) which would output the answers users selected, I don't imagine it would be too hard to have it cross-reference the list of correct answers you specify.
[ALPHA] Ultimate Quiz MOD v2.1.2 Progress
Moderator: CricketMX Forum Moderators
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,
Thank you for the quick reply, good advice, and kind offer of help
I do have some coding experience, though am pretty rusty.
I'll keep an eye out for b4, and go from there!
Cheers again!
Ben
Thank you for the quick reply, good advice, and kind offer of help
I do have some coding experience, though am pretty rusty.
I'll keep an eye out for b4, and go from there!
Cheers again!
Ben
I'm happy to announce the release of Ultimate Quiz MOD v2.0.0 Beta 3 A special mention to quahappy and mtrs for their help squashing bugs in the lead-up to this release
The download is available from: Ultimate_Quiz_MOD_v200_beta3b.zip (Beta 3)
Here is a quick overview of the major changes:
The download is available from: Ultimate_Quiz_MOD_v200_beta3b.zip (Beta 3)
Here is a quick overview of the major changes:
Update details from Beta 2 are in the DIY instructions, but to briefly summarise... re-upload all of the quiz files and undo the change to the language/en/common.php file. There has been a change in the language file structure (thank you to mtrs for this idea) so that edit is no longer required. The SQL update includes a few changes to the phpbb_config table:ACP option can user play own quiz
ACP option to only allow admins to submit quizzes
Include quiz title on the results page
Fix the statistics / delete quiz bug
Change some language file structures and some additional small bugs
Show a message explaining that the final category cannot be deleted
ACP definable (optional) introductory text to the quiz index
A "new quiz" icon to show new quizzes since last login (also, new quizzes appear at the top of the quiz category)
ThanksINSERT INTO `phpbb_config` (`config_name`, `config_value`, `is_dynamic`) VALUES
('quiz_index_introduction', 'Introductory text to UQM.', 1),
('quiz_play_own_quiz', '0', 1),
('quiz_admin_only_submit', '0', 1);
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)
hello Battye,
thank you for beta 3
I just test it locally, and I see a problem ACP
accents are not taken
I do not see my text on the page quiz "welcome message on quiz index "
thank you for beta 3
I just test it locally, and I see a problem ACP
accents are not taken
I do not see my text on the page quiz "welcome message on quiz index "
Ah, thanks xpmen. Sorry about that.
Open includes/acp/acp_quiz.php
FIND
REPLACE WITH
Does that fix it?
Thanks
Open includes/acp/acp_quiz.php
FIND
Code: Select all
$quiz_welcome_message = $db->sql_escape( utf8_normalize_nfc(request_var('quiz_intro_index', '')) );
Code: Select all
$quiz_welcome_message = $db->sql_escape( utf8_normalize_nfc(request_var('quiz_intro_index', '', true)) );
Thanks
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)
but why I do not see my text on the index?
Did you refresh the cache after you re-uploaded the template files?
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)
yes
cache refreshes
style and template also
and I do not see an icon if new quiz
this option is not part of the beta 3?
cache refreshes
style and template also
and I do not see an icon if new quiz
this option is not part of the beta 3?
You've definitely re-uploaded quiz.php?
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)
I re checked and everything is good
this must surely be a problem of the passage of the beta 2 to beta 3
may be in db
this must surely be a problem of the passage of the beta 2 to beta 3
may be in db
As far as I know neither quahappy or mtrs had this problem, and they have both tested Beta 3.
Download quiz.php from your server and open it in Notepad or another text editor. If you look at line 1084, do you see:
? That confirms that you definitely are using the right set of files. It doesn't sound like a database problem, or else you would be getting an error or a blank area. Plus, if it is staying in the ACP field then it is working partially.
Have you tried clearing the cache directly? ie. going to the /cache/ folder in your FTP client and removing all of the files except .htaccess and index.htm
Download quiz.php from your server and open it in Notepad or another text editor. If you look at line 1084, do you see:
Code: Select all
// is the quiz new? posted since last login
$is_quiz_new_login = ($user->data['user_lastvisit'] < $row['quiz_date']) ? $user->img('icon_topic_newest', 'VIEW_NEWEST_POST') . ' ' : '';
Have you tried clearing the cache directly? ie. going to the /cache/ folder in your FTP client and removing all of the files except .htaccess and index.htm
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)
My apologies Battye
it came well quiz.php of which was not transferred
thank you for your patience and your help
it came well quiz.php of which was not transferred
thank you for your patience and your help
another question please Battye
For me, I find that 255 characters is too court
I only see that you use a table phpbb_config, and I can not change the varchar to text.
THERE will be possible to use another table or it will be possible to use the text to be able to more than 225 characters?
For me, I find that 255 characters is too court
I only see that you use a table phpbb_config, and I can not change the varchar to text.
THERE will be possible to use another table or it will be possible to use the text to be able to more than 225 characters?
Hi Battye.
Nice mod. Thank you.
It works all well. But i found something strange.
I create several quizes. Than I deleted all of them.
When I create new one (after I deleted last one), I dont see questions any more. Even if I edit quiz I can edit only title and not questions.
It happend on my live server and also on my localhost. I also reuploaded all files and purge cache.
Thanks
Nice mod. Thank you.
It works all well. But i found something strange.
I create several quizes. Than I deleted all of them.
When I create new one (after I deleted last one), I dont see questions any more. Even if I edit quiz I can edit only title and not questions.
It happend on my live server and also on my localhost. I also reuploaded all files and purge cache.
Thanks
xpmen, I am glad to hear that the problem was because of quiz.php not being transferred and not a bug in the MOD!
Regarding the 255 character limit, here is what you can do. Presuming you will not be changing the text regularly, open styles/prosilver/template/quiz_body.html and FIND:
Now, FIND:
REPLACE WITH the text you want to appear in the introduction message
You can still turn the introduction message on or off by leaving the field in the ACP completed or empty
zagor256, thank you for the kind words About the deleting problem, did you delete the quizzes through phpMyAdmin or using the Quiz Control Panel?
Regarding the 255 character limit, here is what you can do. Presuming you will not be changing the text regularly, open styles/prosilver/template/quiz_body.html and FIND:
Code: Select all
<!-- IF U_QUIZ_INTRODUCTION_VALID -->
<div class="panel">
<div class="inner"><span class="corners-top"><span></span></span>
{U_QUIZ_INTRODUCTION_TEXT}
<span class="corners-bottom"><span></span></span></div>
</div>
<!-- ENDIF -->
Code: Select all
{U_QUIZ_INTRODUCTION_TEXT}
You can still turn the introduction message on or off by leaving the field in the ACP completed or empty
zagor256, thank you for the kind words About the deleting problem, did you delete the quizzes through phpMyAdmin or using the Quiz Control Panel?
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)