News:

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

Main Menu

SMF Quiz

Started by Peyj, June 22, 2008, 06:48:20 PM

Previous topic - Next topic

quiz_modder

Also looking for anyone with a little free time to test out when I release early versions to that site. If you are interested in helping, please reply at

http://www.smfmodding.com/index.php?topic=25.0

Thanks

dwd2000

I registered and tried to reply to the forum you specified and got an error message saying I am not permitted to reply.
30 years ago I was young and foolish.
Now I'm just young.

DAMMIT JIM...I'M A TWEAKER...NOT A CODER!!!

Dave's Games

quiz_modder

Quote from: dwd2000 on October 19, 2008, 06:36:45 PM
I registered and tried to reply to the forum you specified and got an error message saying I am not permitted to reply.

Whoops, I had turned off posting on the news forum, should be ok now  :D

dwd2000

Quote from: m4tthall on October 19, 2008, 06:46:35 PM
Quote from: dwd2000 on October 19, 2008, 06:36:45 PM
I registered and tried to reply to the forum you specified and got an error message saying I am not permitted to reply.

Whoops, I had turned off posting on the news forum, should be ok now  :D

;)
30 years ago I was young and foolish.
Now I'm just young.

DAMMIT JIM...I'M A TWEAKER...NOT A CODER!!!

Dave's Games

quiz_modder

A VERY early release of the SMF Quiz has been installed on my site - you will need to register on the site to test it properly.

http://www.smfmodding.com/

All comments welcome

dwd2000

Quote from: m4tthall on November 06, 2008, 07:08:37 PM
A VERY early release of the SMF Quiz has been installed on my site - you will need to register on the site to test it properly.

http://www.smfmodding.com/

All comments welcome

Very nice.
How do I get a copy for my beta site?
The only problem with non-multiple choice questions is spelling.
I tried the "Who Are They" picture quiz and got some wrong due to wrong spelling. (no capital letters, etc.)
30 years ago I was young and foolish.
Now I'm just young.

DAMMIT JIM...I'M A TWEAKER...NOT A CODER!!!

Dave's Games

ascaland

Quote from: LHVWB on July 06, 2008, 09:10:32 PM
That would be very nice, I'm looking at making some quizzes for my SMF website, so I will have a look into this Mod. Maybe we could start brainstorming what the mod would need?

At the moment there is the list of stuff from [SiNaN] that it very useful:
- Quiz categories
- Unlimited number of quizes
- A panel to control quizes, add questions, choices etc.
- A stat panel showing users' success.

Maybe under user post count, or on their profile page too? :)

quiz_modder

Thanks, feedback might be better on the smfmodding.com site.

The question types where it is not multiple choice will obviously require spelling, but you don't have to have non multiple choice questions on your own forum. The case should not make any difference, as it compares the two when they are converted to lower case.

The more people I get to test this on the smfmodding site the quicker I can get something completed and out there for others to use.

Cheers

Hiver101

i love to see this mod rocken...

quiz_modder

Version 1.0.2 of the Quiz has been installed on the http://www.smfmodding.com site for testing prior to release. Please review and provide feedback. The major change in this release is the introduction of quiz leagues.

Dzonny

is trere mod for this created?
It looks nice.. :)

Paracelsus

I think it is good enough to be released.

Is it going to be exclusive to 2.0? (I would like a 1.1.7 release in my case)

quiz_modder

Quote from: Paracelsus on February 04, 2009, 10:24:07 AM
I think it is good enough to be released.

Is it going to be exclusive to 2.0? (I would like a 1.1.7 release in my case)

I am currently making changes so it can be released via the SMF site. At the moment there are only plans for SMF 2, as there would be too much effort to maintain over both versions.

Paracelsus

Quote from: m4tthall on February 04, 2009, 10:55:28 AM
Quote from: Paracelsus on February 04, 2009, 10:24:07 AM
I think it is good enough to be released.

Is it going to be exclusive to 2.0? (I would like a 1.1.7 release in my case)

I am currently making changes so it can be released via the SMF site. At the moment there are only plans for SMF 2, as there would be too much effort to maintain over both versions.

Ok. I would be pleased though to have a "legacy" version for 1.1.7 even if that meant lack of support for that version, but I understand your point.

eric1234

Once i installed, i get this error :(

Fatal error: Cannot redeclare parseleaguemessage() (previously declared in /home/anixekai/public_html/testforum/smf/Sources/ScheduledTasks.php:733) in /home/anixekai/public_html/testforum/smf/Sources/SMFQuizAdmin.php on line 348

emanuele

#35
Easiest way to solve it should be to open SMFQuizAdmin.php, then look for:
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:
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;
}
}


BTW, is probably better if you use the support topic for that kind of questions. ;)


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.

Kindred

heh...  emanuele,

I'm not super familiar with the code, but shouldn't that be

if (!function_exists('ParseLeagueMessage'))

Also, Eric... and emanuele said, please use the mod support topic...
Слова
Украина

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

emanuele

How picky you are! :P

Yep, you are right. ;)


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.

eric1234

Quote from: emanuele on March 20, 2012, 03:23:39 PM
Easiest way to solve it should be to open SMFQuizAdmin.php, then look for:
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:
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;
}
}


BTW, is probably better if you use the support topic for that kind of questions. ;)
Is this talking to me? >.<

Quote from: Kindred on March 21, 2012, 01:43:32 PM
Argh sorry >.< I thought this is mods support thread >.<
heh...  emanuele,

I'm not super familiar with the code, but shouldn't that be

if (!function_exists('ParseLeagueMessage'))

Also, Eric... and emanuele said, please use the mod support topic...

Kindred

Quote from: Kindred on March 21, 2012, 01:43:32 PM
Also, Eric... as emanuele said, please use the mod support topic...
Слова
Украина

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: