Quote:
Originally Posted by royals
ok..... may I please have the text for the chat_main template?
|
Code:
<script type="text/javascript">
<!--
setBlank = false;
function doRestore(){
setBlank = true;
}
function checkInp(){
if(setBlank){
document.forms['chatForm'].message.value = ""
setBlank = false;
}
}
function chatFrameReload(){
window.frames['vBChatFrame'].location.href = window.frames['vBChatFrame'].location.href
window.frames['vBChatUser'].location.href = window.frames['vBChatUser'].location.href
}
function AddSmilie(code){
document.forms['chatForm'].message.value += " " + code + " "
}
setInterval("chatFrameReload()",10000)
-->
</script>
<form name='chatForm' method='post' action='vBChat.php?{$session['sessionurl']}' target='vBChatFrame' onsubmit='doRestore()'>
<input type='hidden' name='do' value='post_message' />
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" colspan='2'>
<a style="float:right" href="#top" onclick="return toggle_collapse('forumhome_vBChat')"><img id="collapseimg_forumhome_vBChat" src="$stylevar[imgdir_button]/collapse_tcat.gif" alt="" border="0" /></a>
<div align='center'>vBChat</div></td>
</tr>
</thead>
<tbody id="collapseobj_forumhome_vBChat" style="{$vbcollapse['collapseobj_forumhome_vBChat']}">
<tr>
<td class='alt2' align='center' width='80%' height='300' rowspan='2'>
<iframe width='100%' height='100%' frameborder='0' border='0' src='vBChat.php?&do=chatFrame' name='vBChatFrame' onload='checkInp()'>Your Browser Does Not Support Iframe's, Get One That Does!</iframe>
</td>
<td class='alt2' align='center' width='20%' height='300'>
<iframe width='100%' height='100%' frameborder='0' border='0' src='vBChat.php?&do=chatUser' name='vBChatUser'>Your Browser Does Not Support Iframe's, Get One That Does!</iframe>
</td>
</tr>
<tr>
<td class='alt2' align='center'><img alt='Powered By vBChat' src='images/vbchat.gif' /></td>
</tr>
<if condition="$Chat_Options[d_smiliedisplay] == '1'">
<tr>
<td class='alt2' align='center' width='100%' colspan='2'>
<table width='100%' height='1%' border='0'><tr>{$Smile_Display}</tr></table>
</td>
</tr>
</if>
<tr>
<td class='tfoot' align='left' width='100%' colspan='2'>
<b>Post Message:</b>
<input type='text' name='message' class='button' size='70'> <input type='submit' value=' Post ' class='button'>
</td>
</tr>
</tbody>
</table>
</form>
<br />