Firstname and Lastname in Moodle Label HTML

Firstname and Lastname in Moodle Label HTML

by Leslie Foster -
Number of replies: 9

Moodle 3.0.4

I would like to display the user' s name in a label.  How would I do that?

The use is such that the following would display in the label:


I John Smith, have read and understood the company XYZ policy.


The user is then asked to place a manual tick in the box to the right of the label.  In essence we use the manual completion tracking as a "signature" by the user.  To have their name appear automatically would be great.

Average of ratings: -
In reply to Leslie Foster

Re: Firstname and Lastname in Moodle Label HTML

by ben reynolds -

Would Site Policy in Site Admin do that job?

In reply to Leslie Foster

Re: Firstname and Lastname in Moodle Label HTML

by Just H -

The Generico filter and accompanying ATTO plugin.

Average of ratings: Useful (1)
In reply to Just H

Re: Firstname and Lastname in Moodle Label HTML

by Leslie Foster -

This really is good !


Would it be possible to pull the ip address of the user using this filter?


Les


In reply to Leslie Foster

Re: Firstname and Lastname in Moodle Label HTML

by AL Rachels -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Hi Leslie,

Since almost anything a user does in Moodle, creates a log entry, and the entry seems to always include the IP, I would say that if you can come up with the right query, you could create a Generico filter to do that. Might want to take a look through the ad-hoc contributed reports to see if you might find it already done. https://docs.moodle.org/32/en/ad-hoc_contributed_reports

AL

In reply to Leslie Foster

Re: Firstname and Lastname in Moodle Label HTML

by Justin Hunt -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

I think it would be. But I would need to add some code to make that happen. 

How would you want to use the IP address?

In reply to Justin Hunt

Re: Firstname and Lastname in Moodle Label HTML

by Leslie Foster -

I wish to create a "sign off" for corporate policies.


The user views the policy (pdf) and then has to do a formal signoff before taking a test.  The signoff should contain their full name, username, date, time and ip address.  Signoff is achieved by the user manually marking the signoff statement as complete....I have not worked out how to make a "signoff button" that has the same effect as manual completion as yet.

In reply to Leslie Foster

Re: Firstname and Lastname in Moodle Label HTML

by Justin Hunt -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

I see. Well ... that might stretch Generico a little.

Did you consider using site policies?

https://docs.moodle.org/32/en/Site_policies#Site_policy_URL


In one site I was working with we also use language customization tool, to make the first page of the quiz a statement that user agreed on, before doing the quiz. I can't quite recall the details of how we did this, but it worked well.