[ALPHA] Ultimate Quiz MOD v2.1.2 Progress

All web design discussion, including Ultimate Quiz MOD support.

Moderator: CricketMX Forum Moderators

plasmino
Greenhorn
Greenhorn
Posts: 18
Joined: Sun Jan 17, 2010 3:35 pm
Location: Italia, Milano
Contact:

no other debug error, now is perfect for me
User avatar
quahappy
Happy, not Quappy
Happy, not Quappy
Posts: 2266
Joined: Fri Oct 10, 2008 8:56 pm
Location: South Yorkshire, UK

So far so good. Just testing it with normal user permissions now. No debug errors either (although I have debug off).

Quick question: Where is UQM configuration settings in ACP? :)
If you don't ask...
User avatar
battye
Site Admin
Site Admin
Posts: 14391
Joined: Sun Jan 11, 2004 8:26 am
Location: Australia
Contact:

quahappy wrote:So far so good. Just testing it with normal user permissions now. No debug errors either (although I have debug off).

Quick question: Where is UQM configuration settings in ACP? :)
ACP modules are on the to-do list for the next version. At the moment the configuration values can be adjusted manually in includes/quiz/quiz_configuration.php:

Code: Select all

		$this->qc_config_value = array(
			'qc_minimum_questions'		=> 3,
			'qc_maximum_questions'		=> 5,
			'qc_maximum_choices'		=> 3, // maximum multiple choices
			'qc_show_answers'		=> 1, // show the answers after a quiz
			'qc_quiz_author_edit'		=> 1, // allow the author to edit their own quiz
			'qc_admin_submit_only'		=> 0, // only administrators are allowed to submit quizzes

			// Cash compatibility
			'qc_cash_enabled'		=> 0, // enable cash functionality
			'qc_cash_column'		=> 'user_points', // associated column in the users table
			'qc_cash_correct'		=> 20.54, // cash gained for a correct answer
			'qc_cash_incorrect'		=> 10, // cash REMOVED for an incorect answer
		);
Edit: for the following values ('qc_show_answers', 'qc_quiz_author_edit', 'qc_admin_submit_only', 'qc_cash_enabled') 1 denotes "true" or "yes" while 0 denotes "false" or "no".
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)
plasmino
Greenhorn
Greenhorn
Posts: 18
Joined: Sun Jan 17, 2010 3:35 pm
Location: Italia, Milano
Contact:

quahappy wrote:Quick question: Where is UQM configuration settings in ACP? :)
nice question :D


for italian language
Attachments
it.zip
(2.14 KiB) Downloaded 305 times
User avatar
battye
Site Admin
Site Admin
Posts: 14391
Joined: Sun Jan 11, 2004 8:26 am
Location: Australia
Contact:

Thank you for the Italian translation plasmino :)

I mentioned that the ACP module hadn't been written yet in the private message :D
The next version I hope to have:
- UMIL (instead of the quiz_installer.php file)
- ACP modules (at the moment I'm storing the configuration values in the quiz_configuration.php file)
- Categories (every quiz is going into one category right now)
- Input answer (only multiple choice/true+false are present in 2.1.0 because I realised if a user tried to use a number as input answer it could potentially give an error, because the text box names are a number relating to a particular answer... so I need to figure out a way to circumvent that)
- Perhaps time limits... I'm not sure yet.
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)
plasmino
Greenhorn
Greenhorn
Posts: 18
Joined: Sun Jan 17, 2010 3:35 pm
Location: Italia, Milano
Contact:

ops, I had not read the pm ^ _ ^

sorry

:lol:
User avatar
quahappy
Happy, not Quappy
Happy, not Quappy
Posts: 2266
Joined: Fri Oct 10, 2008 8:56 pm
Location: South Yorkshire, UK

Thanks battye. Had overlooked that. :)

(I still had one remaining old UQM configurations file that appeared in ACP > General > Board Configuration > Board features. Threw me off track. Now removed).
If you don't ask...
User avatar
battye
Site Admin
Site Admin
Posts: 14391
Joined: Sun Jan 11, 2004 8:26 am
Location: Australia
Contact:

After a little convincing ( :wink: ) I've decided to add a couple more features before the first public release (namely categories and ACP functionality). Of course, if anyone wants an advance copy of Alpha 1 to help with testing that is not a problem - just let me know and I will send you the files.

I've already implemented categories (I did that tonight), so I just need to get the ACP modules working now before I make the public release. Here are some screenshots of the categories:
Categories - selected when adding or editing a quiz
Categories - selected when adding or editing a quiz
What categories look like on the index - please note that an individual category can be viewed by clicking the category name
What categories look like on the index - please note that an individual category can be viewed by clicking the category name

While I am posting screenshots, here is what the cash implementation looks like:
Cash results (after a user plays a quiz)
Cash results (after a user plays a quiz)
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)
Abera
Greenhorn
Greenhorn
Posts: 18
Joined: Sun Feb 13, 2011 3:18 pm

Sorry... I should have posted here. Yes please send me the files.
Thanks
User avatar
battye
Site Admin
Site Admin
Posts: 14391
Joined: Sun Jan 11, 2004 8:26 am
Location: Australia
Contact:

I've sent you a PM Abera :)

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)
Abera
Greenhorn
Greenhorn
Posts: 18
Joined: Sun Feb 13, 2011 3:18 pm

battye wrote:I've sent you a PM Abera :)

Thanks
This is what I get going live, or local:

It here a query that I can do manually?

[phpBB Debug] PHP Notice: in file /quiz_installer.php on line 55: mysql_query() [function.mysql-query]: Access denied for user 'SYSTEM'@'localhost' (using password: NO)
[phpBB Debug] PHP Notice: in file /quiz_installer.php on line 55: mysql_query() [function.mysql-query]: A link to the server could not be established
[phpBB Debug] PHP Notice: in file /quiz_installer.php on line 55: mysql_query() [function.mysql-query]: Access denied for user 'SYSTEM'@'localhost' (using password: NO)
[phpBB Debug] PHP Notice: in file /quiz_installer.php on line 55: mysql_query() [function.mysql-query]: A link to the server could not be established
[phpBB Debug] PHP Notice: in file /quiz_installer.php on line 55: mysql_query() [function.mysql-query]: Access denied for user 'SYSTEM'@'localhost' (using password: NO)
[phpBB Debug] PHP Notice: in file /quiz_installer.php on line 55: mysql_query() [function.mysql-query]: A link to the server could not be established

There was an error creating table phpbb_quiz...
There was an error creating table phpbb_quiz_questions...
There was an error creating table phpbb_quiz_statistics...
Installation is finished with errors.

Most likely me. #-o
Thanks
User avatar
quahappy
Happy, not Quappy
Happy, not Quappy
Posts: 2266
Joined: Fri Oct 10, 2008 8:56 pm
Location: South Yorkshire, UK

Abera wrote:Most likely me. #-o
Thanks
Nope - not you. Same happened to me and battye kindly pointed out what I needed to do (via PM):
battye wrote:Open quiz_installer.php and find if( !mysql_query($query) )

Replace with if( !$db->sql_query($query) )

As long as the tables don't already exist, that should work fine :)

The only reason I was using mysql_query was because $db->sql_query doesn't return errors in the way I wanted. Of course, mysql_query goes against the coding standard because it's database specific - but once I make a UMIL file that will no longer be a problem
As battye mentioned, installation issue won't be encountered when the UMIL file is created.

Hope that helps. :)

----------------------------------------------------------

I've playtested as Administrator and User and can confirm I have not encountered any issues. However, if I play and Submit a quiz without answering one or more questions, the results page shows as:

Code: Select all

Which home computer is the oldest?     Incorrect: You selected , the correct answer was Sinclair ZX81. 
Can "No answer given" or similar be displayed or not show "You selected ." at all when no answer is given?


Also, I noticed one additional variable missing from Configuration settings: Can quiz author play own quizzes. Is this intentional? :)
If you don't ask...
Abera
Greenhorn
Greenhorn
Posts: 18
Joined: Sun Feb 13, 2011 3:18 pm

quahappy wrote:
Abera wrote:Most likely me. #-o
Thanks
Nope - not you. Same happened to me and battye kindly pointed out what I needed to do (via PM):
battye wrote:Open quiz_installer.php and find if( !mysql_query($query) )

Replace with if( !$db->sql_query($query) )

As long as the tables don't already exist, that should work fine :)

The only reason I was using mysql_query was because $db->sql_query doesn't return errors in the way I wanted. Of course, mysql_query goes against the coding standard because it's database specific - but once I make a UMIL file that will no longer be a problem
As battye mentioned, installation issue won't be encountered when the UMIL file is created.

Hope that helps. :)
That did it. :wink:
Thank you
Abera
Greenhorn
Greenhorn
Posts: 18
Joined: Sun Feb 13, 2011 3:18 pm

Code: Select all

Which home computer is the oldest?     Incorrect: You selected , the correct answer was Sinclair ZX81. 
Off subject here, but quahappy... You have a Sinclair? My very first with all of the 4 meg and don't forget the burst mode. Then the Tandy. I don't remember the number on. Sold it in 1984. Then to the Vic 20, Commodore 64 and 128. I still have all of them and peripherals that go with them. Those were the days my friend. :)
The quiz is running fine for me.
Thanks
plasmino
Greenhorn
Greenhorn
Posts: 18
Joined: Sun Jan 17, 2010 3:35 pm
Location: Italia, Milano
Contact:

great news
Post Reply