What is the URL in Moodle 2.8+ for user X's profile picture, where X is their user #Id number as a GET variable?
https://moodle.org/mod/forum/discuss.php?d=201445 contains useful details but assumes (internal) access to the database (Davo Smith talks about contextid but, sorry Davo, not sure what that is...?). I need this for an external site associated with our Moodle build, so I can display their picture there (obviously my external site db holds their Moodle id).
I need is a solid URL where it is their single userId alone defines the picture to be called. This always used to be yourmoodlesite.com/user/pix.php/X/f1.jpg but this no longer works.
Assuming it is no longer possible to do this, is there an API call I could make, and where would I look to find out how to do this?