Hi,
I started working on an additional module for Quiz. It automatically creates a new quiz node every day to provide a Daily Quiz on a site. The daily quizzes uses randomly selected questions. They all share common settings defined in the Quiz Configuration page. The module also provides a daily quiz page inviting the user to play the quiz every day. It also informs him/her of the score required to pass and the time limit (if any). Once a user has passed the quiz, the page contains it's results summary. Otherwise, it provide a link to the daily quiz for the day.
Combined with the userpoint module, it can also be used as incentive to get site members to come back everyday.
It is hosted on http://ur1.ca/ovtd but I would like to publish it to drupal.org.
Any feedback would be appreciated.
Note: I shortened the project URL to avoid triggering the spam filter.

Comments
This sounds like a cool
This sounds like a cool project, but couldn't cron take care of this fairly simply?
On that note, wouldn't it be easier to create a tutorial: 'how to create daily quizzes with the quiz module and cron'.
HOOK_cron
The module implements HOOK_cron to trigger quizzes creation. So yes, it simply uses cron. AFAIK, there is no way to create nodes (and quizzes) using cron without writing code.
It's provided as a module because the feature is simple enough to be re-used as is by non-coders.
I'm not sure
I think I would have trouble getting a module like this to work on my subdomain sites. I have never figured out how to get cron to run automatically on on a site residing in a folder like http://domain.com/mydrupalinstallfolder/sites/sub.domain.com, and accessed via http://sub.domain.com. I've tried a dozen variations on the standard cron job configuration, and nothing works. So, if cron isn't running regularly, would your script still work?
If your are not able to run
If your are not able to run cron properly on your site, you'll may face trouble sooner or later. Tons of Drupal modules, including core rely on a working cron. See http://drupal.org/cron for documentation and seek support if you can get it work.
Creating daily should work without cron if the dailyquiz page is checked by user everyday. As soon as somebody access the page, the quiz for today is created if it doesn't exists yet.
thanks, but
Obviously I don't understand the cron system very well at all. However, I really, truly have read the documentation page several times. Unfortunately, there's an awful lot of stuff in the cron documentation page that is Greek to me, and I haven't tried to follow instructions when I wasn't sure I was understanding them correctly. I did try the sudo stuff, and a bunch of other cron job syntax changes that I found with my Google search, but I did not try anything that involved running cron indirectly, nor did I attempt any changes to the cron script itself.
Despite that, I have successfully implemented several cron jobs, including some that back up my databases, and the one that calls the cron.php page in each of my sites. The trouble is that running domain.drupalfolder/cron.php does not have the desired impact on sites accessed at sub.domain.com even those these reside inside drupalfolder/sites. Email doesn't get sent, and the status report always claims that cron has not been run. I can run cron manually, and if I recall correctly, I get a permissions error message, BUT, the status warning goes away and all is well.
Obviously, you understand cron way better than I do. Can you explain why running domain.com/drupalfolder/cron.php does not seem to register an impact on subdomain folders when it is triggered by a cron job, but does when I run cron manually? I would really love to understand. I'm pretty good at fixing things I understand, but I have no background in server architecture, so much of what I have been able to find so far only half makes sense. Might it have something to do with ownership? Does it matter if my subdomain db ownership matches my site ownership?
poormanscron
Just use http://drupal.org/project/poormanscron
It'll save you a lot of grief.
Kyle Mathews
Thumbs up
I agree. Try IRC support via Freenode. But also post about the problem in the forums, please?
It's already there
I just searched the forums, and came up with this thread:
http://drupal.org/node/188589
I haven't studied it in gory detail, but it seems to chronicle problems very similar, if not identical to, mine. I don't see that the issue has been resolved, but the final comment makes a suggestion that sounds promising. I am coping it here in the hopes you can tell me whether this is worth trying, and what the correct syntax would be.
--pasted below--
an idea
aydos - February 12, 2008 - 07:44
im newbie and never tried this:
crontab -l:
0 * * * * /usr/local/bin/php -q /home/esadot/mycrons/cron.php
and in cron.php call
http://site.com/cron.php
http://sub-domain-1.site.com/cron.php
http://sub-domain-2.site.com/cron.php
i dont know the php function that call http pages.
is this solution posible?
Yeah. Cron would run a
Yeah. Cron would run a script. It wouldn't be a huge script.... But a script.
Should I delete my last comment? Sorry.
This would be a quiz editors
This would be a quiz editors dream come true! Arrange a daily quiz, with no effort! :)
Looks good
I just skimmed your web site and it looks like you've done some solid work around the Quiz module.
To get your code added to the official CVS, you can submit start a new issue and include it as a patch. Then the quiz admins can decide whether to include it. I'd want to hear from falcon before committing it in since he's the module lead now.
In the meantime, you might prefer to keep it in Mercury and we can link to your site as a source of optional add-ons. Let me know if your modules are ready for that.
http://educoder.org/
http://openeducationresearch.org/
I can't see the link
Hello,
I am really excited about this feature and i would like to collaborate, but unfortunately I can´t see the link. Can you post it again?
Thanks and regards from Perú.