Hello Juan and everyone,
I am trying to add the user pictures in a sql report I created to get an overiview of all the users who earned one specif badge.
SELECT
-- User.
u.firstname, u.lastname, u.city, u.email, u.picture, u.id, d.dateissued, d.dateexpire
FROM
prefix_badge_issued AS d
JOIN
prefix_badge AS b ON d.badgeid = b.id
JOIN
prefix_user AS u ON d.userid = u.id
WHERE b.id = 3
I enabled the template and followed your code found in plugin's doc.
<table width="100%">
<tbody><tr>
<td><img src="http://yourmoodle.com/user/pix.php/id]]/f1.jpg"></td>
<td><h2>[[firstname lastname</h2>
City: city
</td>
<td>Issued: dateissued</td>
</tr>
</tbody></table>
<br>
The report works but I cannot get the users' pictures and badge's issuing and expiration date.
Can you help me?
Thanks in advance