Page 31 of 44

Re: [ALPHA] Ultimate Quiz MOD v2.1.1

Posted: Tue Oct 25, 2011 12:39 pm
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!

Re: [ALPHA] Ultimate Quiz MOD v2.1.1

Posted: Tue Oct 25, 2011 1:32 pm
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.

Re: [ALPHA] Ultimate Quiz MOD v2.1.1

Posted: Tue Oct 25, 2011 2:32 pm
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

Re: [ALPHA] Ultimate Quiz MOD v2.1.1

Posted: Thu Oct 27, 2011 12:21 am
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:

Re: [ALPHA] Ultimate Quiz MOD v2.1.1

Posted: Thu Oct 27, 2011 12:55 pm
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!

Re: [ALPHA] Ultimate Quiz MOD v2.1.1

Posted: Sun Nov 06, 2011 8:02 am
by smeely
Is there a download link somewhere?

Re: [ALPHA] Ultimate Quiz MOD v2.1.1

Posted: Sun Nov 06, 2011 4:29 pm
by Jessica
read the first post. if you want to try it out, request the download link and you'll get it by PM

Re: [ALPHA] Ultimate Quiz MOD v2.1.1

Posted: Thu Nov 10, 2011 6:04 am
by ankursays
Please, can I have a download link.

Re: [ALPHA] Ultimate Quiz MOD v2.1.1

Posted: Thu Nov 10, 2011 11:59 am
by wolfman24
@ankursays: Do you have problems reading the post above yours?

Re: [ALPHA] Ultimate Quiz MOD v2.1.1

Posted: Thu Nov 10, 2011 12:16 pm
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?

Re: [ALPHA] Ultimate Quiz MOD v2.1.1

Posted: Thu Nov 10, 2011 4:20 pm
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.

Re: [ALPHA] Ultimate Quiz MOD v2.1.1

Posted: Thu Nov 10, 2011 6:56 pm
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! (:

Re: [ALPHA] Ultimate Quiz MOD v2.1.1

Posted: Sun Nov 27, 2011 5:55 pm
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

Re: [ALPHA] Ultimate Quiz MOD v2.1.1

Posted: Thu Dec 01, 2011 1:00 pm
by saharanss
I am eagerly anticipating this mod version's official!
Sorry, i use google transale.

Re: [ALPHA] Ultimate Quiz MOD v2.1.1

Posted: Thu Dec 01, 2011 6:55 pm
by Jessica
when's the extra time coming up? D: