PDA

View Full Version : Vbulletin Java Chat


MentaL
13 Feb 2006, 16:46
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

Snake
13 Feb 2006, 17:18
Screenshots? :)

MentaL
13 Feb 2006, 17:21
Live demo : http://forum.ragezone.com

https://www.vbulletin.org/forum/

Snake
13 Feb 2006, 17:58
Uh I think this hack has been made already...

MentaL
13 Feb 2006, 18:03
I did a specific search for vb3.5 and could not find nothing so i did it myself and release under 3.5.3, prob is a 3.5 or 2.0 version as it works on all versions, non the less, 3.5 people have been searching and so i provided an alternative means to do so.

=)

XanTrax
13 Feb 2006, 18:04
OMG THANK YOU! You have no idea how much ive wanted this... Bascially the idea I had was to add a collapsable/expandable window that scrolls with you.

MentaL
13 Feb 2006, 22:01
Dont forget to click install :) and if any1 has a prob , dont be afraid to ask, its pretty simple.

twitch
13 Feb 2006, 22:11
How do you make it join a specific channel?

MentaL
13 Feb 2006, 22:48
read:: http://www.pjirc.com/help.php?p=0&faq_id=13

Zia
14 Feb 2006, 02:26
Thnx Man...We also have an Irc Network with 9 ircd...Its Pretty Nice....To have it..

I have some thing to aSK :
Our Webhost [www.powweb.com] did'nt allow to host java irc...so we hosted in another place.....
Now how could we use it..
Our bord hosted in :: host 1
Java Aplet hosted in :: Host 2

now we wanna use it....

Pls suggest us?

MentaL
14 Feb 2006, 03:04
I would do what you said.

host 1 for the forum
host 2 for the java applet.

If you got cash to burn it would be useful to buy a hosting account for $5 with its on unique ip address and bind a dns entry to that ip so say irc.website.com is binded to that ip then you can use that java irc throught that.

Its how i have my irc server now running from irc.ragezone.com as its on a secondary server.

Hope that helps.

Zia
14 Feb 2006, 03:56
curious.......

yeap collaspable chat window...is a nice idea...

Floris
14 Feb 2006, 11:13
Yeah, this was made, since v2 up to 3 and 3.5 by Zachery, it's called vBXIRC.

Zelda-King
14 Feb 2006, 20:11
I already use pjirc so setting this up was initially a breeze, but my chatroom is on a site webpage. How would I go about cropping the rest of the page out? (IE won't scroll down to the applet.)

MentaL
14 Feb 2006, 21:38
Only real way is to setup a second page using the code above as it uses the margins so it gives no boarders... if there is another way then i cant think of one but at the end of the day its a small extra html file to upload so :P no biggy.

Zelda-King
14 Feb 2006, 22:20
Yeah, that's what I ended up doing. I guess it's fine like this.

srpompon
15 Feb 2006, 00:35
you dont send the forum id name to the chat? all users have same name?

MentaL
15 Feb 2006, 00:42
you dont send the forum id name to the chat? all users have same name?

it uses first predefined name, all other connections use the second predefined name with a random number on the end.. or

/nick Newname

:P

GSM_electronic
23 Feb 2006, 01:39
Some questions here, simple to answer, I guess...

I wouldn't like to mess with irc server instalation, so I linked to my channel on irc.vbulletin-fans.com

Some, I guess, basics on irc... Sorry for my stupidity :(

1. Can I make myself an OP in that chatroom, everytime I login (register my nick?)
2. How do I set the topic in chatroom?

Any FAQ on those things?


Thx for any info
Nenad

MentaL
23 Feb 2006, 22:15
1: would need an irc client like MIRC to do that
2: double clicking the main window i think would do that.

Moparx
23 Feb 2006, 23:39
you do not need mirc to op yourself.. you simply need to register your nickname and the irc chanel on the irc network you are connecting too. after identifying yourself to the network it will automatically op you in your channel.

setting the topic is a simple as /topic yourtopichere

GSM_electronic
24 Feb 2006, 12:29
Ok, I had to do it via mirc, register channel and nick, now everything fine...




Best Regards

PamelaE
15 Mar 2006, 22:14
Hi,

How would I get this to work like the chat on VB.org. I own my own chat server and would want it to pull in the forum member name, this is how it seems to work on VB.org when I click chat.

Any ideas?

MentaL
15 Mar 2006, 23:52
I dont think thats possible w/ this mod Pam.

Kacela
16 Mar 2006, 00:17
Hi,

How would I get this to work like the chat on VB.org. I own my own chat server and would want it to pull in the forum member name, this is how it seems to work on VB.org when I click chat.

Any ideas?You can find Jenta's PJIRC integration for vBulletin on the PJIRC site: http://forum.pjirc.com/viewtopic.php?t=3371 - it will pull in the forum member name automagically :)

Jenta understandably pulled the hack from here in protest after the vBulletin.org Mods & Admins made a very unfair and biased judgement call during January's HotM.

Nizam
20 Mar 2006, 07:17
Jenta's hack does not work for 3.53 and above.

EasyTarget
20 Mar 2006, 08:53
Yeah, this was made, since v2 up to 3 and 3.5 by Zachery, it's called vBXIRC.he still hasn't finished his :/

Stormwolf
21 Mar 2006, 18:33
Jenta's hack does not work for 3.53 and above.

Works fine for me on 3.5.4

Zachariah
23 Mar 2006, 23:06
Place in a *.txt file please :)

Kacela
30 Mar 2006, 22:56
Jenta's hack does not work for 3.53 and above.
There is an alternate hack also based on Jenta's work that has been tested on 3.5.3 here: http://pjirc.com/forum/viewtopic.php?t=3507

JonVat
17 Apr 2006, 19:42
Any tips on how to fiks this.
$bbuserinfo[username], you dont have the rigths to view this page.

I do have all the rigts i can have.

Use VB 3.5.4

Any tips.

Andyf
23 Apr 2006, 08:32
I like this and have installed it with no problems using an existing irc server.

How can I get the window to stay on top?

Andy

HoopsFan
23 Apr 2006, 22:37
Dumb question, but I've used mIRC for years and know IRC fairly well, but...

I know my hosting provider explicitly states I can't run an IRC server. Do you guys think this in any way violates that? I keep thinking from the looks of it, it's just a client that connects to an IRC server, as opposed to running some IRC daemon, for example, on my server.

AdmiralSpock
24 Jul 2006, 03:27
Thank you for writing this hack! It works perfectly on my forums.

heroestheseries
18 Jan 2007, 22:20
Hi, I'm running VB 3.6.3, and I've uploaded the folder to my server, added the code to the header, and replaced the calendar with the chat code. It looks okay, everything shows up where they should, but when I click on the chat link it opens a window and nothing. I'm hosted on Godaddy, and I get a PAGE NOT FOUND error. Is there another step that I missed? Thanks. I know this is an old thread, but hopefully someone will have some info.

kofoid
25 Jan 2007, 18:25
I am on godaddy too - getting the same error. Anyone?