3
In the file register.php on line 255 (XOOPS 2.0.14) you will find:
$xoopsMailer->setBody(sprintf(_US_HASJUSTREG, $uname));
The sprintf() function in this case, places the variable $uname in the constant _US_HASJUSTREG at placeholder %s. You can add more than one placeholders like that.
For example:
$xoopsMailer->setBody(sprintf(_US_HASJUSTREG, $var1, $var2, $var3, $var4));
Make sure that the constant _US_HASJUSTREG has 4 placeholders in that case.
To get the data submitted by the user use the object function $newuser->getvar();
Example of use:
$newuser_name = $newuser->getVar('uid');
$newuser_sitename = $newuser->getVar('url');
$newuser_yim = $newuser->getVar('user_yim');
$newuser_email = $newuser->getVar('email');
$xoopsMailer->setBody(sprintf(_US_HASJUSTREG, $uname, $newuser_sitename, $newuser_yim, $newuser_email));
Don't forget to adjust the template as well if necessary.
Hope this helps