Posted on: 2003/3/30 20:10
Re: Additional user fields
I have the same need, to a much greater extent. See http://www.lone-star.org/xoops/html/register.php
I hacked a LOT of core files under XOOPS 1.2, and wish to avoid editing ANY core files when rewriting under V2. Adding a 'users_plus' SQL table is easy enough, but I need to know what the "Officially Sanctioned Core Class Extension" methodology is. IE, how do I write a module file which extends \kernel\user.php, such that my own module code can reference User properties just as if they had been declared in \kernel\user.php?
We really need an example for "class XoopsUserPlus extends XoopsUser"....
I also need to override the default behavior and appearance of the user login core 'module' (I concatenate First and Last names into uname - see site above). Is there an Officially Sanctioned way to do this without hacking the core (/user.php)?