News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

SMF Quiz

Started by Diego Andrés, February 18, 2009, 01:08:19 PM

Previous topic - Next topic

Dave J

If you are going to use the quizzes I have uploaded then just look at the titles of the individual files and create the categories that are in the file name of the imported file i.e. 'Pack 1 (14 Quizzes - Animals, Birds, Fish).xml' = 'Animals, Birds, Fish'

There is no automatic way this happens as far as the installation of the quiz is concerned.

If you want the images that I have used for the categories then click on the 'Arcade & Quiz Site' link below click on the 'Categories' (see screen shot 'screencats.png' below) button then copy the images to your PC, you should copy the images before creating the 'Categories' or you will have to go back and edit them after.

If you want quizzes to add to the new SMF2.1 quiz mod go here . There are also walkthroughs in the forum to explain how to install them and other tips.

crustybum

I have a problem regarding "leagues" it seems that no matter how many leagues i start it just gets stuck on the first round, i can see others have had the same problem...but i cant see a solution...anybody?

emanuele

I thought that problem was gone...are you using the "beta"?
I just installed the mod on a test site and I've started a league, the round last for a day, so tomorrow I'll be able to see if I can reproduce the thing.


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

crustybum

Cheers, yes using the beta, tried another on tuesday and and set it for 1 day...still same.

crustybum

Any update on this before my members start throwing things at me?  :laugh:

emanuele

Sorry for the late reply, you posted one hour before the end of the round and by the time the round should have updated I forgot the topic... :-[

I think I found at least one of the issues, I'll fix it in few hours.


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

crustybum


emanuele

Sorry, but SMF security comes first. ;)

Darn, it was a bug I thought I fixed a long time ago... ::)

In SMFQuizAdmin.php, find:
if (function_exists('ParseLeagueMessage'))
{
function ParseLeagueMessage($message, $quizLeagueName, $oldPosition, $newPosition, $positionMovement, $id_quiz_league)
{
global $user_settings, $scripturl;

// @TODO single replace
$message = str_replace("{quiz_league_name}", $quizLeagueName, $message);
$message = str_replace("{old_position}", $oldPosition, $message);
$message = str_replace("{new_position}", $newPosition, $message);
$message = str_replace("{position_movement}", $positionMovement, $message);
$message = str_replace("{quiz_league_link}", $scripturl . '?action=SMFQuiz;sa=quizleagues;id=' . $id_quiz_league, $message);
return $message;
}
}

and replace it with:
function ParseLeagueMessage($message, $quizLeagueName, $oldPosition, $newPosition, $positionMovement, $id_quiz_league)
{
global $user_settings, $scripturl;

// @TODO single replace
$message = str_replace("{quiz_league_name}", $quizLeagueName, $message);
$message = str_replace("{old_position}", $oldPosition, $message);
$message = str_replace("{new_position}", $newPosition, $message);
$message = str_replace("{position_movement}", $positionMovement, $message);
$message = str_replace("{quiz_league_link}", $scripturl . '?action=SMFQuiz;sa=quizleagues;id=' . $id_quiz_league, $message);
return $message;
}


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

crustybum

OK..done all that...no one can play the second round..or do i need to start a new league?

crustybum

For some reason people can only play the leagues as well....not the other quizes...they and me get the dreaded "You have already played this game......." :-\

emanuele

Did you run the scheduled task to start the new round?


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

crustybum


emanuele

Are you receiving the notifications (PMs) that the league has been updated?
Try to manually run the scheduled task, do you get any error?


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

crustybum

Quote from: emanuele on January 31, 2013, 04:22:29 AM
Are you receiving the notifications (PMs) that the league has been updated?
Try to manually run the scheduled task, do you get any error?

No notifications, and no errors..

novill

Thank you emanuele for your awesome work with this mod. It seems the localization problems is solved.

I translated this mod to my languages. But it seems that there are parts of the mod that is not in the languages directory. And i haven't find it. Can you help where can i find the rest.

I attached the hungarian language translation and a new gif. Thank you emanuel for your awesome work with this mod. It seems the localization problems is solved.

I translated this mod to my languages. But it seems that there are parts of the mod that is not in the languages directory. And i haven't find it.

I attached the hungarian language translation and a new gif.

novill

I can't find the next section.

Free Text 
Multiple Choice
True/False

It seems the other part of the quiz translation have i managed. Can someone show me where can i find the mentioned text? :o

Dave J

Quote from: novill on February 01, 2013, 10:16:03 AM
I can't find the next section.

Free Text 
Multiple Choice
True/False

It seems the other part of the quiz translation have i managed. Can someone show me where can i find the mentioned text? :o

This text is found in the 'Scripts/QuizClient.js' file
If you want quizzes to add to the new SMF2.1 quiz mod go here . There are also walkthroughs in the forum to explain how to install them and other tips.

emanuele

Quote from: crustybum on January 31, 2013, 05:52:27 AM
Quote from: emanuele on January 31, 2013, 04:22:29 AM
Are you receiving the notifications (PMs) that the league has been updated?
Try to manually run the scheduled task, do you get any error?

No notifications, and no errors..
Weird...it's working fine for me on a test site after the change...
Would it be possible to have a test account on your forum? (if you want give it the "manage quiz" permission)


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

cieplutki

How to create your own questions in the quiz, using xml template?





.

emanuele

Create the quizzes in the admin area, then go to admin > forum > quiz > quizzes, select the quizzes you want to pack (tick the checkbox on the left), fill the form at the end of the page (package name, package description, etc.) and finally click "package quiz". The download of the xml will start. ;)


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Advertisement: