MyQuiz - a quiz script that works with Coranto

Discuss news styles, css code, and other Coranto customizations in here...the possibilities are endless, so have at it!

Moderator: Spunkmeyer

MyQuiz - a quiz script that works with Coranto

Postby Footy » Sat Jul 10, 2004 11:34 am

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
Footy
 
Posts: 11
Joined: Wed Jun 02, 2004 7:54 am

Re: Quiz is it possible in coranto?

Postby Parahead » Sat Jul 10, 2004 4:40 pm

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?
Yes, I am still around...
www.parahead.com/coranto/
User avatar
Parahead
 
Posts: 4837
Joined: Fri Jan 12, 2007 8:54 pm
Location: Stockholm - Sweden

Postby bozoka45 » Sun Jul 11, 2004 12:22 am

I could probably get something like this going, but I think it would be EXTREMELY complicated and not worth anyone's time.
User avatar
bozoka45
 
Posts: 1159
Joined: Sun Mar 23, 2003 8:38 pm
Location: New Orleans

Postby Parahead » Sun Jul 11, 2004 8:52 am

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...
Yes, I am still around...
www.parahead.com/coranto/
User avatar
Parahead
 
Posts: 4837
Joined: Fri Jan 12, 2007 8:54 pm
Location: Stockholm - Sweden

Postby Footy » Sun Jul 11, 2004 3:31 pm

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
Footy
 
Posts: 11
Joined: Wed Jun 02, 2004 7:54 am

Postby Parahead » Sun Jul 11, 2004 3:44 pm

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...
Yes, I am still around...
www.parahead.com/coranto/
User avatar
Parahead
 
Posts: 4837
Joined: Fri Jan 12, 2007 8:54 pm
Location: Stockholm - Sweden

Postby Dale Ray » Sun Jul 11, 2004 3:54 pm

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 :)
Dale Ray
User avatar
Dale Ray
 
Posts: 1001
Joined: Sun Jan 19, 2003 6:02 pm
Location: NW Indiana

Postby Parahead » Sun Jul 11, 2004 4:43 pm

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:
Yes, I am still around...
www.parahead.com/coranto/
User avatar
Parahead
 
Posts: 4837
Joined: Fri Jan 12, 2007 8:54 pm
Location: Stockholm - Sweden

Postby Dale Ray » Wed Jul 28, 2004 7:39 am

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.
Dale Ray
User avatar
Dale Ray
 
Posts: 1001
Joined: Sun Jan 19, 2003 6:02 pm
Location: NW Indiana

Postby Parahead » Wed Jul 28, 2004 7:48 am

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?
Yes, I am still around...
www.parahead.com/coranto/
User avatar
Parahead
 
Posts: 4837
Joined: Fri Jan 12, 2007 8:54 pm
Location: Stockholm - Sweden

Postby Dale Ray » Fri Jul 30, 2004 6:06 am

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.
Dale Ray
User avatar
Dale Ray
 
Posts: 1001
Joined: Sun Jan 19, 2003 6:02 pm
Location: NW Indiana

Postby Dale Ray » Mon Feb 06, 2006 4:39 am

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.
Dale Ray
User avatar
Dale Ray
 
Posts: 1001
Joined: Sun Jan 19, 2003 6:02 pm
Location: NW Indiana


Return to Customization

Who is online

Users browsing this forum: No registered users and 1 guest

cron