Page 1 of 1

MyQuiz - a quiz script that works with Coranto

PostPosted: Sat Jul 10, 2004 11:34 am
by Footy
Is it possible at all to create a quiz in coranto like the one on http://www.nuedream.com/cgi-bin/nuequiz ... i?beginner if so could someone tell me how.

Thanks In Advance

Re: Quiz is it possible in coranto?

PostPosted: Sat Jul 10, 2004 4:40 pm
by Parahead
Footy wrote:Is it possible at all to create a quiz in coranto like the one on http://www.nuedream.com/cgi-bin/nuequiz ... i?beginner if so could someone tell me how.
To my knowledge there doesn´t exist a quiz addon, so I think you have two options...

The first one being to check out how the NueQuiz (or some other?) script is working and how it stores it's questions and maybe it could be possible to feed that script with newsitems entered in Coranto, which is a similar technique that has been used with other third party scripts, this calendar scipt for example.

The second approach would be to create an addon that does this, but that depends on if you know any Perl? My suggestion would be to create a new quiz profile type and maybe use a separete script to handle the submissions of use viewnews.cgi.

Anyone else having another solution?

PostPosted: Sun Jul 11, 2004 12:22 am
by bozoka45
I could probably get something like this going, but I think it would be EXTREMELY complicated and not worth anyone's time.

PostPosted: Sun Jul 11, 2004 8:52 am
by Parahead
bozoka45 wrote:I could probably get something like this going, but I think it would be EXTREMELY complicated and not worth anyone's time.
Depending on how much features you put into it I don´t think it would be *that* hard if created as an addon. Not done in a coffee break I admit, but quite doable...

PostPosted: Sun Jul 11, 2004 3:31 pm
by Footy
Thanks for help appreciate you taking the time to answer my question. In Nuequiz the questions are stored in a .db file as i do not know any perl i will have to wait and see if someone takes up this and creates a addon for coranto.

Thanks Again

PostPosted: Sun Jul 11, 2004 3:44 pm
by Parahead
Footy wrote:Thanks for help appreciate you taking the time to answer my question. In Nuequiz the questions are stored in a .db file as i do not know any perl i will have to wait and see if someone takes up this and creates a addon for coranto.
Well, you have to investigate a little more than comming to the conclusion that the data is stored in a .db file. For exampel, you could try and open the file and look at how it is organized, maybe you can create a profile that can replicate the content of that .db file...

PostPosted: Sun Jul 11, 2004 3:54 pm
by Dale Ray
NueQuiz uses a MySQL database and PHP.

I have found a perl quiz script that will work with Coranto. I am waiting for permission from the original author to distribute a modified version. This would work similar to smcCal with the quiz script using a flat file database managed by Coranto.

This topic made me curious, so I went looking for a solution. Google sure helps when it comes to satisfying curiosity :)

PostPosted: Sun Jul 11, 2004 4:43 pm
by Parahead
Dale Ray wrote:NueQuiz uses a MySQL database and PHP.
Aha, well then that is out of the question...

Dale Ray wrote:I have found a perl quiz script that will work with Coranto. I am waiting for permission from the original author to distribute a modified version. This would work similar to smcCal with the quiz script using a flat file database managed by Coranto.

This topic made me curious, so I went looking for a solution. Google sure helps when it comes to satisfying curiosity :)
Yeah, I was kind of trying to encourage Footy to do some investigation in that direction... ;-) But hey, this topic and solution is your kind of pie I would imagine? :lol:

PostPosted: Wed Jul 28, 2004 7:39 am
by Dale Ray
If anyone is interested in having a quiz script that interfaces with Coranto look at MyQuiz. This script will present a quiz using a flat file database for questions and answers. The database can be managed with Coranto (instructions included).

Let me know what you think if you use this. This is a modified version of quizz. The original author gave me permission to distribute this modified version. The work is 99% his.

I started this project a couple of weeks ago, got it 90% done and then it sat for a while. I decided tonight to finish it up before I forgot what I was doing. I hope someone finds it useful.

PostPosted: Wed Jul 28, 2004 7:48 am
by Parahead
Dale Ray wrote:If anyone is interested in having a quiz script that interfaces with Coranto look at MyQuiz. This script will present a quiz using a flat file database for questions and answers. The database can be managed with Coranto (instructions included).
Great work! :-D This brings up a point about the content on CTUS, maybe we should have a section with third party scripts that have been proven to be capable to interact with Coranto in a easy way...

I know that you Dale Ray has some, but there might be even more out there?

PostPosted: Fri Jul 30, 2004 6:06 am
by Dale Ray
I have posted a revised version of the MyQuiz script download. The script itself is unchanged, but there was an error in the Coranto style I included in the docs.

The error effected the display of the answer details and the last question of the quiz.

PostPosted: Mon Feb 06, 2006 4:39 am
by Dale Ray
I have had a potential security vulnerability in the MyQuiz script pointed out to me.

You can see information on this at:

http://evuln.com/vulns/57/summary.html

and:

http://evuln.com/vulns/57/exploit.html


I am posting here to notify any Coranto users who may be using the script of the vulnerability.

I have revised the script in an effort to close the security hole. You can download the revised script here. This is a 28k zip file that includes the docs for the script.

MyQuiz is a perl script for managing simple quizzes on your website and the questions and answers can be managed with Coranto.

EDIT: On 2/6/06 I received independent confirmation that I have fixed the security problem that was reported. You can download the revised version at the link listed above.

If anyone finds any additional problems - please let me know.

Thank you.