tom wrote: 1. Specify the actor in in the launch_xapi.php ULR, i.e. &actor=<email address'. The actor needs to be an email address.
If I do this, eg
Code:
https://xerte.myserver.com/xapi_launch.php?template_id=19&group=test&actor=pierre.gorissen@ixperium.nl
then, (looking at the source of xapi_launch.php) I would expect the resulting xAPI statement to have
Code:
"display": "pierre.gorissen"
in other words, everything in front of the @ixperium.nl
Instead I get
Code:
"display": "mailto:pierre.gorissen@ixperium.nl (xAPI Mbox)"
Line 67
of xapi_launch.php =
Code:
$xapi_user->displayname = substr($xapi_user->email, 0, $pos);
Is this value changed somewhere else in the code?
Note: I've got a workaround where I use jquery and cloudflare to get the IP-address of the user, base64 encode that and attach that dynamically as groupname of the link used for the iframe. Works okay as a method of tracking not logged in users in a situation without LTI (although IP may change etc). Will post that code when it is cleaned up a bit.