Ladyfyre, first of all I wanted to tell you that it works fine, but I had to make some modifications:
1. In controls.js you have:
PHP Code:
if (document.images) {
away_1 = new Image
away_2 = new Image
away_1.src = 'gfx/setaway.gif'
away_2.src = 'gfx/setback.gif'
}
You have to change to:
PHP Code:
if (document.images) {
away_1 = new Image
away_2 = new Image
away_1.src = 'chatgfx/setaway.gif'
away_2.src = 'chatgfx/setback.gif'
}
2. In the chatbit template you capture the user clicks on actions in this way:
PHP Code:
<a href="javascript:void(-1);" onClick="javascript:jpilot('ping');"><img src="chatgfx/ping.gif" width="70" height="20" vspace="2" hspace="1" name="ping" border="0" alt="ping selected user" align="absmiddle"></a>
The problem with this is that the browser opens a new empty window everytime you click on an action button. I had to change it in this way:
PHP Code:
<a href="javascript:void(-1);" target="_self" onClick="javascript:jpilot('ping');"><img src="chatgfx/ping.gif" width="70" height="20" vspace="2" hspace="1" name="ping" border="0" alt="ping selected user" align="absmiddle"></a>
In practice I just added the
target="_self" attribute to tell the browser to render the link in the current frame and not open a new one.
I attach the chatbit modified template for anyone who's trying this hack.
Anyway thanks for sharing this one...