There is also one other change that I had to make in the profile class file..
function sendToModerators( $sub, $message ) {
global $database,$ueConfig;
$database->setQuery( "SELECT u.id FROM #__users u INNER JOIN #__comprofiler c ON u.id=c.id"
."\n WHERE u.gid IN (".implode(',',getParentGIDS($ueConfig)).") AND u.block=0 AND c.confirmed=1 AND c.approved=1 AND u.sendEmail=1" );
$mods = $database->loadObjectList();
foreach ($mods AS $mod) {
$this->sendFromSystem($mod->id, $sub, $message, false);
}
to
function sendToModerators( $sub, $message ) {
global $database,$ueConfig;
$database->setQuery( "SELECT u.id FROM #__users u INNER JOIN #__comprofiler c ON u.id=c.id"
."\n WHERE u.gid IN (".implode(',',getParentGIDS($ueConfig)).") AND u.block=0 AND c.confirmed=1 AND c.approved=1 AND u.sendEmail=1" );
$mods = $database->loadObjectList();
foreach ($mods AS $mod) {
$this->sendFromSystem($mod->id, $sub, $message, true);
}
Mainly changed the boolean on the last line to 'true'... otherwise the emails just came across as staight text and didn't provide any of the database values at all..
Joe