Ahora tocamos un fichero crucial... el que manda los mensajes a los usuarios suscritos a un tema: includes/functions_post.php
Adjuntaremos al final este fichero modificado para mas comodidad del webmaster.
######### --- includes/functions_post.php ---- #########
---------- Add this line at the end of function "function user_notification" --- line 432
Quote::
user_forum_notification($mode, $post_data, $topic_title, $forum_id, $topic_id, $post_id, $notify_user);
----------- Create new function --------
Creamos una nueva Funcion:
function user_forum_notification($mode, &$post_data, &$topic_title, &$forum_id, &$topic_id, &$post_id, &$notify_user)
{
global $board_config, $lang, $db, $phpbb_root_path, $MAIN_CFG;
global $userdata;
$current_time = gmtime();
////// mio - Observar Foro - Forum Watch //////
if(!$topic_title || $topic_title == "" ){
$row = $db->sql_fetchrow( $db->sql_query('SELECT topic_title FROM '.TOPICS_TABLE.' WHERE topic_id ='.$topic_id ));
$topic_title = $row['topic_title'];
}
if ($mode == 'reply' || $mode == 'newtopic' ) {
$result... Leer más ... |