as in regard to the line you provided, i dont have it. although i have this:
// Notification
$ads_id = $xoopsDB->getInsertId();
$notification_handler =& xoops_gethandler('notification');
$tags = array();
$tags['ADS_TITLE'] = $ads_type.' '.$ads_title;
$tags['ADS_LANG'] = $ads->getVar('ads_lang1').' to '.$ads->getVar('ads_lang2');
$tags['ADS_DESC'] = $ads->getVar('ads_desc');
if ( $xoopsModuleConfig['moderated'] == 1) {
$tags['ADS_URL'] = XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/admin/index.php?sel_status=2';
$notification_handler->triggerEvent('global', 0, 'ads_submit', $tags);
$notification_handler->triggerEvent('category', $cat_id, 'ads_submit', $tags);
// If notify checkbox is set, add subscription for approve
if ($notifypub) {
include_once XOOPS_ROOT_PATH . '/include/notification_constants.php';
$notification_handler->subscribe('ads', $ads_id, 'approve', XOOPS_NOTIFICATION_MODE_SENDONCETHENDELETE);
}
$messagesent ="<br />"._MD_CATADS_AFTER_MODERATE;
} else {
$tags['ADS_URL'] = XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/adslist.php?cat_id=' . $cat_id;
$notification_handler->triggerEvent('global', 0, 'new_ads', $tags);
$notification_handler->triggerEvent('category', $cat_id, 'new_ads', $tags);
$messagesent ="<br />"._MD_CATADS_NO_MODERATE;
}
redirect_header("index.php",2,$messagesent);
break;
can you see those "$ads_lang1" and '$ads_lang2" variables (i've added them by myself)? I have also added two custom lines in the registration form: "$source_language" and "$target_language". So I want a user to be notified if $ads_lang1==$source_language and $ads_lang2==$target_language.
anyways, if this were too complicated, please just comment the code I've attached