Quote:
Originally Posted by guydogg
Im sorry if i sound like a total n00b.
How would i make it so the chat opens in a new window like you state yours does, so that the user can still view the board, and also chat at the same time?
Also, if the user hits the log out button, how would i add a redirect into that template to send the user back to the forum_home, opposed to the window closing and the user having to open a browser window and go back manually?
Thanks again
|
Open your navbar template and find the thing you added for the chat. According to the instructions, it should be something like:
HTML Code:
<td class="vbmenu_control"><a href="vBChat.php?$session[sessionurl]">vBChat</a></td>
Replace that with:
HTML Code:
<td class="vbmenu_control"><a href="calendar.php?$session[sessionurl]">$vbphrase[calendar]</a></td>
<td class="vbmenu_control"><a href="vBChat.php?$session[sessionurl]" onclick="window.open('vBChat.php?$session[sessionurl]','','width=1024, height=750, resizable=yes, scrollbars=yes'); return false;" target="_blank">vBChat</a></td>
That should open your chat in a new window. The original window is not closed, so the user can browse the forums and chat at the same time, by just switching from one window to the other. The new window is not full size, so he can still see the other one. That makes your second question irrelevant, because he does not need to go back, the chat window closes and the other one remains open. Isn't that what you want?