oui je me suis aussi retrouvé devant ces lignes...
il semble qu'il faille définir ces variables quel que soit le mode de notification choisi...
// RMV-NOTIFY
// Define tags for notification message
$tags = array();
$tags['THREAD_NAME'] = $_POST['subject'];
$tags['THREAD_URL'] = XOOPS_URL . '/modules/' . $xoopsModule->dirname() . '/viewtopic.php?forum=' . $forum . '&post_id='.$postid.'&topic_id=' . $forumpost->topic();
$tags['POST_URL'] = $tags['THREAD_URL'] . '#forumpost' . $postid;
include_once XOOPS_ROOT_PATH.'/modules/newbbex/include/notification.inc.php';
$forum_info = newbbex_notify_iteminfo ('forum', $forum);
$tags['FORUM_NAME'] = $forum_info['name'];
$tags['FORUM_URL'] = $forum_info['url'];
$notification_handler =& xoops_gethandler('notification');
if (!empty($isnew)) {
if (empty($isreply)) {
// Notify of new thread
$notification_handler->triggerEvent('forum', $forum, 'new_thread', $tags);
} else {
// Notify of new post
$notification_handler->triggerEvent('thread', $topic_id, 'new_post', $tags);
}
$notification_handler->triggerEvent('global', 0, 'new_post', $tags);
$notification_handler->triggerEvent('forum', $forum, 'new_post', $tags);
$myts =& MyTextSanitizer::getInstance();
$tags['POST_CONTENT'] = $myts->stripSlashesGPC($_POST['message']);
$tags['POST_NAME'] = $myts->stripSlashesGPC($_POST['subject']);
$notification_handler->triggerEvent('global', 0, 'new_fullpost', $tags);
}
// If user checked notification box, subscribe them to the
// appropriate event; if unchecked, then unsubscribe
if (!empty($xoopsUser) && !empty($xoopsModuleConfig['notification_enabled'])) {
if (!empty($_POST['notify'])) {
$notification_handler->subscribe('thread', $forumpost->getTopicId(), 'new_post');
} else {
$notification_handler->unsubscribe('thread', $forumpost->getTopicId(), 'new_post');
}
}
if ( $_POST['viewmode'] == "flat" ) {
redirect_header("viewtopic.php?topic_id=".$forumpost->topic()."&post_id=".$postid."&order=".$order."&viewmode=flat&pid=".$pid."&forum=".$forum."#forumpost".$postid."",2,_MDEX_THANKSSUBMIT);
exit();
} else {
$post_id = $forumpost->postid();
redirect_header("viewtopic.php?topic_id=".$forumpost->topic()."&post_id=".$postid."&order=".$order."&viewmode=thread&pid=".$pid."&forum=".$forum."#forumpost".$postid."",2,_MDEX_THANKSSUBMIT);
exit();
heu...y a-t-il un interprete dans la salle?
ps : merci qd même Christian