Pass the user ID to a companion site as ...index.html?sKey=

Pass the user ID to a companion site as ...index.html?sKey=

by Ken -- -
Number of replies: 2

I Love Moodle and I am trying it out on a summer mini session. A fellow Faculty member has a resource site for the subject with video tutorials. I am trying to add a link to it as a resource for students enrolled in the Moodle Course. They are tracking user activity, but I will need to pass a URL variable to their resource website which it totally separately operated and managed.

How can I send the User ID for a student in my sity to the external resources link? That is, if John Doe is enrolled in a course at my Moodle site and his user ID at my Moodle based course site is "127" how can I send this number in a URL resources link so that it would look like this...

http://www.external_resources_site/index.html?sKey=127

Any suggestions would be very appreciated.

Thanks,

-- corleij

Average of ratings: -
In reply to Ken --

Re: Pass the user ID to a companion site as ...index.html?sKey=

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Use a resource of type "Program" ... it's not that well documented but that should give you a clue.
In reply to Ken --

Re: Pass the user ID to a companion site as ...index.html?sKey=

by Torben Würth -
Hi!

I have the same problem! How did you solve it?
Thanks,

Torben