4
Hi TommyZ,
It's right, setBody only takes one parameter, and also the _US_HASJUSTREG needs only one parameter: See in language/english/user.php
define('_US_HASJUSTREG','%s has just registered!');
You could do either:
- change the _US_HASJUSTREG to something like:
define('_US_HASJUSTREG','%s, %s has just registered!');
and change
$xoopsMailer->setBody(sprintf(_US_HASJUSTREG,$myts->oopsStripSlashesGPC($uname),$myts->oopsStripSlashesGPC($name)));
or change only in register.php:
$xoopsMailer->setBody(sprintf(_US_HASJUSTREG, $myts->oopsStripSlashesGPC($uname).", ".$myts->oopsStripSlashesGPC($name)));
The second version concatenates the $uname and $name to one string, so it works with the actual version of _US_HASJUSTREG.
Hope I did understand you correctly
,
and also hope this works, as I didn't try it.
Robert