vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   IRC Java addition (bocazas irc) (https://vborg.vbsupport.ru/showthread.php?t=37781)

dymo 04-22-2002 10:00 PM

IRC Java addition (bocazas irc)
 
Simple IRC addon for Vbulletin using bocazas Java IRC, its free no ads or anything, its included in the zip with all the instructions and so on.

PHP Code:

This is a fairly simple Hack if you can even call it that

after looking around 
and really now finding a iRC interface that i liked i accidently stubled across this from one of my admin's.

I have included the java files from bocazas i just removed there examples to avoid confusion.
look thru there read me to get a better feel for the options you have to customize this with.

//////Install Guide/////////
Step 1.
Upload the following to the forums root directory

Upload bocazas.cab
upload bocazas.jar
upload chat.php

Step 2.
Create a new template called chat
and copy the text out of chat.template
or use the template backup system from Firefly
[url]https://vborg.vbsupport.ru/showthread.php?s=&threadid=33072&perpage=15&highlight=template[/url] backup&display=&pagenumber=1
and import the chat.template


//////////////////////chat.template contents/////////////////////////////
<html>
<head>
<title>$bbtitle - IRC Chat</title>
$headinclude
</head>
<body>
$header
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
        <td width="100%"><img src="{imagesfolder}/vb_bullet.gif" alt="" border="0" align="absmiddle">
        <normalfont><b><a href="index.php?s=$session[sessionhash]">$bbtitle</a> &gt;
      Chat</b></normalfont></td>
</tr>
</table>
<br>
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" {tableouterextra} width="70%" align="center"><tr><td>
<table cellpadding="10" cellspacing="0" border="0" width="100%"><tr><td>
<table cellpadding="4" cellspacing="1" border="0" bgcolor="{tablebordercolor}" width="100%">
  <tr>
    <td colspan="5" bgcolor="{tableheadbgcolor}"><normalfont color="{tableheadtextcolor}"><center><b>$storename</b></cebter></normalfont></td>
  </tr>
  <tr>
<div align="center"><applet archive="bocazas.jar" code=bocazas.class width=620 height=450>
    <param name="CABBASE" value="bocazas.cab">
    <param name="nickname" value=$username>
    <param name="fullname" value=$email>
    <param name="channel1" value="#d2network">
    <param name="language1" value="english">
    <param name="server1" value="www.d2network.com">
    <param name="files" value="false">
    <param name="autoentry" value="true">
  </applet> </div>
$footer
</body>
///////////////////////end chat.template contents////////////////////////////////

Step 3.
open the chat template
thru the admin panel  Templates > Modify and select Chat(edit)
find
    <param name="channel1" value="#d2network">
and edit to match your irc channel name

    <param name="server1" value="irc.d2network.com">
edit to match you irc server name

Optional Steps
read the bocazas-readme.txt and customize the rest fo the <param name" to suit your sites needs if any.

thats its all done

Dymo 

and a screenshot for those who care.

http://www.gamer-networks.com/irc.jpg

including the zip with bocazas seperately its a 190k too large to attach here sorry
chat.zip

[hhhh] 04-23-2002 01:31 PM

Good!

Corbu 04-23-2002 01:57 PM

Thanks a lot !

I'm going to test it now !

chazman 04-23-2002 03:07 PM

is there a way to use this type of addon/hack as an instant messenger. So that it opens up into a private channel essentially. You would have to incorporate some sort of popup for the person that you were wanting to chat with. Similiar to the PM popup on a new message. I think this would be a great addition.

Chazman

dymo 04-23-2002 03:47 PM

its an idea not sure how it would implemented, the only way i can think it would be possible would be to mimic the pm popup which means the other user would have to refresh to get it, and I am not 100% sure if the pm 's are checked on every page or only on the index, i think for an instant messenger style of hack it would be easy and better to rely on a web based icq hack instead

chazman 04-23-2002 04:49 PM

either way I think it would be very handy. Since the Who's Online feature is there, it is very tempting to want to hold a quick chat with folks online. PM's are like waiting for email to show up.

Chazman

dymo 04-23-2002 08:17 PM

give me a few days to work on that, its gonna be a major amount of work to get it working in that way

Kumaro 04-23-2002 08:21 PM

Thank you! somebody finally made an IRC chat hack that is free... Wohoo!!!

Just one thing...it uses the same username, as your vb one, but IRC servers don't allow nicknames that start with numbers...soo...is there a way to automatically change the persons nickname? cuz many people don't know the IRC command to change a nickname....
If this is not possible...doesn't matter...stil an amazing hack
Thanks a Mil!

dymo 04-23-2002 08:32 PM

open your chat template and find

PHP Code:

<div align="center"><applet archive="bocazas.jar" code=bocazas.class width=620 height=450>
    <
param name="CABBASE" value="bocazas.cab">
    <
param name="nickname" value=$username>
    <
param name="fullname" value=$email>
    <
param name="channel1" value="#d2network">
    <
param name="language1" value="english">
    <
param name="server1" value="www.d2network.com">
    <
param name="files" value="false">
    <
param name="autoentry" value="true">
  </
applet> </div

change
<param name="nickname" value=$username>

to

<param name="nickname" value="NickName">

and change
<param name="autoentry" value="true">

to

<param name="autoentry" value="false">


this will cause the irc window to pause and allow the user to change his or her nick, it also will no longer auto join IRC.

the rest of the Param you can edit are listed in the readme-bocazas.txt

dymo

GOD-Dblade 04-23-2002 08:55 PM

nice hack dymo....nice to see you on these boards to :)


All times are GMT. The time now is 05:57 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01240 seconds
  • Memory Usage 1,758KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete