Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/culturalinfusion/tsm/archive/refs/heads/master.zipInstallation
MySQL must be upper than 5.7.8 (or support JSON).
Usage
- To dynamically get
max_allowanceof each level you should add it in the description of the level like this:
<!--max_allowance=80-->
and instead of 80 you can set any number.
-
If you're using tab, add
studentsid to the one containingtsmshortcode. -
To use user API, call endpoint from this URI using GET method:
URL/wp-content/plugins/tsm/api/user.php?username=USERNAME
- To use import from
Google Classroomfeature:
From https://developers.google.com/classroom/quickstart/php Enable Classroom API and then set OAuth credentials, set Web Server and callback URL/PAGE?page=tsm-front&task=set-google-auth-code (in addition to URL, replace PAGE with path to the page which holds tsm shortcode like teachers-dashboard) then download credentials.js and copy content of it as JSON string into the settings of plugin. Please note if it asks for verification proceed with link