Grabbing Statistics from the Moodle Site

Grabbing Statistics from the Moodle Site

Andrew Osiname發表於
Number of replies: 2

Hi all, I am new to moodle - coming from a Drupal background in PHP.

In Drupal, we never hack core code or any contributed modules when looking to modify them. There was almost always a way to override functions.

Is moodle the same? I assume you never hack core because of upgrades. What about contributed modules? How do we make them do more than they currently do?

The scenario is as follows: We have a feed back module that I found in moodle-root/mod/feedback

We want to generate page statistics for users who arrive at the landing page for the module.

Then, we want to generate stats again for each  user that completes the feedback survey so we can generate graphs ie:

Males that looked at the survey: 100
Males that completed the survey:50

Females that looked at the survey: 200
Females that completed the survey:190

I have found where i can inject code in the feedback to start gathering stats but I am not keen on adding this to the core code that came with the feedback module so was therefore wondering if there was another way to do it?

We have site statistics active but when I go into admin menu > reports > logs

There are 0 results found...?? In fact ALL the logs are empty..!!!!??! 傷心

評比平均分數: -
In reply to Andrew Osiname

Re: Grabbing Statistics from the Moodle Site

Aaron Wells發表於

It's also generally true in Moodle that you want to avoid editing core code when possible. In Moodle this is mostly accomplished by writing various types of plugins/modules. See this page for a list of all the plugin & module types: http://docs.moodle.org/en/Development#Make_a_new_plugin

Unfortunately they don't all seem to be well documented yet, probably because quite a few of them were recently added in Moodle 2.0.