Pagina 1 din 1
problema topic nou
Scris: 03-Noi-2013, 22:00:15
de tataieee
Vă salut,
Am dezinstalat mchat, după dezinstalare am constat că atunci când se ceează topic nou apare
următoarea eroare.
Mulţumesc anticipat!
Re: problema topic nou
Scris: 03-Noi-2013, 22:16:04
de Anișor
Asta pentru ca ai permis afisarea subiectelor noi in chat.
Mutat din 3.0.x Cum pot să...?
Re: problema topic nou
Scris: 03-Noi-2013, 22:18:49
de tataieee
Şi unde trebuie să şterg ?

Re: problema topic nou
Scris: 03-Noi-2013, 22:28:13
de Anișor
Deschide includes/functions_posting.php
Cauta si sterge :
Cod: Selectaţi tot
// BEGIN mChat Mod
// only trigger if mode is post
if ($post_mode == 'post' && $post_approval && !empty($config['mchat_enable']) && !empty($config['mchat_new_posts']))
{
$user->add_lang('mods/mchat_lang');
$mchat_new_data = $user->lang['MCHAT_NEW_TOPIC'];
// Data...
$message = utf8_normalize_nfc($mchat_new_data . ': [url=' . generate_board_url() . '/viewtopic.' . $phpEx . '?p=' . $data['post_id'] . '#p' . $data['post_id'] . ']' . $subject . '[/url]', true);
// Add function part code from http://wiki.phpbb.com/Parsing_text
$uid = $bitfield = $options = ''; // will be modified by generate_text_for_storage
generate_text_for_storage($message, $uid, $bitfield, $options, true, false, false);
$sql_ary = array(
'forum_id' => ($topic_type == POST_GLOBAL) ? 0 : $data['forum_id'],
'post_id' => $data['post_id'],
'user_id' => $user->data['user_id'],
'user_ip' => $user->data['session_ip'],
'message' => $message,
'bbcode_bitfield' => $bitfield,
'bbcode_uid' => $uid,
'bbcode_options' => $options,
'message_time' => time()
);
$sql = 'INSERT INTO ' . MCHAT_TABLE . ' ' . $db->sql_build_array('INSERT', $sql_ary);
$db->sql_query($sql);
}
// BEGIN mChat Mod
Deschide posting.php
Cauta si sterge :
Cod: Selectaţi tot
// BEGIN mChat Mod Add-on
if (!empty($config['mchat_enable']) && !empty($config['mchat_new_posts']))
{
if (!function_exists('mchat_delete_topic'))
{
include($phpbb_root_path . 'includes/functions_mchat.' . $phpEx);
}
mchat_delete_topic($post_id);
}
// END mChat Mod Add-on
Re: problema topic nou
Scris: 03-Noi-2013, 22:30:40
de tataieee
Din posting.php s-a şters automat cred ... doar din includes/functions_posting.php am şters, acum este ok. Mulţumesc frumos.