load_template('chat/block.tpl'); $tpl->copy_template .= ' '; if ($is_logged){ $tpl->set('[isloged]',""); $tpl->set('[/isloged]',""); $tpl->set_block("'\\[notloged\\].*?\\[/notloged\\]'si",""); } else { $tpl->set_block("'\\[isloged\\].*?\\[/isloged\\]'si",""); $tpl->set('[notloged]',""); $tpl->set('[/notloged]',""); } $tpl->set('[historylink]',""); $tpl->set('[/historylink]',""); $tpl->set('{chatmsg}', $chat->GetContent($chatconfig, $member_id, $config)); $tpl->copy_template = "
".$tpl->copy_template."
"; $tpl->compile('minichat'); $tpl->clear(); return $tpl->result['minichat']; ?>