I took a different approach to popping up a chat window for my users. And it seems to actually work quite well.
So here is what I did:
1) Disabled Log Off Button:
SigmaChat Control Panel - Look & Feel - Options - Logout Button
2) Disabled Float Dock Button
SigmaChat Control Panel - Look & Feel ? Options - Float/Dock Button
3) Use ?Minimal? Display Option
SigmaChat Control Panel - Look & Feel ? Layout - Minimal Layout
4) Disabled "/NICK" command
5) Used the following ?applet code?
PHP Code:
<applet codebase="http://client.sigmachat.com/current/"
code="Client.class" archive="scclient_en.zip" width=550 height=350>
<param name="room" value="XXXXX">
<param name="cabbase" value="scclient_en.cab">
<param name="USERNAME" value="$username">
<param name="AUTOLOGIN" value="yes">
<param name="lopt" value="s+t+a+c+h+d+l-">
<param name="urllist" value="false">
<param name="subroom" value="false">
</applet>
6) Since I wanted a separate chat page to welcome my users to the chat, I then duplicated "Chat.php" and made a "Chat2.php" file
7) I set the "Chat2.php" file to call 2 new templates "chat2" and "chatbit2"
8) I set "chat2" to be a basic HTML file that would NOT call my header and footer
9) I set "chatbit2" to have my applet code in it
10) I then set up a javascript in "chatbit" to call the "chat2.php" into a named window
PHP Code:
<script language="javascript">
function ANYNAME_open(){
window.open("chat2.php","WINDOW_NAME","height=400,width=600,left=80,top=80");
}
</script>
<a href="javascript:ANYNAME_open()">Click Here to Start Chatting!</a>
--------------------------------
Why it works for me:
a) The new window is named, therefore all calls to my chat room will always open it in the same window, so the user can log in and out of the chat room ONLY in that window so when they reclick to open the window, it will just autolog them back into that window. ("_BLANK" should create a new window, which would cause a security problem)
b) Users can browse the forum while chatting at the same time (since they are in different windows)
--------------------------------
Faults:
* Pressing "Ctrl+N" will still open the window and will log off one user.
* Using a second browser (such as Netscape while using IE) will have the same effect (2 windows open at same time).
* A user technically could just type in "Chat2.php" and load the page 2 times in 2 windows (if they knew to do this)
--------------------------------
Why I am posting this. Because it is slightly different than what I have read and I thought maybe it would add to the creativity of new versions of this hack.