News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

SMF Quiz

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

Previous topic - Next topic

Peyj

Wouldn't it be cool if admins and mods could create quizzes for the users to try themselves? With highscores and maybe the winning user would get +karma or something? Sinan talked about developing one in http://www.simplemachines.org/community/index.php?topic=239761.0 , but I cant find anything more on that subject so I re-propose this mod, kay? :D

d58e7

Yeah that would be a nice mod to have, especially if it's a forum for a fansite.

Nathaniel

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.
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

d58e7

Maybe a stat bar under karma for defining the user's quizing ability

Charles Hill

Should include a class of quiz:  Questionnaire.  The purpose of which would be to gather information not test users' mental agility.

Marcus Forsberg

Maybe support for SMFShop so that the winner gets XX credits for the Shop?

d58e7

Yeah if it integrated with SMFShop it could be really useful as people would be more likely to use it

d58e7

Well in theory couldn't it use the same system that makes polls but rather than make one poll create multiple polls with distinct correct options possibly by having a checkbox next to the poll option? Then on the final entry section it could have what the reward is with a dropdown box and a value box.

I have no idea how to code something like that, but that's how I see something like this being implemented.

mortymoose

I have been looking for a Mod of this style for a while, SMF uses a database to run, but I have 4 free databases available from my ISP, i would like to see a mod that can utilise one of them to run a Quiz addon mod, keep track of my members scores and hold the questions... I am not a programmer and therefore have no idea where to start..... But yes, I think this would be a most popular mod to have...


Nathaniel

This is a mod which I will definitely look at making, but not for ages. I might end up making it only for SMF 2 RC1 or something, it depends.
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

Perochak

yes, it will be helpful for me I will use to create my VU quiz system.
Gain Knowledge,Try it, Modify it if you can and Spread it.

******************************************
www.vusr.net

Sun11

This is really a kool idea for a family community or something, maybe a contest with most right answers..., really good idea :D

Nathaniel

I think that [Sinan] is having a think about it, I might wait until he has decided if he's going to do it or not. I am not that enthusiastic about it. But I do need to do a similar thing for my website. ;)

http://www.simplemachines.org/community/index.php?topic=239761.msg1631080#msg1631080
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

Perochak

Gain Knowledge,Try it, Modify it if you can and Spread it.

******************************************
www.vusr.net

Angelotus

I would like such a mod to for my website!

dwd2000

I would use it too.
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

geo32101

Anyone know if this was created?

dwd2000

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

[SiNaN]

We can code it with LHVWB when we will have some free time probably. It would be a good feature for my site too.
Former SMF Core Developer | My Mods | SimplePortal

quiz_modder

I am going to look into this one, please submit any suggestions here

http://www.smfmodding.com

Thanks

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...
Слaва
Украинi

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...
Слaва
Украинi

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: