создал в корне чата фаил topic.php
PHP код:
<?php
require_once("inc_common.php");
include($engine_path."users_get_list.php");
if (!$exists) {
$error_text = "$w_no_user";
include($file_path."designes/".$design."/error_page.php");
exit;
}
if ($is_regist) {
include("inc_user_class.php");
include($ld_engine_path."users_get_object.php");
#fake for navi bar.
if ($current_user->user_class>0) $current_user->user_class = "admin";
else $current_user->user_class = "user";
}
include($file_path."designes/".$design."/topic.php");
?>
в папке темплейтов тоже topic.php (html можно оформить по своему)
PHP код:
<body bgcolor="#abd256" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td>
<MARQUEE scrollAmount=3 scrollDelay=50 align="bottom"><DIV style="FONT-SIZE: 16px; FONT-WEIGHT: bold"><font color="red">Внимание:<font color="blue"><?php echo $rooms[$room_id]["topic"];?></font></DIV></MARQUEE>
</td></tr></table>
</body>
и в voc.php
после:
window.frames['menu'].document.location.href='<?php echo $chat_path;?>navibar.php?session=<?php echo $session;?>';
добавил:
window.frames['topic'].document.location.href='<?php echo $chat_url."topic.php?session=$session";?>';
и вот это:
<frameset rows="24,*" bordercolor="#3D4976" >
<frame name="menu_public" src="<?php echo $current_design; ?>blank.html" scrolling=no frameborder="0">
заменил на это:
<frameset rows="24,24,*" bordercolor="#3D4976" >
<frame name="topic" src="<?php echo $current_design;?>blank.html" noresize scrolling="no" frameborder="0">
<frame name="menu_public" src="<?php echo $current_design; ?>blank.html" scrolling=no frameborder="0">