[ALPHA] Ultimate Quiz MOD v2.1.2

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Get Involved
Locked
User avatar
Leinad4Mind
Translator
Posts: 863
Joined: Sun Jun 01, 2008 11:08 pm
Contact:

Re: [ALPHA] Ultimate Quiz MOD v2.1.1

Post by Leinad4Mind »

For portuguese brazilian, you need to in notepad++ convert to "UTF8 without BOM". So the file will be ANSI as UTF-8.

Cheers smallbreeds

-------


Now my problem! In ACP, the title says "ACP_UQM_QUIZ" just in pt language.
On english language it's fine!

Portuguese Translation:

Code: Select all

<?php
// Ultimate Quiz MOD ACP Quiz

/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

if (empty($lang) || !is_array($lang))
{
	$lang = array();
}

// Common
$lang = array_merge($lang, array(
	// Quiz Admin
	'ACP_UQM_QUIZ'				=> 'Quiz',
	'ACP_UQM_QUIZ_CATEGORIES'		=> 'Categorias',
	'ACP_UQM_QUIZ_CONFIGURATION'		=> 'Configuração',
	'ACP_UQM_QUIZ_FORM_INVALID'		=> 'O formulário deste quiz é inválido. Por favor, refaça-o de novo.',

	'ACP_UQM_EDIT_CATEGORY'			=> 'Editar categoria',
	'ACP_UQM_DELETE_CATEGORY'		=> 'Apagar categoria',
	'ACP_UQM_ADD_CATEGORY'			=> '%sAdicionar nova categoria%s',

	'ACP_UQM_CATEGORY_NAME'			=> 'Introduza o nome da categoria',
	'ACP_UQM_CATEGORY_ADDED'		=> 'A categoria <strong>%s</strong> foi adicionada com sucesso.',
	'ACP_UQM_CATEGORY_UPDATED'		=> 'A categoria <strong>%s</strong> foi actualizada com sucesso.',

	'ACP_UQM_DELETE_TITLE'			=> 'Apagar categoria',
	'ACP_UQM_DELETE_TITLE_CONFIRM'		=> 'Tem a certeza de que pretende apagar esta categoria e todos os questionários que estão presentes nessa mesma categoria?',

	'ACP_UQM_DELETE_SUCCESSFUL'		=> 'A categoria do quiz (e os questionários nele contidos) foram apagados.',

	'ACP_UQM_CONFIG_UPDATED'		=> 'As configurações do quiz foram actualizadas com sucesso.',

	'ACP_UQM_CONFIG_DEFINITIONS'		=> array(
		'qc_minimum_questions'		=> 'Número mínimo de questões',
		'qc_minimum_questions_explain'	=> 'Qual o número mínimo de questões permitidas por quiz?',
		'qc_maximum_questions'		=> 'Número máximo de questões',
		'qc_maximum_questions_explain'	=> 'Qual o número máximo de questões permitidas por quiz?',
		'qc_maximum_choices'		=> 'Número máximo de escolhas',
		'qc_maximum_choices_explain'	=> 'Qual o número máximo de escolhas permitidas por questão?',
		'qc_show_answers'		=> 'Mostrar respostas do quiz',
		'qc_show_answers_explain'	=> 'Deverão as respostas ser exibidas ao utilizador após este terminar o questionário?',
		'qc_quiz_author_edit'		=> 'Editar permissões',
		'qc_quiz_author_edit_explain'	=> 'Poderão os autores dos quiz editar e apagar os seus próprios questionários, inclusive qualquer dado relevante tal como as estatísticas desse questionário?',
		'qc_admin_submit_only'		=> 'Submeter permissões',
		'qc_admin_submit_only_explain'	=> 'Deverão os administradores ser os únicos com permissões para submeter questionários?',
		'qc_cash_enabled'		=> 'Activar integração "cash/points"',
		'qc_cash_enabled_explain'	=> 'Se instalou algum mod de "cash/points" e desejar integrá-lo com o "Ultimate Quiz MOD", active esta opção.',
		'qc_cash_column'		=> 'Coluna do "Cash/points"',
		'qc_cash_column_explain'	=> 'Lista da coluna na tabela dos utilizadores que está associada com "cash" ou "points".',
		'qc_cash_correct'		=> '"Cash/points" por respostas correctas',
		'qc_cash_correct_explain'	=> 'Quantos "cash/points" são ganhos após respostas correctas?',
		'qc_cash_incorrect'		=> '"Cash/points" descontados por respostas incorrectas',
		'qc_cash_incorrect_explain'	=> 'Quantos "cash/points" são descontados após respostas incorrectas?')
	));
English translation:

Code: Select all

<?php
// Ultimate Quiz MOD ACP Quiz

/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

if (empty($lang) || !is_array($lang))
{
	$lang = array();
}

// Common
$lang = array_merge($lang, array(
	// Quiz Admin
	'ACP_UQM_QUIZ'				=> 'Quiz',
	'ACP_UQM_QUIZ_CATEGORIES'		=> 'Categories',
	'ACP_UQM_QUIZ_CONFIGURATION'		=> 'Configuration',
	'ACP_UQM_QUIZ_FORM_INVALID'		=> 'This quiz form is invalid. Please resubmit it.',

	'ACP_UQM_EDIT_CATEGORY'			=> 'Edit category',
	'ACP_UQM_DELETE_CATEGORY'		=> 'Delete category',
	'ACP_UQM_ADD_CATEGORY'			=> '%sAdd new category%s',

	'ACP_UQM_CATEGORY_NAME'			=> 'Enter the category name',
	'ACP_UQM_CATEGORY_ADDED'		=> 'The category <strong>%s</strong> has been successfully added.',
	'ACP_UQM_CATEGORY_UPDATED'		=> 'The category <strong>%s</strong> has been successfully updated.',

	'ACP_UQM_DELETE_TITLE'			=> 'Delete category',
	'ACP_UQM_DELETE_TITLE_CONFIRM'		=> 'Are you sure you wish to delete this category and all of the quizzes inside it?',

	'ACP_UQM_DELETE_SUCCESSFUL'		=> 'The quiz category (and all quizzes inside it) has been deleted.',

	'ACP_UQM_CONFIG_UPDATED'		=> 'The quiz configuration settings have been successfully updated.',

	'ACP_UQM_CONFIG_DEFINITIONS'		=> array(
		'qc_minimum_questions'		=> 'Minimum number of questions',
		'qc_minimum_questions_explain'	=> 'What is the minimum number of questions permitted per quiz?',
		'qc_maximum_questions'		=> 'Maximum number of questions',
		'qc_maximum_questions_explain'	=> 'What is the maximum number of questions permitted per quiz?',
		'qc_maximum_choices'		=> 'Maximum multiple choices',
		'qc_maximum_choices_explain'	=> 'What is the maximum number of multiple choices permitted for a question?',
		'qc_show_answers'		=> 'Show quiz answers',
		'qc_show_answers_explain'	=> 'Should answers be shown to the user once they have completed the quiz?',
		'qc_quiz_author_edit'		=> 'Edit permissions',
		'qc_quiz_author_edit_explain'	=> 'Can quiz authors edit and delete their own quizzes as well as any associated data such as statistics for that quiz?',
		'qc_admin_submit_only'		=> 'Submit permissions',
		'qc_admin_submit_only_explain'	=> 'Should administrators be the only users permitted to submit quizzes?',
		'qc_cash_enabled'		=> 'Enable cash/points integration',
		'qc_cash_enabled_explain'	=> 'If you have installed a cash/points modification and wish to integrate it with the Ultimate Quiz MOD set this option to on.',
		'qc_cash_column'		=> 'Cash/points column',
		'qc_cash_column_explain'	=> 'List the column in the users table associated with cash or points.',
		'qc_cash_correct'		=> 'Cash/points for correct answers',
		'qc_cash_correct_explain'	=> 'How many cash/points should be awarded for correct answers?',
		'qc_cash_incorrect'		=> 'Cash/points lost for incorrect answers',
		'qc_cash_incorrect_explain'	=> 'How many cash/points should be deducted for wrong answers?')
	));
How can I solve that?

And in quiz.php I want to add a image button to the "submit quiz" text.

Cheers!
Want to access all my portuguese MOD and Extension translations?
Become my Patreon!
phpBB Portugal Translator and Moderator
User avatar
smallbreeds
Registered User
Posts: 193
Joined: Thu May 26, 2011 11:16 pm
Location: São José - SC - Brasil
Contact:

Re: [ALPHA] Ultimate Quiz MOD v2.1.1

Post by smallbreeds »

You need the package in Portuguese, as I can not attach here, I'll send you a PM. Make sure your language pack folder or language is en en. If different from the attached folder, rename.
You will notice that the files are already in UTF8 without good, but does not work.
Cid Lessa - Shih Tzu Forum

Sorry my bad english..
User avatar
Leinad4Mind
Translator
Posts: 863
Joined: Sun Jun 01, 2008 11:08 pm
Contact:

Re: [ALPHA] Ultimate Quiz MOD v2.1.1

Post by Leinad4Mind »

I've upload the files in pt folder. And the en files are not in UTF8 without BOM.
My translation works fine in everywhere exepct in title of ACP. Just that :D

PROBLEM SOLVED! :mrgreen: I've missed the language/pt/common.php edit LOOOL
Want to access all my portuguese MOD and Extension translations?
Become my Patreon!
phpBB Portugal Translator and Moderator
User avatar
Leinad4Mind
Translator
Posts: 863
Joined: Sun Jun 01, 2008 11:08 pm
Contact:

Re: [ALPHA] Ultimate Quiz MOD v2.1.1

Post by Leinad4Mind »

This mod is really great! But I found there are few bugs requires to fix:
Otherwise, non English language type will have ??? on á ã ó characters...

In quiz.php

FIND:

Code: Select all

$quiz_name = request_var('quiz_name', $quiz_information['quiz_name']);
REPLACE:

Code: Select all

$quiz_name = request_var('quiz_name', $quiz_information['quiz_name'],true);
FIND:

Code: Select all

			// Iterate through the question ids
			foreach($id_array as $i)
			{
				$quiz_question	= new quiz_question;
				$answer_array	= array();
				$answer_count	= 0;

				$question_name	= request_var('question_name_' . $i, '');
				$answer		= request_var('user_answer_' . $i . '_' . $answer_count, '');
				$correct_answer	= request_var('user_answer_' . $i . '_' . request_var('answer_' . $i, -1), '');

				// Loop through the multiple answers until there are no more
				while( !empty($answer) )
				{
					$answer_array[] = $answer;
					$answer_count++;

					// Update the answer value with the next...
					$answer = request_var('user_answer_' . $i . '_' . $answer_count, '');
				}
REPLACE:

Code: Select all

			// Iterate through the question ids
			foreach($id_array as $i)
			{
				$quiz_question	= new quiz_question;
				$answer_array	= array();
				$answer_count	= 0;

				$question_name	= request_var('question_name_' . $i, '',true);
				$answer		= request_var('user_answer_' . $i . '_' . $answer_count, '',true);
				$correct_answer	= request_var('user_answer_' . $i . '_' . request_var('answer_' . $i, -1), '',true);

				// Loop through the multiple answers until there are no more
				while( !empty($answer) )
				{
					$answer_array[] = $answer;
					$answer_count++;

					// Update the answer value with the next...
					$answer = request_var('user_answer_' . $i . '_' . $answer_count, '',true);
				}
:twisted:
Want to access all my portuguese MOD and Extension translations?
Become my Patreon!
phpBB Portugal Translator and Moderator
User avatar
Leinad4Mind
Translator
Posts: 863
Joined: Sun Jun 01, 2008 11:08 pm
Contact:

Re: [ALPHA] Ultimate Quiz MOD v2.1.1

Post by Leinad4Mind »

I've read that in previous versions was possible to set an option to activate "users just play a quiz once". In this latest version, isn't that possible?

Cheers!
Want to access all my portuguese MOD and Extension translations?
Become my Patreon!
phpBB Portugal Translator and Moderator
smeely
Registered User
Posts: 7
Joined: Wed Nov 02, 2011 6:31 am

Re: [ALPHA] Ultimate Quiz MOD v2.1.1

Post by smeely »

Is there a download link somewhere?
User avatar
Jessica
Former Team Member
Posts: 4342
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica
Contact:

Re: [ALPHA] Ultimate Quiz MOD v2.1.1

Post by Jessica »

read the first post. if you want to try it out, request the download link and you'll get it by PM
Pro-choice, Atheist, Pro-LGBT rights
Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. - Albert Einstein
ankursays
Registered User
Posts: 6
Joined: Thu Nov 10, 2011 6:03 am

Re: [ALPHA] Ultimate Quiz MOD v2.1.1

Post by ankursays »

Please, can I have a download link.
wolfman24
Registered User
Posts: 387
Joined: Tue Mar 07, 2006 12:07 pm

Re: [ALPHA] Ultimate Quiz MOD v2.1.1

Post by wolfman24 »

@ankursays: Do you have problems reading the post above yours?
smeely
Registered User
Posts: 7
Joined: Wed Nov 02, 2011 6:31 am

Re: [ALPHA] Ultimate Quiz MOD v2.1.1

Post by smeely »

well... sometimes it takes a long time for the PM to come... which then you start to think "is this still even going?" or the post was put up then it took a long time to be "moderator aproved"

i don't know, but i think that 3 years is a LONG testing period, but at least it will get hammered out real well.

P.S. Is there supposed to be a way of making a fill-out quiz, so people actually have to type in the answer?
User avatar
battye
Extension Customisations
Extension Customisations
Posts: 11048
Joined: Wed Feb 11, 2004 11:02 am
Location: Australia
Contact:

Re: [ALPHA] Ultimate Quiz MOD v2.1.1

Post by battye »

Yes it has been a long time, the good news is I actually (finally) have a little bit of extra time coming up. And UQM will be my number one priority - both the next release (and the extra time) has been a long time coming :)
Thank you everyone for your patience.
Customisations Team Member

https://github.com/battye/php-array-parser - Give it a Star! :D
User avatar
Jessica
Former Team Member
Posts: 4342
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica
Contact:

Re: [ALPHA] Ultimate Quiz MOD v2.1.1

Post by Jessica »

battye wrote:Yes it has been a long time, the good news is I actually (finally) have a little bit of extra time coming up. And UQM will be my number one priority - both the next release (and the extra time) has been a long time coming :)
Thank you everyone for your patience.
awesome! (:
Pro-choice, Atheist, Pro-LGBT rights
Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. - Albert Einstein
hywel
Registered User
Posts: 51
Joined: Mon Jul 12, 2010 12:53 pm

Re: [ALPHA] Ultimate Quiz MOD v2.1.1

Post by hywel »

battye wrote:Do you have phpMyAdmin?

If so, the current question field is set to varchar question_name VARCHAR(255) NOT NULL , and limited to 255 characters. You could set it to TEXT which should give it a lot more space
That's working like a charm, thanks for the tip.
Cheers
saharanss
Registered User
Posts: 16
Joined: Wed Aug 31, 2011 9:55 am

Re: [ALPHA] Ultimate Quiz MOD v2.1.1

Post by saharanss »

I am eagerly anticipating this mod version's official!
Sorry, i use google transale.
User avatar
Jessica
Former Team Member
Posts: 4342
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica
Contact:

Re: [ALPHA] Ultimate Quiz MOD v2.1.1

Post by Jessica »

when's the extra time coming up? D:
Pro-choice, Atheist, Pro-LGBT rights
Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. - Albert Einstein
Locked

Return to “[3.0.x] MODs in Development”