2
Ok, I figured it out and thought i'd share the wealth.
I'm sure there's a better way of going about this but this is how I got it to work.
So here it is:
modules/profiles/include/form.php
Below:
$elements[0][] = array('element' => new XoopsFormText(_PROFILE_MA_DISPLAYNAME, "uname", $uname_size, 75,
$user->getVar('uname', 'e')), 'required' => true);
$weights[0][] = 0;
Add:
$elements[0][] = array('element' => new XoopsFormText(_PROFILE_MA_REALNAME, "name", $name_size, 75, $user->getVar('name',
'e')), 'required' => true);
$weights[0][] = 0;
modules/profiles/register.php
Below:
$newuser->setVar('uname', isset($_POST['uname']) ? trim($_POST['uname']) : '');
Add:
$newuser->setVar('name', isset($_POST['name']) ? trim($_POST['name']) : '');
Below:
echo _PROFILE_MA_DISPLAYNAME.": ".$newuser->getVar('uname')."
";
Add:
echo _PROFILE_MA_REALNAME.": ".$newuser->getVar('name')."
";
That's it.