Ability to see if lesson was viewed by student.
3 posts by 3 authors in: Forums > CMS Builder
Last Post: April 17, 2013 (RSS)
By Codee - April 15, 2013
I have a client that is a sports coach. Each of her students has an account on the system, and each of those students have lessons that have been prepared and placed in a lessons section. She is also utilizing the membership plugin. What my client wants to know is if the user has not only logged in, but which lesson(s) they have viewed (opened the file for each lesson.) and when. What's the simplest way to reflect that information...showing when the account holder has viewed a particular lesson and when?
By gkornbluth - April 16, 2013
Hi,
One approach might be to use the concept that's used in the membership plugin's profile update form to update a field or fields in the student's record. When the student opened a lesson viewer the $query = "UPDATE code would be executed.
I'll look around to see what I've done in that type of situation but won't have a lot of time for a few days.
Best,
Jerry Kornbluth
Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php
By gregThomas - April 17, 2013
Hi,
I would create a log section that has fields for a students name, the date, and the name of a lesson. Then I'd add a mysql_insert function to a lessons detail page that creates a record in the log each time the student views it.
Then I'd add advanced search functionality to the log section so that its easy to filter the log by a student or lesson. I'd also make it so that it filters by date so that the newest logs are shown first.
Let me know if you have any questions.
Thanks!
Greg
PHP Programmer - interactivetools.com