I am trying to add 2 fields to user profile.
I tried to do as m0nty did with his photo hack, modifying some files.
I didn't modified all the files that m0nty did, as I only want my hack to insert 2 new fields, with no special functions associated.
I found the files to modify are these:
To add a new field to user profile:
----
Quote:
root/edituser.php
root/userinfo.php
root/register.php
root/include/registerform.php
root/kernel/user.php
root/language/english/user.php
root/language/english/global.php
root/modules/system/templates/system_userinfo.html
------------------------
To make possible modify these fields form admin panel:
----
Quote:
root/modules/system/admin/users/main.php
root/modules/system/admin/users/users.php
root/modules/system/admin/users/userform.php
root/modules/system/language/english/admin/users.php
But I did some mistake, possibly at kernel/user.php and the hack didn't work.
The fields are 2: credits (a number) and avatar3d (an url).
I added them to my xoops_users table.
I have 2 questions:
1) How to add these fields properly, specially at kernel/user.php ?
2) Have I forgotten to modify some important file ?
Please m0nty or anyone help me with this, let's see if we could find a general way to hack and have extra fields added.
Jordi.