Floris
5th March 2007, 09:56 AM
You can run pjirc chat stand alone, or integrate it with vBulletin. Here is how to integrate it with vBulletin. This is the simple version, no custom files, no source code modifications, and only the need to add a new template.
Add a new custom template
Admin Control Panel > Styles & Templates > Styles Manager > dropdown: Add a new template. Name it chat, prefix it with custom_ so the misc.php file can use it:
custom_chat
Use the following code :
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle]</title>
</head>
<body>
$header
$navbar
<center>
<h2>Live IRC Java Chat on irc.vBulletin-Chat.com, port 6667, channel #vBFans</h2><hr />
<applet code=IRCApplet.class archive="irc.jar,pixx.jar" width=740 height=500>
<param name="CABINETS" value="irc.cab,securedirc.cab,pixx.cab">
<param name="nick" value="vBChat???">
<param name="alternatenick" value="Chat???">
<param name="name" value="vBChat Java User">
<param name="host" value="irc.vBulletin-Chat.com">
<param name="port" value="6667">
<param name="command1" value="/join #vBfans">
<param name="gui" value="pixx">
<param name="quitmessage" value=" www.vBulletin-Chat.com ">
<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>
<hr />
Please chat in English, and respect the chat rules: Behave, no swearing and no vBulletin support.<br />
Users with ! or @ in front of their names are the channel operators, feel free to ask them questions.
<hr />
Want to add this chat to your own web site? <a href="http://www.vbulletin-chat.com/showthread.php?t=24433">Click here to find out how</a>
</center>
$footer
</body>
</html>
Change the value #vbfans in the following line to your own chat channel:
<param name="command1" value="/join #vBfans">
Now do the same for this line, replacing it with your own chat channel:
<h2>Live IRC Java Chat on irc.vBulletin-Chat.com, port 6667, channel #vBFans</h2><hr />
And then save the template.
Now, get the pjirc files and upload them to your forum directory. Make sure that you are not uploading any index.html file.
Now use your web-browser and go to
http://<domain>/misc.php?do=page&template=chat
And change the domain to your own.
Add a new custom template
Admin Control Panel > Styles & Templates > Styles Manager > dropdown: Add a new template. Name it chat, prefix it with custom_ so the misc.php file can use it:
custom_chat
Use the following code :
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle]</title>
</head>
<body>
$header
$navbar
<center>
<h2>Live IRC Java Chat on irc.vBulletin-Chat.com, port 6667, channel #vBFans</h2><hr />
<applet code=IRCApplet.class archive="irc.jar,pixx.jar" width=740 height=500>
<param name="CABINETS" value="irc.cab,securedirc.cab,pixx.cab">
<param name="nick" value="vBChat???">
<param name="alternatenick" value="Chat???">
<param name="name" value="vBChat Java User">
<param name="host" value="irc.vBulletin-Chat.com">
<param name="port" value="6667">
<param name="command1" value="/join #vBfans">
<param name="gui" value="pixx">
<param name="quitmessage" value=" www.vBulletin-Chat.com ">
<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>
<hr />
Please chat in English, and respect the chat rules: Behave, no swearing and no vBulletin support.<br />
Users with ! or @ in front of their names are the channel operators, feel free to ask them questions.
<hr />
Want to add this chat to your own web site? <a href="http://www.vbulletin-chat.com/showthread.php?t=24433">Click here to find out how</a>
</center>
$footer
</body>
</html>
Change the value #vbfans in the following line to your own chat channel:
<param name="command1" value="/join #vBfans">
Now do the same for this line, replacing it with your own chat channel:
<h2>Live IRC Java Chat on irc.vBulletin-Chat.com, port 6667, channel #vBFans</h2><hr />
And then save the template.
Now, get the pjirc files and upload them to your forum directory. Make sure that you are not uploading any index.html file.
Now use your web-browser and go to
http://<domain>/misc.php?do=page&template=chat
And change the domain to your own.