logon.xsl questions [message #1181] |
Wed, 05 December 2007 00:43 |
|
Hello,
We are trying to make modifications to the logon.php with little success.
1. We wanted to add a third field in the login screen.
2. We modified the mnu_user database to add the field
3. We regenerated the .dict.inc
4. We also modified the logon.screen.inc to include the third field after the password
But the login screen remains the same. NO THIRD FIELD
We are also abit confused by the $xsl_file = 'logon.xsl' found in logon.php since we could not find any logon.xsl
In summary our difficulties are
1. We could not add a third field in the logon screen
2. We dont find any logon.xsl
We are hoping you could help.
Melvin
|
|
|
Re: logon.xsl questions [message #1183 is a reply to message #1181] |
Wed, 05 December 2007 05:23 |
AJM
Messages: 2367 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
The reference to 'logon.xsl' in logon.php is actually redundant as it is overridden by the setting of $structure['xsl_file'] in 'logon.screen.inc'. It therefore uses file 'std.detail1.xsl' instead.
The logon.php script uses class 'logon.class.inc' which is a subclass of 'mnu_user.class.inc'. In the '_cm_getInitialData()' method of the 'logon' class you will see where it removes all the fields from $this->fieldspec EXCEPT user_id and user_password. You will therefore need to update this list of field names which are not to be removed.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|