%_load manual.var%
If the computer running ConferenceRoom has a Dynamic IP address there may be some things to consider when embedding the Java client in an existing web page.
Note: The Webmaster Java client is provided by the ConfRoom.conf file. To embed the ConferenceRoom Java Client in an existing WWW page, do the following:
Note: These steps are important, and you should follow them closely.
Step 1
Configure ConferenceRoom. Ensure that it is working properly by logging onto ConferenceRoom using the Conference Java client or any standard IRC client, such as pIRCh or mIRC.
Step 2
Use configuration to change the themes or review the themes that ConferenceRoom provides. Select a theme. Copy the applet statement from the default.htm file of the selected theme to the target web page. The themes are located in: <ConferenceRoom Installation Directory>\data\themes (default: c:\Program Files\Webmaster18\Data\Themes)
Step 3
Make changes as necessary to the Applet statement and its parameters. Remember, since you are operating the Java client from outside of the ConferenceRoom Web Server, the substitution variables (%varname%) will not work. You must replace these with appropriate values, or allow them to default.
Step 4
Link your applet to ConferenceRoom if the computer which has ConferenceRoom installed on it has a permanent IP address and hostname (ask your ISP about this if you don't know). The easiest way to link the applet to the ConferenceRoom server is to use the codebase archive, cabbase and server parameters to point to the ConferenceRoom computer. See the test page below for an example.
Or...
If you don't do the previous step, or it didn't work for you, then copy all the files (including the net directory) in the ConferenceRoom Data/Java directory (default location is c:/Program Files/Webmaster18/Data/Java/) to the directory containing the target web page.
Make sure the APPLET parameters includes a param of:
<param name=server value="<hostname>">
The APPLET statement should *not* include the codebase option.
The APPLET statement should *not* include the archive option.
The cabbase parameter statement should be removed.
Test Page
If you would like to test the Java client, cut and paste the following page into an HTML file called "test.html" and place this file in a directory where you keep your Web pages. The only fields that need to be specified are the ones that require the server's host name. Make sure that you substitute the TCP/IP hostname of the computer where ConferenceRoom is running where you see the tag:
<your.cr.computer.name>
NOTE: You need only specify the server's TCP/IP hostname to test the following page.
--------------------------------------cut here for test.html-----------------------------------
<html>
<head>
<title>Test Page</title>
</head>
<body bgcolor="#FFFFFF" link="#CC3300" alink="#000000" vlink="#666666">
<center>
<p>
<applet
archive="http://<your.cr.computer.name>:8080/java/cr.zip"
code="conferenceroom.ConferenceRoom.class"
name=cr
codebase="http://<your.cr.computer.name >:8080/java"
width=500
height=300>
<param name=cabbase value="http://<your.cr.computer.name >:8080/java/cr.cab">
<param name=server value="<your.cr.computer.name >">
<param name=port value="6667">
<param name=join value="#webchat">
<param name=bg value="FFFFFF">
<param name=fg value="000000">
<param name=buttons
<param name=connect value="false">
<value="http://<your.cr.computer.name>:8080/Themes/Default/Buttons.jpg">
</applet>
</center>
</body>
</html>
-----------------------------------------cut here------------------------------------------------
Note: If you are using port 80 on the ConferenceRoom web server, do not code ":80". Simply enter the hostname without a port value in the HTML code.
Example of a prm file:
lock=true
port=%port%
channel=%channel%
buttons=buttons.jpg
tickershadow=false
user=java
info=
timestamp=true
connect=true
simple=false
history=500
listTime=60
listCount=20
nick=guest
lurk=true
roomsWidth=20
userWidth=20
showjoins=false
port=%port%
channel=%channel%
font=helvetica
size=14
style=bold
tickerfont=Ariel
tickerfontsize=12
tickerfontstyle=TimesRoman
colorpanel=true
guicolors=tickertextcolor=FFFFFF;tickercolor=004080;tickerhicolor=C0C0C0
guicolors1=operColor=FF0000;actionColor=0080FF;noticeColor=FF8000;joinColor=00FF00
guicolors2=urlcolor=0000FF;quitColor=00FF00;kickColor=FF0000;privateColor=0000FF;talkColor=000000
guicolors3=sessioncolor=FFFFFF;sessiontextcolor=000000;systemColor=0000FF;soundColor=FF00FF
guicolors4=inputcolor=FFFF00;inputtextcolor=000000;errorColor=FF0000;voiceColor=FF00FF
guicolors5=nickinputcolor=FF0000;nickinputtextcolor=000000;roomsColor=00FFFF;usersColor=CC00CC
guicolors6=messageColor=FFFFFF;messageTextColor=000000;buttonColor=FFFF00;buttonDisabledColor=FFCC00
guicolors7=titlecolor=CC00CC;titletextcolor=000000
bg=FFFFFF
fg=000000
sound=true
noticeSound=bell.au
joinSound=door.au
onlyshowchat=false
restricted=false
nickPrompt=Nick Name
passPrompt=Password
namePrompt=Real Name
ticker=%description%
ticker2=Double click on a nickname to get a private chat window.
ticker3=If you use /newjoin #room it will open a new room window.
ticker4=Click on a color to change the message color people see.
ticker5=http:// mailto: and #channel are all active links.
sounds=Bell;bell.au rings the bell;Computer Geek;computer.au is a computer geek :-);Crash;crash.au forgot to hit the breaks!;Door;door.au opens the door and steps inside.;Bang;explosion.au lights the fuse!;Laugh;laugh.au thinks that's very funny...;Gong;gong.au gongs you.;Knock;knock.au wants to come inside.;Attention;whistle.au wants everyones attention!
actions=Bored;is really very bored.;Smile;smiles at everyone in the room :-);Slap Everyone;slaps everyone in the room.;Slap Person;slaps %u around with a large trout!;Laugh at someone;looks at %u and laughs.;Away;is going to be away from the channel.;Bounce;bounces around the channel.;LOL;Laughs-Out-Loud!!