- Modificatie & Versie: Mchat 1.3.5
Directe link naar de modificatie: https://www.phpbb.com/customise/db/mod/ ... w_version/
Adres van je forum: http://www.peppersrus-forum.nl
phpBB versie: 3.0.10
Heb je onlangs een andere modificatie of stijl geïnstalleerd? teveel om op te noemen
Wat is het probleem?
Bijv: Wij verwelkomen [naam-lid] als nieuw lid op ons forum.
Ik gebruik in includes/functions_posting.php het volgende:
Code: Selecteer alles
// BEGIN mChat Mod
// only trigger if mode is post
if (($post_approval && ($post_mode == 'post' || $post_mode == 'reply')) && !empty($config['mchat_enable']) && !empty($config['mchat_new_posts']))
{
$user->add_lang('mods/mchat_lang');
if ($post_mode == 'post')
{
$mchat_new_data = $user->lang['MCHAT_NEW_TOPIC'];
}
else
{
$mchat_new_data = $user->lang['MCHAT_NEW_REPLY'];
}
// Data...
$message = utf8_normalize_nfc($mchat_new_data . ': [url=' . generate_board_url() . '/viewtopic.' . $phpEx . '?p=' . $data['post_id'] . '#p' . $data['post_id'] . ']' . $subject . '[/url]' . ' [b]in het[/b] [url='. generate_board_url() . '/viewforum.' . $phpEx . '?f=' . $data['forum_id'] . ']' . $data['forum_name'] . '[/url] [b]forum.[/b]', 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);
}
// END mChat Mod