16
RE
stuie200's latest submission of the Xoopschat module:
[color=339966]//echo "<html><head><title></title></head><body><table width=100[/color][color=CC0000][b]%>[/b][/color][color=339966]<tr><td width=75%>";[/color]
echo "<table width=100%><tr><td width=75%>";
echo "<div align='center'>
<iframe width='100%' name='ChatFrame' src='chat.php?pchat=false&room=".$theroom."' frameborder='0' framespacing='0' border='0' marginwidth='0' marginheight='0' height='".$xoopsModuleConfig["chatframe"]."'></iframe></div>";
echo "</td><td with=25% rowspan="3" class="odd" valign="top">";
getChatRooms($theroom);
echo "<p> </p><div align="center"><p><strong>".$uname."</strong></p>";
if ($useravatar){
echo "<img src='".XOOPS_URL."/uploads/".$useravatar."' border=0 alt='"._MA_XCHAT_CONNECTEDAVATAR."'>";
}
echo "<p> </p><a href='endsession.php' target='_parent'>"._MA_XCHAT_LEAVECHAT."</a>"._MA_XCHAT_PLZLEAVE."</div></td></tr>";
echo "<tr><td><div align='center'>
<iframe width='100%' name='MsgFrame' src='bottom.php?pchat=false&room=".$theroom."' frameborder='0' framespacing='0' border='0' marginwidth='0' marginheight='0' height='".$xoopsModuleConfig["msgframe"]."' scrolling="no"></iframe></div>";
echo "</td></tr>";
echo "<tr><td>
<div align='center'><iframe width='100%' name='StatsFrame' src='stats.php' frameborder='0' framespacing='0' border='0' marginwidth='0' marginheight='0' height=".$xoopsModuleConfig["statframe"].">hallo</div>";
echo "</td></tr>";
//echo "</table></body></html>";
echo "</table>";
include(XOOPS_ROOT_PATH."/footer.php");
?>
The above lines (51-74) are from xoopschat/index.php file. As you can see, line 51 is commented out which forces the "
%>" after "width=100" to apparently act as "
?>". This in turn eliminates the footer.php from displaying as it should. HOW do I fix this mess? It's the same way in the xoopschat/bottom.php file as well...
ALSO, how do I fix the message scrolling problem in the box where the messages are displayed (see pic below)?