PDA

View Full Version : Vbulletin Java Chat


MentaL
14 Aug 2006, 19:44
Hi,

What this does is simply add a link which pops up in a window and connects to your specified irc server via a third party java application. We shall be using the freely distributed pjirc (http://www.pjirc.com/) for this modifcation.

Installation
Download this file (http://www.pjirc.com/admin/file.php?id=181) (pjirc) and extract to desktop, rename the folder to something suitable like irc and then upload to your server. (make sure to check the code in the bottom of this post for further customizations and correct dimensions)
Go to your admin panel and copy the following code into the header template
<SCRIPT LANGUAGE="JavaScript">

<!-- Begin

function popUp(URL) {

day = new Date();

id = day.getTime();

eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=640,h eight=400,left = 256,top = 232');");

}

// End -->

</script>

Go to your navbar template and you can either do what i do and replace the calander link with the below code or add it yourself, anyways here is the code (make sure to edit the link to the address of the files you uploaded) and then save.
<A HREF="javascript:popUp('http://website.com/forum/irc/')">Java IRC</A>

woola, you intergrated a java irc client into your forum without any hassle.


your irc will require customization in order for it to fit so here is my file i named index.html so once that the link is clicked, it opens the window exactly in the perfect dimensions, your welcome to use this code, also included in the pjirc are more heavy versions of the java client but this one in my opinion is perfect, BE SURE TO EDIT THE SERVER AND NAMES TO YOUR LIKING (ONES IN RED)


<html>

<head>

<title>Vbulletin Java Chat</title>

</head>

<body leftmargin="0" topmargin="0">

<applet code=IRCApplet.class archive="irc.jar,pixx.jar" width=640 height=400>

<param name="CABINETS" value="irc.cab,securedirc.cab,pixx.cab">

<param name="nick" value="VBCHAT">

<param name="alternatenick" value="VBCHAT???">

<param name="fullname" value="Java User">

<param name="host" value="irc.deltaanime.net">

<param name="gui" value="pixx">

<param name="quitmessage" value="Get a chat room for you're own vbulletin message board, visit http://www.vbulletin.org/forum/showthread.php?p=899188#post899188">

<param name="asl" value="true">

<param name="style:bitmapsmileys" value="true">

<param name="style:smiley1" value=":) img/sourire.gif">

<param name="style:smiley2" value=":-) img/sourire.gif">

<param name="style:smiley3" value=":-D img/content.gif">

<param name="style:smiley4" value=":d img/content.gif">

<param name="style:smiley5" value=":-O img/OH-2.gif">

<param name="style:smiley6" value=":o img/OH-1.gif">

<param name="style:smiley7" value=":-P img/langue.gif">

<param name="style:smiley8" value=":p img/langue.gif">

<param name="style:smiley9" value=";-) img/clin-oeuil.gif">

<param name="style:smiley10" value=";) img/clin-oeuil.gif">

<param name="style:smiley11" value=":-( img/triste.gif">

<param name="style:smiley12" value=":( img/triste.gif">

<param name="style:smiley13" value=":-| img/OH-3.gif">

<param name="style:smiley14" value=":| img/OH-3.gif">

<param name="style:smiley15" value=":'( img/pleure.gif">

<param name="style:smiley16" value=":$ img/rouge.gif">

<param name="style:smiley17" value=":-$ img/rouge.gif">

<param name="style:smiley18" value="(H) img/cool.gif">

<param name="style:smiley19" value="(h) img/cool.gif">

<param name="style:smiley20" value=":-@ img/enerve1.gif">

<param name="style:smiley21" value=":@ img/enerve2.gif">

<param name="style:smiley22" value=":-S img/roll-eyes.gif">

<param name="style:smiley23" value=":s img/roll-eyes.gif">

<param name="style:floatingasl" value="true">

<param name="pixx:highlight" value="true">

<param name="pixx:highlightnick" value="true">

</applet>

</body>

</html>

MentaL

http://img402.imageshack.us/img402/338/preview3od.jpg

AdmiralSpock
14 Aug 2006, 20:40
Thanks! I have this for 3.5.4 and will be installing it when I upgrade to 3.6.0. :)

utw-Mephisto
14 Aug 2006, 21:33
I don't want to hijack your release, but you should maybe mention the original release

http://forum.pjirc.com/viewtopic.php?t=3371

which still works with 3.6 ..

Kaezul
14 Aug 2006, 22:09
This mod has been around for ages and was introduced way before this release. You should at least give the original creator credit for the work.

MentaL
14 Aug 2006, 23:18
I didnt highjack nobodys release sir :)



http://www.vbulletin.org/forum/showthread.php?t=107886


All i am doing is creating a popup linking to a page.

Tonkan
27 Aug 2006, 10:07
And how can i make it join one specific channel?

MentaL
27 Aug 2006, 11:35
under


<param name="pixx:highlightnick" value="true">

add


<param name="command1" value="join #vbulletin">

replace vbulletin with one of your choice.

Snake
30 Aug 2006, 17:05
Thanks for the hack! I'll install it right away... :)

topsoftware
30 Aug 2006, 23:07
very god work for vb 3.6.0 but how can i crate chanel and public for my forum
thanks

Mattimus1984
05 Nov 2006, 03:28
How do you make it join a chanel with whatever the users's username is?

maxicep
16 Nov 2006, 10:44
im getting error when connect my irc server :(
error message :

Unable to connet. jav .net.ConnectionExeption : Connection time out conect

what can i do ?

Josh1
19 Nov 2006, 23:23
im getting error when connect my irc server :(
error message :

Unable to connet. jav .net.ConnectionExeption : Connection time out conect

what can i do ?

Are you behind a firewall or is the IP address wrong?

kamilen
28 Dec 2006, 07:06
I still dont get your ideal :
your irc will require customization in order for it to fit so here is my file i named index.html so once that the link is clicked, it opens the window exactly in the perfect dimensions, your welcome to use this code, also included in the pjirc are more heavy versions of the java client but this one in my opinion is perfect, BE SURE TO EDIT THE SERVER AND NAMES TO YOUR LIKING (ONES IN RED)


Code:
<html>

<head>

<title>Vbulletin Java Chat</title>

</head>

<body leftmargin="0" topmargin="0">

<applet code=IRCApplet.class archive="irc.jar,pixx.jar" width=640 height=400>

<param name="CABINETS" value="irc.cab,securedirc.cab,pixx.cab">

<param name="nick" value="VBCHAT">

<param name="alternatenick" value="VBCHAT???">

<param name="fullname" value="Java User">

<param name="host" value="irc.deltaanime.net">

<param name="gui" value="pixx">

<param name="quitmessage" value="Get a chat room for you're own vbulletin message board, visit http://www.vbulletin.org/forum/showthread.php?p=899188#post899188">

<param name="asl" value="true">

<param name="style:bitmapsmileys" value="true">

<param name="style:smiley1" value=":) img/sourire.gif">

<param name="style:smiley2" value=":-) img/sourire.gif">

<param name="style:smiley3" value=":-D img/content.gif">

<param name="style:smiley4" value=":d img/content.gif">

<param name="style:smiley5" value=":-O img/OH-2.gif">

<param name="style:smiley6" value=":o img/OH-1.gif">

<param name="style:smiley7" value=":-P img/langue.gif">

<param name="style:smiley8" value=":p img/langue.gif">

<param name="style:smiley9" value=";-) img/clin-oeuil.gif">

<param name="style:smiley10" value=";) img/clin-oeuil.gif">

<param name="style:smiley11" value=":-( img/triste.gif">

<param name="style:smiley12" value=":( img/triste.gif">

<param name="style:smiley13" value=":-| img/OH-3.gif">

<param name="style:smiley14" value=":| img/OH-3.gif">

<param name="style:smiley15" value=":'( img/pleure.gif">

<param name="style:smiley16" value=":$ img/rouge.gif">

<param name="style:smiley17" value=":-$ img/rouge.gif">

<param name="style:smiley18" value="(H) img/cool.gif">

<param name="style:smiley19" value="(h) img/cool.gif">

<param name="style:smiley20" value=":-@ img/enerve1.gif">

<param name="style:smiley21" value=":@ img/enerve2.gif">

<param name="style:smiley22" value=":-S img/roll-eyes.gif">

<param name="style:smiley23" value=":s img/roll-eyes.gif">

<param name="style:floatingasl" value="true">

<param name="pixx:highlight" value="true">

<param name="pixx:highlightnick" value="true">

</applet>

</body>

</html>

So it's means that I have to create index.html page ? But where do i put this page ? To pjirc folder or to forum ?

stan111
01 Jan 2007, 08:57
i got this error

"Forbidden
You do not have permission to access this document. "

can anyone know wat is wrong there ?
thanks

kamilen
02 Jan 2007, 06:54
MentaL : Can you help me ? I really need this one .

Ev!L ErN!E
23 Jan 2007, 00:45
Ok this is working for me, the only problem I see is the window isn't sized to the applet, I used your code for the index.html to.

chicote
30 Mar 2007, 19:40
thanks...

but, I'm Portuguese, and I want a Portuguese server, how make this modifications??


thanks
chicote