Social forum

user view reporting for the activity

 
Picture of Marcos R C
user view reporting for the activity
by Marcos R C - Tuesday, 2 September 2008, 4:23 PM
 

Hello,

I'm using the latest autoview on moodle 1.9.2, an also the latest activity locking moodle modification to make the presentations dependant on their previous ones. Autoview and activity locking work fine, except when the presentation is the prerequisite, witch is my objective. In that cases the activity lock doesn't unlock the activities, even when the autoview prasentation, the prerequisite, is viewed and marked as completed. I tried to figure out why, I think it is something related to the way autoview logs the user views of the presentations. The autoview presentations doesn't appear in the user's activity reports. Is there a way to enable it? Could you help me with some infomation about this?

Thanks,
Marcos

Picture of Tim Williams
Re: user view reporting for the activity
by Tim Williams - Tuesday, 2 September 2008, 5:36 PM
 
I've not looked at activity locking, so I'm not sure I can help you with that one - at the moment it's not something that we need to use.

As for the activity reports, this requires extra methods to be implemented in the autoview/lib.php file so that Moodle can get the correct information out of AutoView to display on this page, the missing methods should be called :

autoview_user_outline
autoview_user_complete

If you feel like implementing these methods and contributing them back, that would be great. As with the activity locking, it's not something we need right now so this isn't a development priority for me unless we have a customer who needs this.
Picture of Marcos R C
Re: user view reporting for the activity
by Marcos R C - Tuesday, 2 September 2008, 6:45 PM
 

Thanks, I'm researching on it now that I know what to look for.

Though I'm new at moodle.

Anyways, thank you, if I get something that works well I'll inform you.

Picture of Marcos R C
Re: user view reporting for the activity
by Marcos R C - Thursday, 15 January 2009, 12:22 PM
 

Hello again,

After some tests I've managed to make the Autoview module to log correctly in the activities reports, and so as to work with the Activity Locking.

The point was to change the log register in the view.php in the line

add_to_log($course->id, "autoview", "view", "view.php?id=$cm->id", $autoview->name, $cm->id);

to

add_to_log($course->id, "autoview", "view", "view.php?id=$cm->id", $autoview->id, $cm->id);

switching 'name' to 'id'.

And I've also added a copy of _user_outline and _user_complete from the resource module in lib.php, changing the 'resourse' entries for 'autoview', what seems to work pretty well.

Thanks for the atention.