Thread:Project:Support desk/How to add a checkbox "I have read the license" into the usercreate.php

How to add the data['readlicense'] and how to check it into my personal mediawiki

I have add two messages into the MessagesFr.php 'userlogin-licenseRead' (title of the checkbox) and 'login-abort-license-not-read' (for error report) into the MessagesFr.php

I think that in Usercreate.php it is necessary to add something like '' data['readlicense'] ) echo 'checked="checked"'; } ?> >                                                                    getMsg( 'userlogin-licenseRead' )?>''

but i don't understand where define 'readlicense' and how to perform the check ans output error if this checkbox is not accept?

Is somebody could give me the right coding or the procedure and the list of files to modify (API ?)?

Great thank