PHP Code:
<?php
include("./global.php");
if (!$bbuserinfo[userid] || $bbuserinfo[usergroupid]==1 || $bbuserinfo[usergroupid]==3) {
show_nopermission();
}
eval("dooutput(\"".gettemplate("chat")."\");");
?>
chat template:
Code:
<APPLET align=middle code="com.diginet.digichat.client.DigiChatApplet"
codeBase="http://www.yoursite.com/DigiChat/DigiClasses/"
width="200" height="100" align="middle" ARCHIVE="client.jar" nickname="$bbuserinfo[username]">
<PARAM NAME="siteID" VALUE="site id">
<PARAM NAME="cabbase" VALUE="Client.cab">
<PARAM NAME="background" VALUE="{ pagebgcolor}">
<PARAM NAME="textcolor" VALUE="{ pagetextcolor}">
<param name="floodControl" value="1000">
<PARAM NAME="nickname" VALUE="$bbuserinfo[username]">
<PARAM NAME="openProfileURL" VALUE="true">
<PARAM NAME="room" VALUE="chat-room-name">
Our Chat requires a Java Compatible web browser to run.
</APPLET>
Remove the spaces for the replacement variables in red above, and insert the correct values that are in blue.