Download presentation
Presentation is loading. Please wait.
Published byJared Gibson Modified over 8 years ago
1
A Custom Forum Participation Report Sarah Ashley, M.S., M.Ed. Instructional Designer Rutgers Biomedical & Health Sciences (RBHS) New Jersey, USA
2
Background & Future Plans Currently Resides in Moodle 1.9 Quantitative Metrics Qualitative Feedback
3
Grading Capability based on Qualitative Data
4
Current Workaround with Configurable Report plugin
5
Sample Student’s Post Page Teacher can grade the post right on this page
6
What You Will Need: The Configurable Report block plugin Admin rights to install
7
Why Your Admin Might Refuse slow down DB take away resources inaccurate result set
8
General Settings Add block Manage Reports Add Report Set Type=SQL
9
SQL Query Window Here is where you enter your SQL Query
10
BASIC SELECT QUERY select from where orde r by report X Y A = B Z
11
The Report Table 1 Info A Info B Table 2 Info BInfo C Table 3 Info A Info D
12
Information We Need… Which course? Which forums? What role? Which statistics?
13
What should the report show? Students’ Names User, Role AssignmentNumber of Initial Posts COUNT, Forum DiscussionsTime Posted Forum DiscussionsNumber of Replies COUNT, Forum PostsTotal Number of Posts SUM
14
The “SELECT” piece of the Query SELECT user2.firstname, user2.lastname, SUM(IF(fp.parent=0,1,0)) AS 'Initial Post', DATE_FORMAT(FROM_UNIXTIME(fp.created),' %m-%d-%Y %H:%i') AS 'Time Posted', SUM(IF(fp.parent=0,0,1)) AS 'Replies', COUNT(*) AS 'Total Posts'
15
The “FROM” piece of the Query FROM prefix_forum_posts AS fp JOIN prefix_forum_discussions AS fd ON fd.id=fp.discussion JOIN prefix_user AS user2 ON user2.id=fp.userid JOIN prefix_role_assignments AS ra ON ra.userid=user2.id JOIN prefix_course AS c ON c.id = fd.course
16
The “WHERE” Condition WHERE fd.forum=1083 AND ra.contextid=4382 AND ra.roleid=5
17
Sorting & Grouping Results GROUP BY user2.lastname ORDER BY fp.created ASC, user2.lastname, fp.parent
18
Who has permission to view it?
19
Teacher duplicates for other forums WHERE fd.forum= 1083 AND WHERE fd.forum= 1083 AND
20
Non-SQL Reports 1 2 Select report type Add desired columns Add conditions 3
21
Sample Course Report List of my courses & Completion Tracking status
22
Thank You! Questions? Sarah Ashley @adjoshley Copy of this SQL Query and presentation are available on the Moodle Moot US 2015 site
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.