Quizzer.php

All web design discussion, including Ultimate Quiz MOD support.

Moderator: CricketMX Forum Moderators

Post Reply
User avatar
Lion
Greenhorn
Greenhorn
Posts: 3
Joined: Sat Sep 10, 2005 10:00 am
Location: Bastia (Corse)
Contact:

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 :wink:
User avatar
battye
Site Admin
Site Admin
Posts: 14391
Joined: Sun Jan 11, 2004 8:26 am
Location: Australia
Contact:

Hi :)

Could you please post line 151 - 154 of quizzer.php?

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)
User avatar
Lion
Greenhorn
Greenhorn
Posts: 3
Joined: Sat Sep 10, 2005 10:00 am
Location: Bastia (Corse)
Contact:

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 :shock:
User avatar
battye
Site Admin
Site Admin
Posts: 14391
Joined: Sun Jan 11, 2004 8:26 am
Location: Australia
Contact:

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 :shock:
Ahh, it might have had a problem with the % sign.

I will remember that fix, glad it is working for you mate :D
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)
User avatar
Lion
Greenhorn
Greenhorn
Posts: 3
Joined: Sat Sep 10, 2005 10:00 am
Location: Bastia (Corse)
Contact:

Thank's battye :wink:
Post Reply