A Custom Forum Participation Report Sarah Ashley, M.S., M.Ed. Instructional Designer Rutgers Biomedical & Health Sciences (RBHS) New Jersey, USA
Background & Future Plans Currently Resides in Moodle 1.9 Quantitative Metrics Qualitative Feedback
Grading Capability based on Qualitative Data
Current Workaround with Configurable Report plugin
Sample Student’s Post Page Teacher can grade the post right on this page
What You Will Need: The Configurable Report block plugin Admin rights to install
Why Your Admin Might Refuse slow down DB take away resources inaccurate result set
General Settings Add block Manage Reports Add Report Set Type=SQL
SQL Query Window Here is where you enter your SQL Query
BASIC SELECT QUERY select from where orde r by report X Y A = B Z
The Report Table 1 Info A Info B Table 2 Info BInfo C Table 3 Info A Info D
Information We Need… Which course? Which forums? What role? Which statistics?
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
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'
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
The “WHERE” Condition WHERE fd.forum=1083 AND ra.contextid=4382 AND ra.roleid=5
Sorting & Grouping Results GROUP BY user2.lastname ORDER BY fp.created ASC, user2.lastname, fp.parent
Who has permission to view it?
Teacher duplicates for other forums WHERE fd.forum= 1083 AND WHERE fd.forum= 1083 AND
Non-SQL Reports 1 2 Select report type Add desired columns Add conditions 3
Sample Course Report List of my courses & Completion Tracking status
Thank You! Questions? Sarah Copy of this SQL Query and presentation are available on the Moodle Moot US 2015 site