11
I took the plunge into the coding world and made these changes to /profile/register.php at line 194 in the original file.
Still no joy here.
I mixed the case to see if it mattered, but my notification to the administrators remains the same.
It sends notification mail just as before, with only the username and email inserted properly into the body of the mail.
The fields I am looking for are all in the first step of registration.
elseif ($xoopsConfigUser['activation_type'] == 2) {
$xoopsMailer = xoops_getMailer();
$xoopsMailer->useMail();
$xoopsMailer->setTemplate('adminactivate.tpl');
$xoopsMailer->assign('USERNAME', $newuser->getVar('uname'));
$xoopsMailer->assign('USEREMAIL', $newuser->getVar('email'));
$xoopsMailer->assign('DISPLAYNAME', $newuser->getVar('displayname'));
$xoopsMailer->assign('email2', $newuser->getVar('email2'));
$xoopsMailer->assign('MUNICIPALITY', $newuser->getVar('municipality'));
$xoopsMailer->assign('street_address', $newuser->getVar('street_address'));
$xoopsMailer->assign('RELATIONSHIP', $newuser->getVar('relationship'));
$xoopsMailer->assign('USERACTLINK', XOOPS_URL . "/modules/" . $xoopsModule->getVar('dirname', 'n') . '/activate.php?id=' . $newuser->getVar('uid') . '&actkey=' . $newuser->getVar('actkey', 'n'));
$xoopsMailer->assign('SITENAME', $xoopsConfig['sitename']);
$xoopsMailer->assign('ADMINMAIL', $xoopsConfig['adminmail']);
$xoopsMailer->assign('SITEURL', XOOPS_URL . "/");
$xoopsMailer->setToGroups($member_handler->getGroup($xoopsConfigUser['activation_group']));
$xoopsMailer->setFromEmail($xoopsConfig['adminmail']);
$xoopsMailer->setFromName($xoopsConfig['sitename']);
$xoopsMailer->setSubject(sprintf(_US_USERKEYFOR, $newuser->getVar('uname')));
if ( !$xoopsMailer->send() ) { {
Optimism is the mother of disappointment.