hey there,
I noticed that answering quizzes was throwing an error:
Fatal error: Call to undefined function userpoints_get_vid
that's because I had disabled the Userpoints module without ticking off Enable UserPoints Module Integration in admin/quiz/settings/config (under Addons Configuration).
when I tried to un-check that option, it was greyed out as enabled.
now I understand module dependencies can be quite complicated, but I think it'd be friendlier if that particular checkbox were disabled automatically if the Userpoints module were disabled as well. or the quiz in question could call drupal_set_message() and warn site admins without a WSOD.
what do you think?
cheers,
Luciano
Comments
Comment #1
luco commented... actually the code is working fine.
I checked line 2420 and it reads:
if ($quiz->has_userpointsetc.so I looked into the DB table
quiz_node_propertiesand there's a columnhas_userpointswhich registered 1 for every quiz created while Userpoints integration was on, and 0 otherwise.it means the actual problem is that there's no Userpoints integration checkbox for each quiz. at least I looked it over a few times and couldn't find it.
can we have that checkbox implemented?
thanks in advance.
Comment #2
sivaji_ganesh_jojodae commentedI will add function_exists check before making call to userpoints api. Checkbox to enable user points per quiz is already there but not properly organized. Will add a separate vertical tab for this. Also it would be nice to be able to assign points to specific category.
Comment #3
sivaji_ganesh_jojodae commentedFixed the issue and also have attached the patch to this comment.