View Full Version : Changing the size of the chat window?
Trana
05-24-2005, 03:27 AM
When my vB Chat window opens, it is massive. I was wondering if there is a way to control the size of the conversation window as well the background window so it doesn't eat up the whole screen.
Thanks!
change the settings on your vbulletin, go to templates, and search for navbar, in the line that appear a window.open of the vbChat, have the options of width, and hegiht, actually, appear some code, delete it, and put the pixels that you wish... btw... remove the " ' " that appear for the width and the height.
Use this for your navbar template edit:
<script type="text/javascript">
<!--
function OpenvBChat(){
vBChat = window.open('vBChat.php?$session[sessionurl]','vBChat','directories=no,height='+window.screen. height/2+',width='+window.screen.width/2+',location=no,menubar=no,scrollbars=yes,status=n o,toolbar=no')
return false;
}
-->
</script>
<td class="vbmenu_control"><a href="vBChat.php?$session[sessionurl]" onclick="return OpenvBChat();">vBChat</a></td>
It'll open a window only a quater of the size of the user's screen.
Littlebit
07-02-2005, 12:07 AM
how would you make the window adjustable to the user? Or what is the code to keep it withing the same window? I like this chat thanks for sharing so much Zero Tolerance!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.