Quote:
Originally Posted by shadiguy1
how do i get it to open in another window leaving my forums still open so ithey could be in the chat room and stillhave the Flashchat window as well.
|
Use javascript code for a popup window.
Go to
AdminCP -> Styles & Templates -> Style Manager -> Navigation / Breadcrumb Templates -> navbar and look for (at the VERY beginning of the code):
Code:
<script type="text/javascript">
<!--
function log_out()
{
ht = document.getElementsByTagName("html");
ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
if (confirm('$vbphrase[sure_you_want_to_log_out]'))
{
return true;
}
else
{
ht[0].style.filter = "";
return false;
}
}
//-->
</script>
After it, add this:
Code:
<script type="text/javascript">
function newWindow() {
chatWindow = window.open("location of flashchat.php", "chatWin", "width=900,height=600")
}
</script>
PLEASE take note, in the above code, that YOU must enter in the location of your flashchat.php between the quotes ("location of flashchat.php"). You can also change the width and height to your liking.
Then place your link in the same template (navbar). Use the following code:
Code:
<td class="vbmenu_control"><a href="javascript:newWindow()">FlashChat</a></td>