2
I see no one has takin a chance with this one.
Well here it goes.
This would be for 2.5.x
in profile/register.php around line 152 look for this line:
if ($current_step == 1) {
after it add this line, and any other you want(replace state with other field name):
$state = isset($_POST['state']) ? $myts->stripSlashesGPC(trim($_POST['state']) ) : '';
then go down to about line 169 or so and find this line:
$newuser->setVar('uname', $uname);
before it add this line:
$profile->setVar('state', $state);
then go down to around line 190 or so and find this line:
$uname = isset($_POST['uname']) ? $myts->stripSlashesGPC(trim($_POST['uname'])) : '';
before it add this line:
$state = isset($_POST['state']) ? $myts->stripSlashesGPC(trim($_POST['state'])) : '';
then go down a few lines and find this line:
$newuser->setVar('uname', $uname);
before it add this line:
$profile->setVar('state', $state);
then go down to about line 257 or so and find this line:
$xoopsMailer->setTemplate('adminactivate.tpl');
after it add this line:
$xoopsMailer->assign('STATE', $profile->getVar('state'));
save that page.
Now go to the adminactivate.tpl and add:
{STATE}
where you want.
And that should do it.
Hope this helps.
John