View Full Version : How do I add java chat section to my site?


Floris
25th February 2007, 11:12 AM
Hey there, you want to add a chat section to your web site? We recommend to use a java solution. This is a little applet you can put in a directory and simply point your users to it. This is free, and the vBFans chat network can be used for free too. We offer the IRC server and everything involved at no cost. So you can quickly get started and have fun with the members on your web site.

You could use java chat as a live chat solution for support to customers. Or to offer live chat for pre-sales questions. Or simply a place for your regular members to hang out in and discuss your forums. Everybody uses it and it is easy to upgrade and configure.

Please note that we are not in affiliation with pjirc, but we do think they're the best and easiest to use. We recommend them strongly over all the other java applets out there!


Step 1. Get the java applet software.
This free software can be downloaded by everybody and installed on windows and linux based systems. So go ahead over to www.pjirc.com (http://www.pjirc.com/downloads.php) and download the latest version (binaries only).

Step 2. Unpack the downloaded software.
Unpacked the directory will have a few .html files and a bunch of other files. The first thing you want to do is rename the pjirc_2_x_bin/ directory to just simple: chat And secondly you can rename the file NormalApplet.html to index.html

Step 3. Configure the index.html file.
You will need to point the java applet to the right irc server and chat channel. You can use our chat network for free, and we run all the services and applications needed to get a proper chat experience. Our network is online 24/7 and has an 99% uptime. So open your index.html file with your favorite text editor and find this code:<param name="nick" value="Anonymous">
<param name="alternatenick" value="Anon???">
<param name="name" value="Java User">
<param name="host" value="irc.diboo.net">
<param name="gui" value="pixx">
<param name="quitmessage" value="PJIRC forever!">
And replace that with this code:
<param name="nick" value="Guest???">
<param name="alternatenick" value="Anon???">
<param name="name" value="Java Chat User">
<param name="host" value="irc.vBulletin-Chat.com">
<param name="port" value="6667">
<param name="command1" value="/join #chat">
<param name="gui" value="pixx">
<param name="quitmessage" value=" www.vBulletin-Chat.com ">


Before you save the file please note that the command1 parameter is set to /join #vBFans - this value has to be replaced with your own channel name. You're free to come chat in our chat room, but I am sure you want to use your own chat room instead.

And save the file.

Step 4. Uploading the chat directory.
Now that we have the files downloaded, unpacked, renamed and configured, it is time to upload the chat/ directory to your web server.

Open your FTP program and log in to your web account. Then go to the public_html/ or your htdocs/ or httpdocs/ directory (if you have any of these) and upload the chat/ directory to the web server.

Step 5. Test the chat applet.
Now you're basically done! One thing to do is to make sure you can load the applet and that it connects to our chat server and joins your chat channel. The chat can be called from the browser now by going to http://www.yoursite.com/chat (obviously replace yoursite.com with your own web site address.


A note to make: This is a java applet, which means it will pop up a security notification, asking you if you can trust this applet. Select yes or the trust button and give it some time to load. Once loaded you get a blue/white page with a chat window. On the right you can see your nickname in a column and on the left you can enter text and see the result in the channel. There are a few buttons in the bottom of the chat applet. One is the #channel name, and the other is the "Status" window. Make sure you've clicked on #channel first, to put the focus on the chat window.

Additional Information: We take security and privacy very high, on our chat network we automatically MASK the hostnames. So nobody but the admins of the chat server can view the real host address you connect with. This gives you privacy and avoids that people can abuse your connection. For free we also offer fake virtual hostmasks. Ask about this in #help.

Our chat network uses round robin dns, meaning if one of our chat servers is unreachable you will get connected to the next one randomly the next time you try to connect. Ensuring that our network is always online. We have multiple servers in one network and can hold up to 2500+ people at the same second, every second. With the ability to expand to tens of thousands of online users. We're looking forward to the members of your site being a part of our network!

A quick summery
* Get pjirc, download and unpack it.
* Configure it, rename a directory and a file, and edit the file to point to the irc server and auto join your chat channel.
* Upload pjirc and test it.

And when done, you can tell your users to come check it out!

Floris
25th February 2007, 11:24 AM
If there are members on your site complaining about being unable to connect because their computer does not have the required java runtime libraries installed or their firewall blocks java applets, you can offer them an alternative chat by installing the cgi:irc solution. The instructions can be found here:

http://www.vbulletin-chat.com/showthread.php?t=24434

It uses the same chat network from vBulletin-Chat.com and can connect to the same chat channel as the java applet.

Mazinger
28th February 2007, 05:20 PM
Thank you. :)

I've done that before. But how do I modearate the chat?

Floris
5th March 2007, 10:01 AM
/msg chanserv help

This will give you a lot of management commands from chanserv to help you manage your chat channel.

/mode #yourchan +v username
This will voice the user in your channel.
+o for op and +h for halfop.
Replace the + with a - to remove it again, like so:
/mode #yourchan -v username (to remove voice from a user)

/kick user #yourchan You are bad!
To kick a user from your channel with the message you are bad!

For any more specific commands please let me know which commands you are looking for.

Floris
5th March 2007, 10:34 AM
The above post is for a stand alone solution, and won't integrate with vBulletin.

Here's a simple solution instead, on how to integrate pjirc with vBulletin:
http://www.vbulletin-chat.com/showthread.php?t=24530

SSteel316
19th March 2007, 02:28 PM
1 quick question, once installed how does one change there given name to anything they want?

Brian
31st March 2007, 12:36 PM
1 quick question, once installed how does one change there given name to anything they want?
<param name="alternatenick" value="Anon???">

Look up for this line: Change value="Anon???

Where Anon to your preference nick. :)

Floris
31st March 2007, 04:29 PM
Once in the chat, you can type: /nick newname
to change to a new nickname.

a12
15th April 2007, 09:17 AM
i have an Invision Power Board (because i cant afford vbulletin) and i was wondering if i am able to put this applet on my site?
thanks, a12

elmo
16th April 2007, 12:38 AM
i have an Invision Power Board (because i cant afford vbulletin) and i was wondering if i am able to put this applet on my site?
thanks, a12

think your going to have to ask on their support forum about this.

Floris
24th April 2007, 10:04 AM
i have an Invision Power Board (because i cant afford vbulletin) and i was wondering if i am able to put this applet on my site?
thanks, a12
Yes, pjirc java applet chat works on phpBB, vBulletin, invisionboard, mybb, etc. It works on every web site as a standalone solution. We're looking forward adding your chat channel to our list!

Abizaga
30th July 2007, 07:17 PM
Thanks! Now I can add my own IRC to the site! :D

Edit: Crap it won't let me download it. :(

Deathbyalfonzo
2nd August 2007, 05:28 AM
Looks cool.

I might have to make this an addition to my website

Brian
5th August 2007, 05:45 PM
Thanks! Now I can add my own IRC to the site! :D

Edit: Crap it won't let me download it. :(
Unable to download? What are you referring to?

Anthony89
7th August 2007, 12:04 AM
How do I create my own channel?

Deathbyalfonzo
8th August 2007, 07:58 PM
How do I create my own channel?

http://www.vbulletin-chat.com/showthread.php?t=24442

There is a guide on how to create your own channel.

Enjoy,
Deathbyalfonzo

edgecutioner
16th October 2007, 07:39 AM
nice tut. i'm having it tested on localhost first ;)

dsolo802
18th December 2007, 01:52 AM
Hey there, you want to add a chat section to your web site? We recommend to use a java solution. This is a little applet you can put in a directory and simply point your users to it. This is free, and the vBFans chat network can be used for free too. We offer the IRC server and everything involved at no cost. So you can quickly get started and have fun with the members on your web site.

You could use java chat as a live chat solution for support to customers. Or to offer live chat for pre-sales questions. Or simply a place for your regular members to hang out in and discuss your forums. Everybody uses it and it is easy to upgrade and configure.

Please note that we are not in affiliation with pjirc, but we do think they're the best and easiest to use. We recommend them strongly over all the other java applets out there!


Step 1. Get the java applet software.
This free software can be downloaded by everybody and installed on windows and linux based systems. So go ahead over to www.pjirc.com (http://www.pjirc.com/downloads.php) and download the latest version (binaries only).

Step 2. Unpack the downloaded software.
Unpacked the directory will have a few .html files and a bunch of other files. The first thing you want to do is rename the pjirc_2_x_bin/ directory to just simple: chat And secondly you can rename the file NormalApplet.html to index.html

Step 3. Configure the index.html file.
You will need to point the java applet to the right irc server and chat channel. You can use our chat network for free, and we run all the services and applications needed to get a proper chat experience. Our network is online 24/7 and has an 99% uptime. So open your index.html file with your favorite text editor and find this code:<param name="nick" value="Anonymous">
<param name="alternatenick" value="Anon???">
<param name="name" value="Java User">
<param name="host" value="irc.diboo.net">
<param name="gui" value="pixx">
<param name="quitmessage" value="PJIRC forever!">And replace that with this code:
<param name="nick" value="Guest???">
<param name="alternatenick" value="Anon???">
<param name="name" value="Java Chat User">
<param name="host" value="irc.vBulletin-Chat.com">
<param name="port" value="6667">
<param name="command1" value="/join #chat">
<param name="gui" value="pixx">
<param name="quitmessage" value=" www.vBulletin-Chat.com ">
Before you save the file please note that the command1 parameter is set to /join #vBFans - this value has to be replaced with your own channel name. You're free to come chat in our chat room, but I am sure you want to use your own chat room instead.

And save the file.

Step 4. Uploading the chat directory.
Now that we have the files downloaded, unpacked, renamed and configured, it is time to upload the chat/ directory to your web server.

Open your FTP program and log in to your web account. Then go to the public_html/ or your htdocs/ or httpdocs/ directory (if you have any of these) and upload the chat/ directory to the web server.

Step 5. Test the chat applet.
Now you're basically done! One thing to do is to make sure you can load the applet and that it connects to our chat server and joins your chat channel. The chat can be called from the browser now by going to http://www.yoursite.com/chat (obviously replace yoursite.com with your own web site address.


A note to make: This is a java applet, which means it will pop up a security notification, asking you if you can trust this applet. Select yes or the trust button and give it some time to load. Once loaded you get a blue/white page with a chat window. On the right you can see your nickname in a column and on the left you can enter text and see the result in the channel. There are a few buttons in the bottom of the chat applet. One is the #channel name, and the other is the "Status" window. Make sure you've clicked on #channel first, to put the focus on the chat window.

Additional Information: We take security and privacy very high, on our chat network we automatically MASK the hostnames. So nobody but the admins of the chat server can view the real host address you connect with. This gives you privacy and avoids that people can abuse your connection. For free we also offer fake virtual hostmasks. Ask about this in #help.

Our chat network uses round robin dns, meaning if one of our chat servers is unreachable you will get connected to the next one randomly the next time you try to connect. Ensuring that our network is always online. We have multiple servers in one network and can hold up to 2500+ people at the same second, every second. With the ability to expand to tens of thousands of online users. We're looking forward to the members of your site being a part of our network!

A quick summery
* Get pjirc, download and unpack it.
* Configure it, rename a directory and a file, and edit the file to point to the irc server and auto join your chat channel.
* Upload pjirc and test it.

And when done, you can tell your users to come check it out!

Hi Flo, this looks great. Is it possible to limit access to the Chat board? or to password protect access?

Shawn Yue
11th March 2008, 05:50 AM
Cannot Connect Please Help Emergancy Pls


[11:41] Connecting...
[11:41] Unable to connect : java.net.UnknownHostException : irc.server.net
[11:42] join : insufficient parameters
[11:42] Connecting...
[11:42] Unable to connect : java.net.UnknownHostException : irc.server.net

tcTransporter
11th March 2008, 11:55 AM
Is Java.net the server you're trying to connect to?

Floris
14th March 2008, 05:30 PM
replace irc.server.net with of course.. irc.vbulletin-chat.com

Kooper
15th March 2008, 02:09 AM
hey, i cant find a link to download the latest Java applet(Binaries) can you please post a Link ?

Brian
16th March 2008, 03:23 AM
http://www.java.com/en/download/windows_xpi.jsp?locale=en&host=www.java.com

Java version 6 update 4 was half-released, so the latest version of java from Sun was version 6 Update 3. However you may still be able to get version 1.6 update 4 from here: java.sun.com/javase/downloads/ (http://java.sun.com/javase/downloads/index.jsp)

qazmon
21st September 2008, 04:45 AM
Is this still current? I downloaded pjirc and I am not seeing a index.html file in the directory. I did find similar information in the pjirc.cfg file.