78
run the update.sql query in admin, this will change the old user_age row to user_birth and set it as type 'DATE'
remember to change the xoops_ prefix to match your own.
then edit the files:
edituser.php
userinfo.php
register.php
class/xoopsformloader.php
include/registerform.php
(i forgot to comment registerform.php)
so look for:
$reg_form->addElement(new XoopsFormText(_US_REALNAME, "name", 30, 60, $name));
$reg_form->addElement(new XoopsFormTextDateOfBirth(_US_BIRTH, "user_birth", 10, 10, $user_birth), true);
$reg_form->addElement(new XoopsFormText(_US_LOCATION, "user_from", 30, 60, $user_from));
$reg_form->addElement(new XoopsFormSelectGender(_US_GENDER, "user_gender"));
include/functions.php
kernel/user.php
language/english/user.php
modules/system/admin/users.php
modules/system/admin/userform.php
modules/system/templates/system_userinfo.php
modules/system/language/english/ (check em all there is a couple of edits)
then add these files:
class/xoopsform/formtextdateofbirth.php
include/dobcalendarjs (both of em)
and that should do it.. your mainly only editing the old user_age parts