Hi

the Notify Mail doesn't show the following fields correctly

{X_UNAME}
{EVENT_TITLE}
{EVENT_DATE}
{EVENT_NOTE}

I changed the Code in notify.inc.php (//change)
____________________________________

// using XOOPS2 notification system

if (!$xoopsModuleConfig['user_notify'] ||
($expire>$edate?$expire<time():($edate+$expire)<time()) ||
$data['status']!=STAT_NORMAL) return (false);
$edate = eventdate($data['edate']); //change
$note = ($data['status'] == STAT_POST)?_MD_APPROVE_REQ:""; //change
$tags = array('EVENT_TITLE'=> $title,
'EVENT_DATE' => $edate, //change
'EVENT_NOTE' => $note,//change
'EVENT_URL' => EGUIDE_URL."/event.php?eid=$eid");
$notification_handler =& xoops_gethandler('notification');
$notification_handler->triggerEvent('global', 0, 'new', $tags);
$notification_handler->triggerEvent('category', $data['topicid'], 'new', $tags);

$result = $xoopsDB->query("SELECT rvid, email, confirm FROM $rsv WHERE eid=0");
while ($data = $xoopsDB->fetchArray($result)) {
$xoopsMailer =& getMailer();
$xoopsMailer->useMail();
$xoopsMailer->setSubject(_MD_NEWSUB." - $title");
$tpl = 'notify_user_new.tpl';
$xoopsMailer->setTemplateDir(template_dir($tpl));
$xoopsMailer->setTemplate($tpl);
$xoopsMailer->setFromEmail($xoopsConfig['adminmail']);
$xoopsMailer->setFromName(_MD_FROM_NAME);
$xoopsMailer->assign("UNAME", $xoopsConfig['x_uname']);//change
$xoopsMailer->assign("X_SITENAME", $xoopsConfig['sitename']);
$xoopsMailer->assign("EVENT_TITLE", $title); //change
$xoopsMailer->assign("EVENT_DATE", $edate); //change
$xoopsMailer->assign("EVENT_NOTE", $note); //change
$xoopsMailer->assign("EVENT_URL", EGUIDE_URL."/event.php?eid=$eid");
$xoopsMailer->assign("CANCEL_URL", EGUIDE_URL."/reserv.php?op=cancel&rvid=".$data['rvid']."&key=".$data['confirm']);
$xoopsMailer->setToEmails($data['email']);
if (!$xoopsMailer->send()) {
echo "<div class='error'>".$xoopsMailer->getErrors()."</div>\n";
}
}
}
?>

--------------------

X_UNAME functioned not yet ???

which function has EVENT_NOTE ???

Stephan