Skip to content
This repository was archived by the owner on Sep 19, 2024. It is now read-only.

Commit ae2e242

Browse files
author
Dmitry Kochnev
committed
[CLEANUP] cleanup for 1.5.0 version
1 parent da08752 commit ae2e242

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ The 'items' attribute is the only required attribute, the others are defaulted t
5858
- state: initial
5959
- studentid: student_[WordPress user id]. Eg: student_123. Note: student_0 is used when not authenticated.
6060
- type: (as configured in settings - default of submit_practice but can be defaulted to local_practice)
61-
- onsubmit_redirect_url: on submit, redirect to this url (sessionid generated will be added to the end as lrnsid url parameter)
61+
- onsubmit_redirect_url: on submit, redirect to this url (sessionid and studentid generated will be added at the end automatically as lrnsid and lrnusid url parameters)
6262

6363
#### Basic Assessment Example
6464
Using the `lrn-assess` shortcode lets you include an Assessment style activity.
@@ -142,6 +142,13 @@ Show a report for a single activity id. Note: activity id's are generated autom
142142
[lrn-report type="sessions-list" limit="10" activities="c98ee0e5-b50d-40b8-9d30-aa21c2a0d712"]
143143
```
144144

145+
Supported url parameters for WordPress page:
146+
- lrnusid (single value for users). Only works if the current WordPress user is not logged in.
147+
```
148+
http://wordpress.learnosity.com/2017/11/07/report/?lrnsid=0c2c3a66-5719-4f5f-b8c9-1492aa3c7cfa&lrnusid=student_123
149+
```
150+
151+
145152
### Session Detail By Item report
146153

147154
Show a full session detail report:
@@ -158,12 +165,16 @@ Parameters
158165

159166
Supported url parameters for WordPress page:
160167
- lrnsid (session_id)
168+
- lrnusid (user_id). Only works if the current WordPress user is not logged in.
161169
```
162-
http://wordpress.learnosity.com/2017/11/07/report/?lrnsid=0c2c3a66-5719-4f5f-b8c9-1492aa3c7cfa
170+
http://wordpress.learnosity.com/2017/11/07/report/?lrnsid=0c2c3a66-5719-4f5f-b8c9-1492aa3c7cfa&lrnusid=student_123
163171
```
164172

165173

166174
## Release History
175+
### Version 1.5.0 - 29th Dec 2017
176+
- Add support for lrnuid url parameter for lrn-assess and lrn-report
177+
167178
### Version 1.4.0 - 18th Dec 2017
168179
- Add support for lrnactname as url parameter of WordPress page for lrn-assess
169180

classes/Learnosity/Shortcodes/ItemsEmbed.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ class ItemsEmbed
1111

1212
private $config;
1313
private $security;
14-
private $sessionId;
1514

1615
private $student_prefix;
1716

0 commit comments

Comments
 (0)