Page 1 of 1
Quizzer.php
Posted: Sat Sep 10, 2005 10:20 am
by Lion
Hello,
I'm sorry for my bad english, I'm french and I don't speak and write english very well
I installed the UQM on my forum, it's working very well but there is bug when a member anwsers correctly to all the questions.
I 've got the following trouble message :
Warning: sprintf(): Too few arguments in /home/n/xxxxxxxxx/www/forum/quizzer.php on line 152
Thank you in advance for your precious help and answers

Posted: Tue Sep 13, 2005 12:14 am
by battye
Hi
Could you please post line 151 - 154 of quizzer.php?
Thanks

Posted: Tue Sep 13, 2005 10:15 am
by Lion
Hello battye
Line 151-154 of quizzer.php
Code: Select all
$display = sprintf($lang['congrats_quiz_100'], $userdata['username']);
if($board_config['quiz_cash_on'] == "On")
{
But when I replace in language/lang_french/lang_main.php
Code: Select all
$lang['congrats_quiz_100'] = 'Félicitations %s! Vous avez fait un score de 100% , bravo !';
by
Code: Select all
$lang['congrats_quiz_100'] = 'Félicitations %s! Vous avez fait un score parfait, bravo !';
The UQM working very well

Posted: Tue Sep 13, 2005 1:15 pm
by battye
Lion wrote:Hello battye
Line 151-154 of quizzer.php
Code: Select all
$display = sprintf($lang['congrats_quiz_100'], $userdata['username']);
if($board_config['quiz_cash_on'] == "On")
{
But when I replace in language/lang_french/lang_main.php
Code: Select all
$lang['congrats_quiz_100'] = 'Félicitations %s! Vous avez fait un score de 100% , bravo !';
by
Code: Select all
$lang['congrats_quiz_100'] = 'Félicitations %s! Vous avez fait un score parfait, bravo !';
The UQM working very well

Ahh, it might have had a problem with the % sign.
I will remember that fix, glad it is working for you mate

Posted: Tue Sep 13, 2005 2:50 pm
by Lion
Thank's battye
