Hello
I have been trying to write a code to do such but moodle security strips any PHP code running within the HTML Code.
The main purpose of this block is to pull and display a PDF file located somewhere in the server disk ( eg : /moodledata/card/somepdf.pdf )
I want the PDF file name to be equal to the currently logged in user ID, thus every user dynamically views the corresponding PDF. But when I tried to get the user ID with a <?PHP ?> code and put it in an HTML variable inside the HTML code, moodle security stripped the PHP part.
eg : /moodledata/card/$USERID.pdf
specs :
moodle 3.10 stable / PHP 7.4 / mariadb 10.5.8 / Nginx 1.19.6
Could anyone help me to come up with a solution for this matter?
Thank you in advance