Quote:
Originally Posted by Dream
There should be a phrase that has "chatbox" in it so you can change it. If not (been almost 6 months I don't mess with this mod) there should be a <title>chatbox</title> in chatbox.php you can change.
There's no way to insert an ad to the chatbox page without adding it to the normal chatbox that appears on forumhome, because there's no way to know where the user is.
|
Thanks, fixed it in chatbox.php. And yes, when i add the ad/header to chatbox in new windows, it also opens in the the normal chatbox aswell. I know little about codes but just got an idea to make 2 different javascript codes added to navbar.
This could be the code to add for the normal chatbox:
Code:
<!-- Chatbox -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_chatbox')"><img id="collapseimg_forumhome_chatbox" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_chatbox].gif" alt="" border="0" /></a>
<a href="javascript:openChatbox()">$vbphrase[chatbox_chatbox]</a>
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_chatbox" style="$vbcollapse[collapseobj_forumhome_chatbox]">
<tr>
<td class="alt1" width="100%" colspan="2"><div class="smallfont" align="center"><iframe src="chatbox.php?nofocus=1" width="100%"$chatboxheight style="border: 0px" frameborder="0"></iframe></div></td>
</tr>
</tbody>
<!-- / Chatbox -->
Which would open the chatbox.php. and then make another chatbox2.php which would then be added to:
Code:
<script type="text/javascript">
<!--
function openChatbox () {
chatbox = window.open('chatbox2.php','chatbox','height=330,width=650,directories=no,location=no,menubar=no,resizable=yes,status=no,toolbar=no,scrollbars=yes');
}
//-->
</script>
Will that work and if yes, would it use up too much resources running to chats?
PS: In firefox the window opens in the preset size but in internet explorer the window opens full size.