To customize the appearance of your chat room, simply edit the properties that will be used by the applet directly on your Web page as HTML parameter tags.
All of the applet properties are defined below, showing the default value for each property. In cases where the internal default differs from the default value in the properties file, the internal default is also noted so that you will know the result of commenting out or removing that property.
The parameters listed are for those customers whose hosting providers are using VolanoChat version 2.5 or 2.6. If your hosting providers is using an earlier version, many of the properties may not be available. For more information, please see the Applet Properties in our Administrator Guides for the properties available.
The MyVolanoChat applet allows VolanoChatPro customers to offer personal chat rooms to their Web hosting customers or affiliate sites. The MyVolanoChat applet entrance looks like this:
Figure 1: MyVolanoChat applet entrance.
The minimum applet HTML tags required for the Personal Chat Room are the following. Your Web hosting provider will provide you with the correct URL for the codebase parameter.
<applet codebase="[see your hosting provider's instructions]"
archive="COM/volano/MyVolanoChat.jar"
code="COM.volano.MyVolanoChat.class"
width="500" height="100">
<param name="cabbase" value="COM/volano/MyVolanoChat.cab">
<param name="color" value="#FFFFFF">
<param name="foreground" value="#000000">
<param name="group" value="Your Chat Room Name">
<param name="text" value="english.txt">
</applet>
codebase=archive=code=width=height=<param name="cabbase" value="COM/volano/MyVolanoChat.cab"><param name="color" value="#FFFFFF">#RRGGBB as the bgcolor attribute of the Web page body tag, where RR is the red hexadecimal value, GG is the green hexadecimal value, and BB is the blue hexadecimal value. The default color is the default defined by the Web browser.<param name="foreground" value="#000000">#RRGGBB as the color attribute of your Web page font tag, where RR is the red hexadecimal value, GG is the green hexadecimal value, and BB is the blue hexadecimal value. The default color is the default defined by the Web browser.<param name="group" value="Your Chat Room Name"><param name="text" value="english.txt">english.txt. Instead of English, you can also specify french.txt, german.txt, italian.txt, portuguese.txt, spanish.txt, or any other property file you define. The only modification you should make to this parameter is to choose a different language file.All of the following parameters can be added to the applet's HTML tags on the Web page to modify the appearance and behavior of the Personal Chat Room (MyVolanoChat applet). Below is a sample of the Personal Chat Room applet interface.
Figure 2: MyVolanoChat applet chat room.
All colors are specified in standard web notation #RRGGBB, where RR is the red hexadecimal value, GG is the green hexadecimal value, and BB is the blue hexadecimal value.
Background colors are those that are behind text such as the windows and list areas.
<param name="color.background" value="#A0B8C8">#FFFFFF.<param name="color.background.list" value="#DCDCDC">#FFFFFF.<param name="color.background.text" value="#DCDCDC">#FFFFFF.<param name="color.background.text.editable" value="#FFFFFF">Foreground colors are the color of the text displayed in the chat applet as well as some window borders.
<param name="color.foreground" value="#000000"><param name="color.foreground.list" value="#000000"><param name="color.foreground.text" value="#000000"><param name="color.foreground.text.editable" value="#000000"><param name="color.foreground.text.editable.inactive" value="#FF0000"><param name="color.foreground.text.link" value="#0000FF"><param name="font.default" value="SansSerif-13">"name[-style][-size]". For the best cross platform support, the name should be specified as Serif, SansSerif, Monospaced, Dialog, and DialogInput. The style is one of italic, bold, or bolditalic, and should be omitted for a plain style. The size is the font point size. For example, you could specify the font "Helvetica-bold-13".<param name="alert.entrance.default" value="false">true makes the entrance alerts enabled by default. A value of false makes the entrance alerts initially disabled. The setting of the entrance alerts can be modified by the user regardless of the initial setting, unless this item is omitted from the options menu.<param name="alert.audio.default" value="false">true makes the audio alerts enabled by default, playing a sound any time a new user enters the room or another user rings them. A value of false makes the audio alerts initially disabled. The setting of the audio alerts can be modified by the user regardless of the initial setting, unless this item is omitted from the options menu.<param name="alert.count.default" value="false>true makes the count alerts enabled by default, displaying a count of the total number of people in a room each time the count changes. A value of false makes the count alerts initially disabled. The setting of the room count alerts can be modified by the user regardless of the initial setting, unless this item is omitted from the options menu.These text strings appear in the chat room text area as system messages. In each message, the date can be removed or replaced with a different prefix string. You may want to add a special prefix to these messages, such as the string "***", so that they can be distinguished from the normal chat messages in the chat rooms.
<param name="text.system.entrance" value="[%0] %1">%0 is the date and %1 is the new visitor's name and profile.<param name="text.system.audio" value="[%0] Audio alert from %1.">%0 is the date and %1 is sender's name.<param name="text.system.partnerleft" value="[%0] %1 left private chat.">%0 is the date and %1 is the name of the private chat partner.<param name="text.system.disconnected" value="[%0] Disconnected. Close VolanoChat and restart.">%0 is the date.The sound files called by the following parameters are relative to the applet codebase. (Depending upon your hosting company, you may or may not be able to use sounds from your own Web site. See the note about replacing graphics and sounds below.)
VolanoChat comes with the default sound, "drip.au" which can be used for the value. Sound is disabled if no sound URL is defined. Sound files must be encoded in the Next/Sun 8000 Hz mono 8-bit µ-law format (usually with the file extension ".au").
<param name="sound.enter" value=""><param name="sound.exit" value=""><param name="sound.profile" value=""><param name="sound.alert" value="drip.au">The images defined for the buttons of the applet may be in GIF or JPEG format. Make sure you set the size properties to match the actual image sizes or they may appear distorted. (Depending upon your hosting company, you may or may not be able to replace graphics from your own Web site. See the note about replacing graphics and sounds below.)
<param name="image.button.border" value="true"><param name="image.button1" value="button1.gif"><param name="image.button2" value="button2.gif"><param name="image.button.width" value="88"><param name="image.button.height" value="31"><param name="webtouring.default" value="false">true makes the Web touring option enabled by default, opening a Web page when its URL is displayed in a chat message. A value of false makes the Web touring option initially disabled. The setting of the Web touring option can be modified by the user regardless of the initial setting, unless this item is omitted from the options menu.These properties affect the number and behavior of private chats.
<param name="accept.private.default" value="true"><param name="limit.private" value="5">-1 allows an unlimited number of private chat sessions for each person. Monitors and administrators can initiate an unlimited number of private chat sessions.<param name="send.private.disable" value="false">true, this property disables the initiation of private chat sessions from the applet. Otherwise, it allows the initiation of private chat sessions.The function keys act as macro hot keys so that predefined phrases can be automatically filled into the chat message text field. Each property below defines a template in which words in the chat text field are filled into the template as the variables %0 through %9. For example, if we define:
<param name="text.f1" value="Hello, %0! Welcome to my chat room.">
we can simply type John and press F1 to get the chat message string:
Hello, John! Welcome to my chat room.
<param name="text.f1" value=""><param name="text.f2" value=""><param name="text.f3" value=""><param name="text.f4" value=""><param name="text.f5" value=""><param name="text.f6" value=""><param name="text.f7" value=""><param name="text.f8" value=""><param name="text.f9" value=""><param name="text.f10" value=""><param name="text.f11" value=""><param name="text.f12" value="">These text strings appear on the Web page containing the applet or in the Web browser status area.
<param name="text.main.username" value="Your name:"><param name="text.main.profile" value="Your profile:">These text strings appear in the chat rooms.
<param name="text.chat.status" value="Select a name for the profile. Double click a name for private chat.">These properties set the display parameters for the Banner Player Applet that appears at the top of your chat room. Please note that your hosting provider may not allow access to changes in the Banner Player or the use of your own Java applets. (See the note about replacing graphics and sounds below.) The default values are listed below.
<param name="banner.code" value="COM.volano.BannerPlayer.class"><param name="banner.parameters" value="BannerPlayer.txt"><param name="banner.param.banner.width" value="468"><param name="banner.param.banner.height" value="60"><param name="banner.param.background" value="#FFFFFF">#RRGGBB, where RR is the red hexadecimal value, GG is the green hexadecimal value, and BB is the blue hexadecimal value. The background is visible when displaying transparent images or when the images are smaller than the applet size. The default is the background color of the window.<param name="banner.param.foreground" value="#000000">#RRGGBB, where RR is the red hexadecimal value, GG is the green hexadecimal value, and BB is the blue hexadecimal value. The foreground color is the color of the text used to display error messages when the applet is unable to load an image. The default is the foreground color of the window.<param name="banner.param.banner.n" value="time src href">n is a positive integer that defines the sequence number of the banner image. The numbers must be sequential and start with the number 1. For example, the default value is:
<param name="banner.param.banner.1"
value="30 welcome.gif http://www.volano.com">
which displays the graphic welcome.gif for 30 seconds, and when clicked, will open a new browser window to http://www.volano.com.
Image specification consists of three elements separated by spaces or tabs:
time src href
where:
timesrchrefnull if the image has no link. A relative URL is normally assumed to be relative to the applet code base. When the BannerPlayer applet is embedded into the VolanoChat applet, a relative URL is assumed to be relative to the location of the BannerPlayer's properties file.Images can be animated GIF files, standard GIF files, or JPEG files. Specify a time of zero to display an image indefinitely. For example, you could specify the last image in a series to be displayed indefinitely in order to prevent the sequence from being repeated.
To remove a property value, set it equal to nothing, like this example:
<param name="banner.param.banner.code" value="">
This example removes the rotating banner player at the top of the chat window. If you delete the property definition, or comment it out by putting the character "#" at the beginning of the line, the VolanoChat applet will use the internal default value for the property. By setting the property value to nothing, you can make sure to override the default value and disable the property.
All resources (graphics, images, sound files, etc.) must come from the same machine running the VolanoChat server. This is a security restriction imposed by Web browsers. As such, Java applets will only load resources from the same machine that they came from.
You can only replace images, graphics, and sound files in your Personal Chat Room if you know that your Web site is on the same physical machine that is also running the VolanoChat server. Verio customers have VolanoChat servers running on the same machines as their Web sites and are thus able to replace graphics, images, and sound files with their own using an absolute path.
You can tell if your Web site is running on the same machine as a VolanoChat server by the applet codebase parameter that they instruct you to use. If it matches your Web site name exactly, then they are running on the same machine.
For example, Verio customers are instructed to use the following string for the applet's HTML tags on their Web page:
<applet codebase="http://www.yourdomain.com/cgi-image/vcclient"
archive="COM/volano/MyVolanoChat.zip"
code="COM.volano.MyVolanoChat.class"
width="500" height="125">
In this case, you could replace resources because the codebase URL exactly matches your domain name. For example, to replace the default button logo displayed on your Web page where visitors click to enter your chat room (button1.gif with width=88 and height=31), you could replace this image with your own (yourbutton1.gif with width=100 and height=50) from your Web root directory as follows:
<param name="image.button1" value="/yourbutton1.gif">
<param name="image.button.width" value="100">
<param name="image.button.height" value="50">
Be sure to use the "/" to indicate an absolute path to your Web directory.
If you have designed your Web site using XHTML 1.0 or later, all HTML tags must have an open and close tag, or a trailing "/" for those tags which do not have a close tag such as img, hr, br, and param. For the applet parameter tags, include a trailing "/" as in the following:
<param name="group" value="Your Personal Chat Room" />